---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://mixpeek.com/.well-known/search?q={query}"
  method: GET
  documentation: "https://mixpeek.com/llms.txt"
---

[Models](/models)/[Embeddings](/models?category=embeddings)/perplexity-ai/pplx-embed-context-v1-4b

HFText EmbeddingsMIT

# pplx-embed-context-v1-4b

by perplexity-ai

Contextual embedding that encodes document chunks with awareness of surrounding content

5.2Kdl/month

4Bparams

[HuggingFace](https://huggingface.co/perplexity-ai/pplx-embed-context-v1-4b)[Run it on your own data, free](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)

Identifiers

Model ID

`perplexity-ai/pplx-embed-context-v1-4b`

## Deploy pplx-embed-context-v1-4b

Single-tenant

Mixpeek has no managed extractor for this model. On a single-tenant deployment you upload the weights and a custom plugin serves them next to the rest of your pipeline.

[Read the customer-hosted guide](https://mixpeek.com/docs/customer-hosted/overview) [Talk to us about single-tenant](/demo)

## Overview

PPLX Embed Context is the first open-weight contextual embedding model. Unlike standard embedders that process each chunk in isolation, it sees the full document while encoding each chunk: so the resulting vector captures both local content and the chunk's relationship to surrounding text. This eliminates the retrieval failure mode where a chunk about 'it increased 15%' is meaningless without knowing what 'it' refers to.

On Mixpeek, contextual embeddings improve retrieval precision for document-heavy pipelines where chunks reference earlier sections, use pronouns, or contain relative statements. One model call replaces the traditional approach of prepending context summaries to each chunk.

## Architecture

Diffusion-pretrained Qwen3 backbone with contextual attention mechanism. 4B parameters. Encodes each chunk while attending to the full document context. Produces dense embeddings where each chunk vector encodes both local semantics and positional context within the document.

## Mixpeek SDK Integration

IngestRetrieve

// No extractor parameter takes a Hugging Face model id (checked against
// GET /v1/discovery/extractors, which returns 13), so pplx-embed-context-v1-4b runs
// on your side and the output is upserted through POST
// /v1/namespaces/{namespace\_id}/documents/upsert. On Enterprise the other
// path is to upload the weights instead: POST /v1/namespaces/{id}/models
// accepts the huggingface format and a custom plugin loads them.
const res = await fetch(
  "https://api.mixpeek.com/v1/namespaces/ns\_your\_namespace/documents/upsert",
  {
    method: "POST",
    headers: {
      Authorization: "Bearer API\_KEY",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      collection\_id: "col\_your\_collection",
      documents: \[
        {
          document\_id: "asset-00412",
          // The vector name has to match a vector index on the collection.
          vectors: { "text-embedding": yourVector },
          payload: { source\_key: "archive/2026/asset-00412" },
        },
      \],
    }),
  },
);

// Managed alternative, if this exact model is not the requirement:
// text\_extractor@v1 runs intfloat/multilingual-e5-large-instruct
// (1024-d) over a bucket, with no inference of your own.

## Capabilities

*   Document-aware chunk embedding (sees full document while encoding each chunk)
*   SOTA on ConTEB contextual retrieval benchmark (81.96 nDCG@10)
*   Competitive on standard MTEB retrieval (69.66 nDCG@10)
*   Eliminates pronoun/reference ambiguity in chunk embeddings
*   MIT license for unrestricted commercial use

## Use Cases on Mixpeek

RAG pipelines: improve retrieval of ambiguous chunks that reference prior context

Legal document search: clauses that reference definitions or earlier sections

Technical documentation: chunks with relative references ('as described above')

Financial reports: tables and commentary that depend on surrounding narrative

## Benchmarks

Dataset

Metric

Score

Source

ConTEB (contextual retrieval)

nDCG@10

81.96%

Perplexity Research, 2026

MTEB Multilingual v2 (retrieval)

nDCG@10

69.66%

Perplexity Research, 2026

## Performance

Input SizeText (full document context)

Embedding Dim4096

GPU Latency~25ms / chunk (A100)

GPU Throughput~40 chunks/sec (A100)

GPU Memory~9 GB

## Common Pipeline Companions

[

BAAI/bge-large-en-v1.5

Lightweight first-stage retrieval

](/model/BAAI/bge-large-en-v1.5)[

Qwen/Qwen3-VL-Reranker-2B

Cross-encoder reranking of retrieved chunks

](/model/Qwen/Qwen3-VL-Reranker-2B)

## Explore on Mixpeek

[

More Embeddings models

Compare alternatives in this category

](/models?category=embeddings)[

Best Self-Hosted Embedding Models

Hand-picked tools & platforms compared

](/curated-lists/best-self-hosted-embedding-models)[

Instruction-Tuned Embeddings

Deep-dive technical guide

](/guides/instruction-tuned-embeddings)[

Feature Extractors

See how Mixpeek runs models as extractors

](/extractors)[

Mixpeek Vector Store

Store & search embeddings at scale

](/mvs)[

Pricing

Usage-based pricing for pipelines

](/pricing)[

All Curated Lists

Compare models, APIs & infrastructure

](/curated-lists)

### Specification

FrameworkHF

Organizationperplexity-ai

FeatureText Embeddings

Output1024-dim vector

Modalitiesdocument, audio

RetrieverText Similarity

Parameters4B

LicenseMIT

Downloads/mo5.2K

[

### Research Paper

pplx-embed: State-of-the-Art Embedding Models for Web-Scale Retrieval

arxiv.org](https://research.perplexity.ai/articles/pplx-embed-state-of-the-art-embedding-models-for-web-scale-retrieval)

### Build a pipeline with pplx-embed-context-v1-4b

Add this model to a processing pipeline alongside other extractors. Combine with retrieval stages for end-to-end search.

[Run it on your own data, free](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)

### Alternative Models

[

BAAI/bge-large-en-v1.5

Text Embeddings

](/model/BAAI/bge-large-en-v1.5)[

sentence-transformers/all-MiniLM-L6-v2

Text Embeddings

](/model/sentence-transformers/all-MiniLM-L6-v2)[

Qwen/Qwen3-Embedding-0.6B

Text Embeddings

](/model/Qwen/Qwen3-Embedding-0.6B)[

nomic-ai/nomic-embed-text-v2-moe

Text Embeddings

](/model/nomic-ai/nomic-embed-text-v2-moe)

### Related in Embeddings

[

openai/clip-vit-large-patch14

Visual Embeddings

](/model/openai/clip-vit-large-patch14)[

google/siglip-base-patch16-224

Visual Embeddings

](/model/google/siglip-base-patch16-224)[

google/siglip2-giant-opt-patch16-384

Visual Embeddings

](/model/google/siglip2-giant-opt-patch16-384)[

facebook/dinov2-large

Visual Embeddings

](/model/facebook/dinov2-large)