That also invokes knn, correct? I just need the vector math response, a cosine value of the query vector and document vector. For example, the streaming api endpoint vector-math.html#dot-product-and-cosine-similarity <https://solr.apache.org/guide/7_5/vector-math.html#dot-product-and-cosine-similarity> looks like one however it is a streaming api, it would have been nice if this was also supported by standard query parser or a function query.
On Thu, May 25, 2023 at 3:34 PM kumar gaurav <[email protected]> wrote: > HI Rajani > > Read here : > > https://solr.apache.org/guide/solr/latest/query-guide/dense-vector-search.html > > The knn query parser can be used . > > &q={!knn f=vector topK=10}[1.0, 2.0, 3.0, 4.0] > > > Thanks > Kumar Gaurav > > > > On Fri, 26 May 2023 at 00:14, Rajani Maski <[email protected]> wrote: > > > Hi Solr Users, > > > > Is there a vector search parser that allows computing distance > between a > > document's vector field and query vector passed as query param? The > jiras > > SOLR-14397 <https://issues.apache.org/jira/browse/SOLR-14397> > SOLR-12890 > > <https://issues.apache.org/jira/browse/SOLR-12890> suggests vector > search > > parser "!vp" and the other "cosine" as functions but I couldn't get it to > > work on solr 9.1.1 version, is this supported yet, one of the jira state > is > > still "open"? > > > > What are other alternatives to calculate cosine between vector fields in > > solr vs query vector sent as query param? > > > > > > Thanks, > > Rajani > > >
