Chunk a long contract into paragraphs and embed each one alone, and paragraph 14 ("the foregoing shall not apply") means nothing to a retriever. Contextual embedding fixes that by encoding every chunk with the rest of its document in view. This is the larger of Perplexity's two open contextual embedders, released on 28 October 2026 after a preview repository appeared in late September.
How the contextual mode works
You pass each document as a list of non-overlapping chunks. The model returns one vector per chunk, shaped (chunk_count, 2048), and each vector reflects its neighbours. Queries go through a separate encode_queries call; using the document encoder for queries silently degrades retrieval, which is an easy bug to ship.
Want plain, non-contextual embeddings instead? Wrap each chunk in its own single-item list. Want one vector per document? Pass the whole document as a single chunk.
Images and visual documents
encode_images() takes PIL images and splits each page into horizontal bands, one vector per band, eight bands requested by default. For page retrieval, score a page by the maximum cosine similarity across its bands. Because each band is an ordinary dense vector, it drops into a standard ANN index without a late-interaction engine.
Vectors and storage
| Property |
Value |
| Native output |
2048 dimensions, unnormalised int8 |
| Matryoshka sizes trained |
1024 and 2048 only |
| Similarity |
Cosine, or normalise and use dot product |
| Licence |
MIT |
| Fine-tuned from |
pplx-embed-v2-late-9b |
| Runtime |
transformers ≥ 5.4.0, trust_remote_code=True |
Int8 output means a 2048-dim vector costs 2 KB before any index overhead. Truncating to 1024 halves that; keep the first 1024 values and renormalise. Other truncation sizes were not trained, so do not assume 512 or 768 will behave.
The 1024-dim prefix is the clever part. It lives in the same space as the 0.6B sibling, so you can index a corpus once with the big model and serve queries from the small one, or the reverse. Both sit in the embeddings directory.
Size, and other loose ends
The name says 9B; the weight metadata counts 8B parameters. No maximum sequence length is published, and the text encoder does not truncate, so split or trim long documents yourself before encoding, or you will find out the limit as an out-of-memory error. No benchmark numbers accompany the weights beyond a pointer to Perplexity's technical report, and there is no hosted API for this model that we could find. It is self-host only.
Testing it against your current embedder
Build a 200-query evaluation from real search logs, with judged relevant chunks. Index the same corpus three ways: your current model, this model in non-contextual mode, and this model in contextual mode. Compare recall@10. The gap between the last two tells you how much context is worth on your documents; on short, self-contained FAQs it may be near zero, and on cross-referencing legal or technical text it should be large.
Alternatives worth including in that bake-off: Gemini Embedding 2, EmbeddingGemma 2 and Llama Nemotron Embed VL 1B v2. See also visual document retrieval.