elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
69.59k stars 24.63k forks source link

Investigate & implement support for different vector types dot-product against bit vectors #111232

Open benwtrent opened 1 month ago

benwtrent commented 1 month ago

Description

Back when Cohere originally released their v3 model, one of the interesting steps they took for relevance was reranking the top-N vectors by doing a dot-product between the float[] and the bit[] vectors. Effectively summing all the non-zero indices, allowing for the higher-fidelity of the query vector to provide better scoring.

We should dig a little bit to see if this is worth it with our own benchmarking with CohereV3 and see if there are any other models would benefit from this.

The work likely required are:

What's interesting is that we might want to allow dot-product between all our various element_type's in scripts. The tricky part is ensuring we always pick the right type.

elasticsearchmachine commented 1 month ago

Pinging @elastic/es-search-relevance (Team:Search Relevance)