Re: Dense vector search distance calculation

2024-01-29 Thread Frederic Font Corbera
Thanks! -- Frederic Font - ffont.github.io Music Technology Group, UPF - mtg.upf.edu Freesound - freesound.org On Mon, 29 Jan 2024 at 11:50, Alessandro Benedetti wrote: > This class is probably your best bet: > org.apache.lucene.index.VectorSimilarityFunction >

Re: Dense vector search distance calculation

2024-01-29 Thread Alessandro Benedetti
This class is probably your best bet: org.apache.lucene.index.VectorSimilarityFunction >From here you can explore the java code used to calculate the vector similarities in Apache Solr. Cheers -- *Alessandro Benedetti* Director @ Sease Ltd. *Apache Lucene/Solr Committer* *A

Re: Dense vector search distance calculation

2024-01-27 Thread Frederic Font Corbera
Nevermind, I guess Solr computes cosine similarity and not cosine distance, and the returned score is probably the cosine similarity value. Cheers, frederic -- Frederic Font - ffont.github.io Music Technology Group, UPF - mtg.upf.edu Freesound - freesound.org E

Dense vector search distance calculation

2024-01-27 Thread Frederic Font Corbera
Hi everyone, I successfully added dense vector search to my Solr-based app, but I’d like to compare the results with other nn-search solutions and for that reason it would be good to have access to the actual distance values computer by Solr. This does not seem to be possible and I can only access