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

  • Posted 1 hour ago by logicallee
  • 2 points
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?

0 comments