Skip to main content

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.

Note

The dimension of the query vector must match the dimension of your index.

Note

The score returned from query requests is a normalized value between 0 and 1, where 1 indicates the highest similarity and 0 the lowest regardless of the similarity function used.

Arguments#

PayloadQueryCommandPayloadrequired#
OptionsQueryCommandOptions#

Response#

ResponseQueryResultrequired#