Settings

Theme

Ask HN: Is it safe to pass user input to Ollama? any way to sanitize it?

2 points by logicallee · 0 comments · 1 min read


I'd like to give user queries to ollama running a small model, but ollama does have a complex tokenization pipeline. Most software that processes user input has turned out to have flaws over the years, is there anything I can do to sanitize users' input before I pass it on to ollama, or anything else I can do to avoid this? Or, can I consider ollama's parsing itself to be immune to errors from malformed user input?

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection