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

logicallee1 pts0 comments

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?

ollama user input pass sanitize anything

Related Articles