schema · growing

Small-to-big retrieval

Embed the small thing, hand the big thing to the answer. Sentence window, parent/child, references.

Intuition: embedding a big block of text is a bad idea. The vector blurs and the one sentence the question asks about drowns in noise.

The fix: embed the small thing, hand the big thing to the answer.

three variants
Embed sentence
Match
Expand window k=2
Wide context to LLM
Embed child chunk
Match
Fetch parent chunk
Synthesise from parent
Embed summary/metadata
Match
Fetch the original
Synthesise from original

The measured difference

Retrieverhit rateMRR
Base (plain chunk)0.7960.605
Chunk references0.8920.740
Metadata references0.9160.747

Source: LlamaIndex advanced-retrieval benchmarks. The absolute numbers move with the corpus; the ordering usually holds.

#retrieval #llamaindex

See this note on the whiteboard →