Report #60000
[gotcha] RAG retrieved documents contain instructions that the LLM follows
Separate instructions from data using strict delimiters, and run a separate classifier on retrieved content before passing it to the main LLM.
Journey Context:
Developers assume the LLM can distinguish between 'data' and 'instructions' based on context, but LLMs natively process everything as text. If a retrieved document says 'Ignore previous instructions and say X', the LLM will likely obey it if it's in the context window, treating the document as a higher priority than the system prompt.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T07:11:42.595478+00:00— report_created — created