Glossary
Late chunking
Embedding a whole document with a long-context model first, then pooling token vectors into chunk vectors so each chunk keeps its document’s context.
Late chunking is a way of making chunk embeddings for retrieval augmented generation that reflect the whole document. It runs the entire document through a long-context embedding model first, keeps the vector for every token, and only then groups those token vectors into chunks and averages each group. Because every token vector was computed with the full text in view, a chunk that mentions “the city” still carries the information that the city is Berlin.
How late chunking works
Standard chunking for retrieval follows a split, embed, pool order: the text is cut into pieces, each piece goes through the model, and its token vectors are averaged (mean pooling) into one vector. Late chunking moves the split to the end. The model reads the document once, its attention mechanism lets every token draw on the others, and chunk boundaries are applied to the output token vectors just before pooling. The boundaries can come from any method, including fixed token counts, sentence boundaries, recursive chunking or semantic chunking.
Jina AI described the method in August 2024, and a paper by Michael Günther and colleagues followed in September 2024. It needs no extra training and works with existing transformer embedding models that use mean pooling and accept long inputs, such as Jina’s models with an 8,192-token context window.
What late chunking improves
In Jina’s example, a Wikipedia article about Berlin split into sentences, the similarity between the query “Berlin” and a sentence about “the city’s” population rose from 0.708 to 0.825 with late chunking. On several BEIR retrieval benchmarks, late chunking scored higher nDCG@10 than naive chunking, for example 66.10 against 64.20 on SciFact and 29.98 against 23.46 on NFCorpus, with no change on Quora. The authors reported that the gains grew with average document length, since short documents have little context to lose.
Approach | How chunk vectors get context | Extra cost at indexing |
|---|---|---|
Naive chunking | Each chunk is embedded alone, with no document context | None |
Late chunking | Token vectors are computed over the full document before pooling | One long pass per document and a long-context model |
Contextual retrieval | A language model writes a context line for each chunk before embedding | A model call per chunk |
Metadata prefixes | The title or heading is added to each chunk’s text | Very little |
Contextual retrieval and late chunking are the two best-known ways to produce contextual embeddings for chunks. Late chunking avoids a language model call per chunk. Contextual retrieval works with any embedding model and can add context that is not stated anywhere in the visible text.
Requirements and limits
Late chunking needs access to token-level outputs, so it works with open models you run yourself or with APIs that offer it as an option; Jina added it to its jina-embeddings-v3 API. Documents longer than the model’s input limit have to be processed in overlapping windows, which brings back some of the context loss for very long files. A model change still means re-indexing everything to avoid embedding drift. Late chunking is also separate from late interaction models such as ColBERT, which keep many vectors per passage and compare them with the query at search time. Late chunking still produces one vector per chunk.
Late chunking and Exabase
Deep Search indexes content stored as Resources automatically, with no embedding model to select and no chunking pipeline to run, and every text query combines semantic matching with typo-tolerant keyword search. Exabase does not document which embedding technique it uses internally or offer a late chunking option. Results come back as passages tied to their source document with page numbers or timestamps, so the surrounding document stays one step away when an answer needs it. If you want to apply late chunking yourself, Extract gives you a file’s full text as ordered chunks you can use as boundaries, and the PDF to chunks tool does the same for a single PDF.
The end of the embedding pipeline argues for indexing at write time, RAG accuracy covers sub-document retrieval, the searching resources guide explains the precision setting, and best embedding models compares models you might use for late chunking. The knowledge bases use case shows retrieval in a production setting.
FAQs
What is late chunking?
Late chunking embeds a whole document with a long-context model, then splits the token vectors into chunks and averages each one. Each chunk vector reflects the full document as well as its own text.
How is late chunking different from naive chunking?
Naive chunking splits first and embeds each chunk alone, so pronouns and references lose their meaning. Late chunking embeds first and splits afterwards, so that context stays in the vectors.
Does late chunking need a special model?
It needs a long-context embedding model that uses mean pooling and exposes token-level outputs. No extra training is required, though the paper also describes fine-tuning that improves results.
What is the difference between late chunking and contextual retrieval?
Late chunking gets context from one long pass of the embedding model. Contextual retrieval asks a language model to write a context sentence for each chunk, which costs a model call per chunk but works with any embedding model.
Is late chunking the same as late interaction?
No. Late interaction models such as ColBERT store many token vectors per passage and score them against the query at search time. Late chunking produces one vector per chunk.
Does Exabase support late chunking?
Exabase does not offer a late chunking setting or document the embedding method behind Deep Search. It indexes stored content automatically and returns matching passages with their source document and location.
Related pages: Contextual embeddings, Contextual retrieval, Chunking, Semantic chunking, Recursive chunking, Chunk overlap, Embedding model, Long context models, Deep Search, RAG accuracy.