Files
elasticsearch-js/docs/reference/api/KnnRetriever.md
2025-05-27 15:30:21 -05:00

915 B

Interface KnnRetriever

Name Type Description
field string The name of the vector field to search against.
k integer Number of nearest neighbors to return as top hits.
num_candidates integer Number of nearest neighbor candidates to consider per shard.
query_vector_builder QueryVectorBuilder Defines a model to build a query vector.
query_vector QueryVector Query vector. Must have the same number of dimensions as the vector field you are searching against. You must provide a query_vector_builder or query_vector, but not both.
rescore_vector RescoreVector Apply oversampling and rescoring to quantized vectors
similarity float The minimum similarity required for a document to be considered a match.