Prompt injection mitigation for user-supplied text in prompts #15
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
None of the prompts that embed the raw user message (classify_intent, direct_response, synthesize_response, and the RAG grade/rewrite/generate steps) distinguish user-typed content from instructions. Wrap user input in a delimiter tag plus an explicit guard so the LLM treats it strictly as data, not commands.