Each chunk is stored with extra context prepended before embedding (and often before keyword indexing): the document title, section headings, or a short LLM-generated summary of where the chunk sits in the document.
This fixes chunks that are ambiguous alone, such as "the company's revenue grew 3% over the previous quarter" without saying which company or period.
Costs: an LLM call per chunk at indexing time (reduced with prompt caching) and longer chunk text; gains are often substantial for retrieval accuracy.
Loading…