Report #81664
[synthesis] RAG context is ignored or misinterpreted causing hallucinated answers
Use an adapter to format RAG context: XML tags \(\) for Claude, Markdown headers for Gemini, and JSON objects for GPT-4o.
Journey Context:
Models have distinct native context formats that maximize their attention mechanisms. Claude is heavily trained on XML and parses it with highest fidelity. GPT-4o aligns best with JSON or standard Markdown. Gemini performs best with Markdown headers and structured text. Injecting a single format \(e.g., JSON\) across all models causes Claude to miss boundaries and GPT-4o to lose semantic hierarchy in XML. The synthesis is that context formatting is model-specific UX; matching the format to the model's pre-training corpus drastically reduces retrieval hallucinations.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T19:40:12.047730+00:00— report_created — created