Skip to main content

Overview

Use standard embeddings for independent text embedding (queries, documents, and semantic search) where each text is self-contained.

Models

ModelDimensionsContextMRLQuantizationPrice ($/1M tokens)
pplx-embed-v1-0.6b102432KYesINT8/BINARY$0.004
pplx-embed-v1-4b256032KYesINT8/BINARY$0.03

Basic Usage

Generate embeddings for a list of texts:

Semantic Search Example

Build a simple semantic search system:

Parameters

ParameterTypeRequiredDefaultDescription
inputstring | array[string]Yes-Text(s) to embed. Max 512 texts per request. Each input must not exceed 32K tokens. Total tokens must not exceed 120,000. Empty strings are not allowed.
modelstringYes-Model identifier: pplx-embed-v1-0.6b or pplx-embed-v1-4b
dimensionsintegerNoFullMatryoshka dimension (128-1024 for 0.6b, 128-2560 for 4b)
encoding_formatstringNobase64_int8Output encoding: base64_int8 (signed int8) or base64_binary (packed bits)
Input limits: Each text must not exceed 32K tokens. Requests exceeding this limit will be rejected. All inputs in a single request must not exceed 120,000 tokens combined.

Contextualized Embeddings

Document-aware embeddings for chunks that share context.

Best Practices

Batch processing, caching, and RAG patterns.