Create Embeddings
Generate embeddings for texts, pre-chunked documents (pplx-embed-v2), or images (pplx-embed-v2). Use these embeddings for semantic search, clustering, and other machine learning applications.
Authorizations
Body
Request body for creating embeddings
Input to embed. pplx-embed-v2 models accept a string, an array of strings, pre-chunked documents (an array of string arrays), or image objects. pplx-embed-v1 models accept only a string or array of strings; a request contains only text or only images. Maximum 512 texts or documents per request. Each text or document must not exceed 32K tokens. All text in a single request must not exceed 120,000 tokens combined. Empty strings are not allowed.
1Output dimensions. v2: 1024 for pplx-embed-v2-context-0.6b (not MRL-trained); 1024 or 2048 for pplx-embed-v2-context-9b (MRL). v1: multiples of 8 from 128 to 1024 for pplx-embed-v1-0.6b or 2560 for pplx-embed-v1-4b. Defaults to the model's full dimensions.
128 <= x <= 2560Response
Successful Response
Response body for embeddings request
List of embedding objects. Pre-chunked documents and image inputs with num_chunks above 1 return one contextualized object per input, with chunk embeddings in data.
A single embedding result
- Embedding Object
- Contextualized Embedding Object