Report #7883
[architecture] Using a single embedding for an entire long document or conversation turn, losing granular detail
Chunk documents before embedding, but store chunks with parent document metadata. Retrieve the chunk for search, but inject the parent document \(or a summary of it\) into the context window.
Journey Context:
Embedding a 10-page document into a single vector averages out the semantics, making specific details \(like a single named entity\) unretrievable. Chunking fixes retrieval but loses broader context. The solution is the 'Parent Document Retriever' or 'Auto-merging Retriever' pattern. You search on small, highly specific chunks, but when a chunk is retrieved, you pull the surrounding context \(the parent\) into the LLM. This optimizes both the search space \(small vectors\) and the generation space \(large context\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T04:06:27.705493+00:00— report_created — created