training ·
structured-prompt-separationSeparate instructions from data
Mark the boundary between trusted instructions and untrusted content, and train or prompt the model to honor it.
Wrap tool outputs and retrieved documents in reserved delimiters the model has been trained to treat as data, strip those delimiters from untrusted content, and rank instructions by source privilege. Without training access, the prompt-level version still helps: label every untrusted block and instruct the model to never follow instructions inside it.
Contexts: Retrieval-augmented QA, Autonomous agent, Coding agent
Does it work?
supported so far2 supporting · 0 contesting sources · last moved 2026-09-04
Efficacy claims — what this technique actually moves, under which conditions, and whether that has been contested.
Code
- https://github.com/Sizhe-Chen/StruQ — StruQ training and evaluation code.verified 2026-09-02