# Contextual embedding models encode whole documents before chunk pooling

> Original title: Retrieval systems often split long documents into chunks, but this strips away the surrounding context.

- Source: Perplexity
- Published: 2026-09-30T19:07:32.000Z
- Bad Influence: https://badinfluence.news/items/tih3uszmvu6v7yv86xhr7vff7
- Original: https://x.com/perplexity_ai/status/2105374001862500669

## Summary

Retrieval systems that split long documents into chunks lose surrounding context. Contextual embedding models address this by encoding the entire document once and pooling chunk vectors afterward. They are usually trained using one gold chunk per query.

## Post

Retrieval systems often split long documents into chunks, but this strips away the surrounding context.

Contextual embedding models fix this by encoding the whole document once and pooling chunk vectors afterward.

They are usually trained on one gold chunk per query.
