Ad
Favicon of Collect Video Testimonials That Build TrustCollect Video Testimonials That Build Trust
Start Collecting Testimonials
Favicon of pplx-embed-v2-context-9b-preview

pplx-embed-v2-context-9b-preview

Perplexity's contextual embedding model for RAG retrieval, encoding document chunks with surrounding context and supporting 2048 and Matryoshka 1024 dimensional INT8 embeddings.

About pplx-embed-v2-context-9b-preview

pplx-embed-v2-context-9b-preview is a contextual embedding model from Perplexity designed for document chunk retrieval in Retrieval Augmented Generation systems. Instead of encoding each chunk independently, it accepts a document as a list of chunks and encodes them together so that each returned chunk embedding reflects surrounding document context.

The model produces one embedding for each document chunk and is trained to retrieve both answer bearing chunks and supporting context. Queries and document chunks use separate encoding methods and fixed query and document prefixes. Perplexity provides dedicated encode_queries functionality for queries and encode for document chunks.

The model produces 2048 dimensional embeddings and was trained with Matryoshka losses at both 1024 and 2048 dimensions. It natively produces unnormalized INT8 quantized embeddings and uses mean pooling. The model is available as a preview release through Hugging Face under the MIT license and can be loaded with Hugging Face Transformers using its custom model code.

Key Features

  • Contextual Chunk Embeddings: Encodes document chunks together so that each chunk embedding incorporates information from surrounding document context.
  • RAG Retrieval: Designed specifically for retrieving document chunks in Retrieval Augmented Generation systems.
  • Answer and Evidence Retrieval: Training targets both answer chunks and supporting contextual evidence instead of focusing only on a single relevant chunk.
  • 2048 Dimensional Embeddings: Produces 2048 dimensional embeddings with Matryoshka training at 1024 and 2048 dimensions.
  • INT8 Embeddings: Natively produces unnormalized INT8 quantized embeddings that can be compared using cosine similarity.
  • Separate Query Encoding: Provides separate encode_queries and encode methods for queries and document chunks, using fixed query and document prefixes.

Pricing

Contact the sales team for pricing information.

Use Cases

  • Retrieval Augmented Generation document retrieval
  • Context aware semantic search
  • Long document chunk retrieval
  • Retrieval of answers together with supporting evidence

Pros & Cons

Pros:

  • Encodes chunks using surrounding document context rather than treating every chunk independently.
  • Supports 2048 dimensional embeddings and Matryoshka trained 1024 dimensional embeddings.
  • Natively produces INT8 quantized embeddings for reduced embedding storage requirements.

Cons:

  • This is a preview release, and weights, embeddings and the interface may change without backward compatibility.
  • Perplexity API availability was still under development at the documented release, and the Hugging Face model was not deployed by an inference provider.

Integrations

Hugging Face Transformers, Google Colab, Kaggle

FAQ

What is pplx-embed-v2-context-9b-preview?

pplx-embed-v2-context-9b-preview is a contextual embedding model from Perplexity for document chunk retrieval in RAG systems. It encodes chunks together so each chunk embedding reflects surrounding document context.

What embedding dimensions does pplx-embed-v2-context-9b-preview support?

The model produces 2048 dimensional embeddings and was trained with Matryoshka losses at 1024 and 2048 dimensions. Perplexity documents a method for using the first 1024 dimensions and normalizing them afterward.

Does pplx-embed-v2-context-9b-preview support INT8 embeddings?

Yes. The model natively produces unnormalized INT8 quantized embeddings.

How should queries and documents be encoded?

Queries should use the encode_queries method, while document chunks should use encode. The model uses separate fixed prefixes for queries and documents.

Can pplx-embed-v2-context-9b-preview retrieve supporting context?

Yes. The model is trained to retrieve answer chunks together with supporting contextual evidence rather than optimizing only for a single answer bearing chunk.

Is pplx-embed-v2-context-9b-preview a final release?

No. Perplexity identifies it as a preview release and states that its weights, embeddings and interface may change in later versions without backward compatibility.

Can embeddings from this preview be mixed with embeddings from a future release?

Perplexity advises against mixing embeddings produced by this preview with embeddings from a future release because the model and embedding representation may change.

How can developers run pplx-embed-v2-context-9b-preview?

The model is available through Hugging Face and can be loaded with Transformers. The documented implementation requires Transformers 5.4.0 or later along with PyTorch, NumPy, Safetensors and tqdm, and requires trust_remote_code to be enabled.

Last edited

October 7, 2026 at 5:47 PM by Venkatraman Chandrasekaran

Share:

Ad
Favicon
 
  
 

Similar to pplx-embed-v2-context-9b-preview

Favicon
 
  
  
Favicon
 
  
  
Favicon