Skip to content

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

2 pointslogicalleediscuss
On HN

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?

Comments

No comments yet.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.