Filter Raw Embeddings
Retrieve embeddings for specific chunk IDs. Use this when you already know the chunk IDs and need their corresponding embeddings.
Examples
- API Request
- TypeScript
- Python (Sync)
Requirements
- chunk_ids: Array of valid chunk ID strings (cannot be empty)
- tenant_id: Required for multi-tenancy support
- sub_tenant_id: Optional, defaults to tenant_id if not provided
Response Details
- embeddings: Dictionary mapping chunk IDs to their embedding vectors
- not_found_chunk_ids: Array of chunk IDs that were not found in the system
Sample Response
Error Responses
All endpoints return consistent error responses following the standard format. For detailed error information, see our Error Responses documentation.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Unique identifier for the tenant/organization
"tenant_1234"
Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
"sub_tenant_4567"
Optional source ID to filter by (mutually exclusive with chunk_ids)
"CortexDoc1234"
Optional list of chunk IDs to filter by (mutually exclusive with source_id)
[
"CortexEmbeddings123_0",
"CortexEmbeddings123_1"
]Optional list of fields to return in results (default: chunk_id, source_id, metadata)
Maximum number of results to return
1 <= x <= 100001
Response
Successful Response
Source identifier
"CortexDoc1234"
Embedding payload with chunk id and vector (if set)
Similarity score
1
Vector distance
1
Metadata associated with the embedding