Retrieves the nearest neighbors for given query vectors.Documentation Index
Fetch the complete documentation index at: https://docs.cyborg.co/llms.txt
Use this file to discover all available pages before exploring further.
Parameters
| Parameter | Type | Description |
|---|---|---|
query_vectors | Array2D<float> | Query vectors to search. |
query_params | QueryParams | (Optional) Parameters for querying, such as top_k and n_probes. |
Returns
QueryResults: Results top_k containing decrypted nearest neighbors IDs and distances.
Exceptions
std::invalid_argument
std::invalid_argument
- Throws if the query vectors have incompatible dimensions with the index.
- Throws if the index was not created or loaded yet.
std::runtime_error
std::runtime_error
- Throws if the query could not be executed.