The query method is designed to retrieve the most similar vectors from the index, using the specific distance metric defined for your index. This method supports a variety of options to configure the query to your needs.
The dimension of the query vector must match the dimension of your index.
The total number of the vectors that you want to recieve as a query
result. The response will be sorted based on the distance metric score,
and topK vectors will be returned.
Whether to include the metadata of the vectors in the response. Setting
this true would be the best practice, since it will make it easier to
identify the vectors.