We wrote this article explaining a variety of different approaches we use to deal with potential prompt injection in the context of text-to-SQL translation. The approaches, though likely not 100% foolproof, should help others to understand prompt injection and ways of thinking about preventing it.
2 Likes