heading path
The chain of headings above a chunk, such as "Billing > Refunds > Annual plans", prepended to it so it makes sense on its own.
In more detail
It is a cheap, rule-based form of the context that contextual retrieval asks a model to write, and it helps both keyword and vector search match the chunk to questions about its section. It costs a few tokens per chunk and no model calls.
Related terms
- chunk (retrieval) — A passage cut from a document for indexing, and the unit that retrieval returns and the prompt includes.
- contextual retrieval — Anthropic's technique of having a model write a short note placing each chunk in its document, and prepending it before embedding and keyword indexing.
Taught in
- Chunking And Ingestion — AI Engineering: LLM Apps, RAG & Agents