Parameters
QueryParams
Include defaults differ between endpoints: Query returns [] (only Id) by default, while Get returns ["vector", "contents", "metadata"].Returns
*QueryResponse: Search results containing vectors, distances, and requested fieldserror: Any error encountered during the search operation
Error Handling
API Errors
API Errors
- Returns error if the API request fails due to network connectivity issues
- Returns error if authentication fails (invalid API key)
- Returns error if the encryption key is invalid for the specified index
- Returns error if there are internal server errors during the search
Validation Errors
Validation Errors
- Returns error if none of QueryVector, BatchQueryVectors, or QueryContents is provided
- Returns error if vector dimensions don’t match the index configuration
- Returns error if parameter values are out of valid ranges
- Returns error if the Include parameter contains invalid field names
Example Usage
Single Vector Query
Batch Vector Query
Semantic Search with Text
BinaryQueryParams does not accept RerankMult — it is supported only on QueryParams. Use QueryParams if you need to tune the stage-1 candidate multiplier on a reranking index.