Skip to main content

Upsert Documents

Insert or update documents with your pre-computed vectors and JSON payload. Up to 1,000 documents per request.
Vector dimensions are validated against namespace config. If a document with the same ID exists, it is overwritten.

Bulk Import

For large datasets, stream NDJSON directly to shard WALs. Returns 202 Accepted with a batch ID to poll.
products.ndjson

Dense (Vector)

BM25 (Keyword)

Requires a text index on the target field.

Sparse

Hybrid

Combine multiple query types with RRF or DBSF fusion.

Filtered

Add payload filters to any query type. Filters narrow results before scoring.

Document Operations

OperationMethodEndpoint
Get by IDGET/v1/namespaces/{ns}/documents/{doc_id}
Update payloadPATCH/v1/namespaces/{ns}/documents/{doc_id}
DeleteDELETE/v1/namespaces/{ns}/documents/{doc_id}
Scroll (paginate)POST/v1/namespaces/{ns}/documents/scroll

Update Vectors

OperationMethodEndpoint
Replace vectors (single doc)PATCH/v1/namespaces/{ns}/documents/{doc_id}/vectors
Batch replace vectorsPOST/v1/namespaces/{ns}/documents/update-vectors
Add new vector indexPOST/v1/namespaces/{ns}/documents/add-vectors
Payload is untouched when updating vectors.