Report #73586
[agent\_craft] Agent fails to apply a specific instruction to a retrieved document because the instruction and the document are separated by a large block of text
Co-locate instructions with their corresponding context. Use XML tags or clear delimiters to wrap a specific piece of context, and place the instruction for that context immediately before or after the delimiter, not at the top of the prompt.
Journey Context:
LLMs apply attention locally. If you say 'Summarize the following documents' and then inject 5 documents, the model's attention to the 'Summarize' instruction wanes by the 5th document. If you say 'Summarize document A A Summarize document B B', the instruction is tightly bound to the data. This drastically reduces hallucination and ensures the instruction is executed per-item.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T06:06:30.084647+00:00— report_created — created