Hello everyone!
I’m really interested by the new kNN search functionality of Elasticsearch v8.
Is there any way to run an approximate kNN search on multiple dense_vectors?
I checked the docs but, as of version 8.1.0, there’s no mention about it. Moreover, I tried to create a multi-vector query and execute it through Kibana dev tools console but it doesn’t seem to be supported.
What do you mean by run an approximate kNN search on multiple dense_vectors?
If you mean that can a single field have multiple vectors, it is currently not supported.
Also providing multiple query vectors is not supported. But what you can do instead is to issue multiple _knn_search requests with each own query_vector and combine results on your application side.
You can follow this development, which was not (yet) released. I think it may provide you the capability you are seeking. It is related to issue #91187 and PR #92118 and as you can see it is merged for v8.7 (note, this is not a commitment that it will be released then or at all, but we work transparently and you can draw your own conclusions).
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.