Encrypted Index
Query Vectors (Binary)
POST
Query Vectors (Binary)
Search for nearest neighbors in the encrypted index using binary-encoded query vectors for more efficient transfer of large batch queries.
Any valid credential is accepted — the root key or a per-user
All leg combinations from the standard query endpoint work here too, including the three-way form (
Authentication
Required - API key viaX-API-Key header:
cdbk_ token. When RBAC is not enabled (CYBORGDB_SERVICE_ROOT_KEY unset), no header is required.
Request Body
Hybrid queries accept fewer filters than pure vector queries. Filtering on a
full_text or filterable: false field, or using $regex/$contains on a non-pattern field, works in a pure query but is rejected with 400 when text is set. See the query endpoint for details.query_vectors + text + filters) — see Combining search legs.
Response
The response format is the same as the standard query endpoint. Whentext is set, each result carries a score (fused BM25 + vector relevance, higher = more relevant) instead of distance:
Exceptions
400 Bad Request
400 Bad Request
Invalid values (e.g. vector dimension mismatch with the index), or a filter disallowed on a hybrid (
text) query404 Not Found
404 Not Found
Index not found
422 Unprocessable Entity
422 Unprocessable Entity
Request body failed validation (missing/mistyped fields)
500 Internal Server Error
500 Internal Server Error
Internal server error