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
>