Run multi-vectors kNN search

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.

Thank you so much,
Riccardo

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.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.

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).

1 Like