Track cheat sheet
Retrieval that is quietly wrong cheat sheet
Retrieval failures that never raise an error: chunks that lost their subject, filters that return too few, stale permissions and contexts stuffed too full.
Key concepts
- The chunk that lost its subject
- Chunking strips the facts that identify a passage, so the right chunk is not found and nothing errors.
- Ten asked, four returned
- Approximate vector indexes filter after gathering candidates, so selective filters return too few results with no error.
- The leaver who can still search
- A RAG index copies documents and a snapshot of their permissions, so revoked users can keep retrieving them.
- More context, worse answers
- Models use long contexts unevenly, so stuffing in more chunks can bury the answer and make results worse.
Decision rules
- Prepend context to each chunk, combine vector and keyword search, rerank, and measure retrieval on its own.
- Use iterative scans or per-filter partitions; test recall and result counts with real filters.
- Permissions on every chunk; trim at query time with the user's own identity; test revocation.
- Rerank, keep the best few with the most relevant first, and retrieve more on demand.
Common traps
- Plain fixed-size chunks of long documents, judged only by final answers.
- Assuming top_k = 10 means ten results for every tenant.
- A daily permission snapshot treated as if it were live access control.
- Sending every retrieved chunk 'just in case'.
Lessons
- The chunk that lost its subject · 3 min
- Ten asked, four returned · 3 min
- The leaver who can still search · 3 min
- More context, worse answers · 3 min
BuildBreak · Retrieval that is quietly wrong · each line comes from its lesson, where the sources are linked.