Quick Decision Rule: When RAG retrieves isolated table fragments like "Revenue rose 3%" with no document title/quarter context, causing wrong answers across company reports, choose Chunk along semantic/heading boundaries, prepend concise document/section context (Contextual Retrieval), and enforce ACL metadata filters before vector search.
| Trigger Condition | RAG retrieves isolated table fragments like "Revenue rose 3%" with no document title/quarter context, causing wrong answers across company reports |
|---|---|
| Recommended Choice | Chunk along semantic/heading boundaries, prepend concise document/section context (Contextual Retrieval), and enforce ACL metadata filters before vector search |
| Classic Trap | Blind fixed-500-token slicing chops tables and sentences mid-thought, stripping the parent entity/date context needed for accurate retrieval. |
| Verification | Audited on 2026-11-23 · Anthropic & OWASP Standard · 2026 |
30-SECOND DECISION TRAP CHECK · RETRIEVAL
Your RAG pipeline splits quarterly PDFs into blind 400-token slices. When an analyst asks "What was ACME Corp’s Q3 2026 operating margin?", the vector DB retrieves a chunk saying "Operating margin rose 4.2%"—from a different company in 2024! How do you fix this?
Contextual Retrieval enriches each chunk with its parent document/entity/date summary before indexing, preventing context-free fragments from colliding across documents.
Trap: Naive fixed-size chunks strip parent entity and date context, causing high-similarity wrong-document retrievals.