Parameter | Type | Description |
---|---|---|
query_vectors | Array2D<float> | Query vectors to search. |
query_params | QueryParams | (Optional) Parameters for querying, such as top_k and n_lists . |
TrainIndex()
has not been executed, the query will use encrypted exhaustive search.
This may cause queries to be slower, especially when there are many vector embeddings in the index.QueryResults
: Results top_k
containing decrypted nearest neighbors IDs and distances.
std::invalid_argument
std::runtime_exception