[Dense Vectors][Streaming] Store dense vector of a query in a streaming variable and use it for vector math

2023-02-02 Thread Gabriel Magno
hich is my actual end goal): let( vector_1=search(films, q="*:*", fq="id:"/en/finding_nemo"", fl="film_vector"), vector_2=search(films, q="*:*", fq="id:"/en/bee_movie"", fl="film_vector"), vector_final=ebeAdd(vector_1, vector_2) ) The above streaming expression does not work, it returns the following exception: class org.apache.solr.client.solrj.io.Tuple cannot be cast to class java.lang.Number (org.apache.solr.client.solrj.io.Tuple is in unnamed module of loader org.eclipse.jetty.webapp.WebAppClassLoader @1e886a5b; java.lang.Number is in module java.base of loader 'bootstrap') Best, -- Gabriel Magno

Re: Vector/array variable as input for KNN query with Streaming Expressions

2023-01-18 Thread Gabriel Magno
the process becomes impossible. Best, -- Gabriel Magno Em qua., 18 de jan. de 2023 às 10:18, Alessandro Benedetti < benedetti.ale...@gmail.com> escreveu: > Hi, during the implementation work so far, streaming expressions were not > taken into account at all. > If it works,

Vector/array variable as input for KNN query with Streaming Expressions

2023-01-18 Thread Gabriel Magno
ariable without the ampersand (&), but it does not work either. In summary: is it possible to use streaming variables inside query strings. More specifically, is it possible to use streaming arrays as target Dense Vectors in KNN queries? Best, -- Gabriel Magno