Hi team,
I am using the Elasticsearch 8.5.0 docker image (installed and started as explained here) to do some experimenting with ANN search.
I followed this guide to perform approximate KNN search and use a POST command similar to the following one to perform a query:
POST image-index/_search
{
"knn": {
"field": "image-vector",
"query_vector": [-5, 9, -12],
"k": 10,
"num_candidates": 100
},
"fields": [ "title", "file-type" ]
}
My problem is that the parameter k (number of retrieved vectors) seems to be limited to 10: if I decrease it it works well, showing less than 10 results, but as soon as I try to increase it past 10 (for example to 15), it still shows only 10 results.
Is this a limitation of the docker image or did I skip some important configurations?
Thank you very much