You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "cpoerschke (via GitHub)" <gi...@apache.org> on 2023/12/01 12:13:46 UTC

[PR] [experimental] (Abstract+Demo)VectorToTextStream [solr]

cpoerschke opened a new pull request, #2109:
URL: https://github.com/apache/solr/pull/2109

   (Includes the #2103 changes until they are merged.)
   
   ```
   curl --data-urlencode 'expr=
     demoVectorToText(
       search(films,
              q="name:batman",
              fl="id,name,genre,film_vector",
              sort="id asc",
              rows="10"),
       vectorField="film_vector",
       outputKey="answer",
       demoParam="externalComputation"
     )
   ' "http://localhost:8983/solr/films/stream"
   ```
   
   ```
   {
     "result-set":{
       "docs":[{
         "answer":"externalComputation([\n[-0.53288126, -0.15785158, -0.21545522, 0.0987995, -0.21554002, -0.14489603, -0.13352358, -0.100379504, -0.07327323, -0.19213717]\n[-0.27408952, -0.13091102, -0.07556459, 0.3061517, -0.12661931, -0.08629819, -0.0069658905, -0.14377165, -0.12259099, -0.090441875]\n[-0.22303547, -0.17420556, -0.1607438, 0.15663052, -0.023980502, -0.31375083, -0.01764825, -0.15330353, 0.07066559, -0.076853275]\n[-0.16692775, -0.10954698, -0.061218873, 0.34485558, -0.13169965, 0.027984979, -0.11297107, 0.01072187, -0.05827479, -0.19397882]\n])",
         "RESPONSE_TIME":7
       }]
     }
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


Re: [PR] [experimental] (Abstract+Demo)VectorToTextStream [solr]

Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on PR #2109:
URL: https://github.com/apache/solr/pull/2109#issuecomment-1836047941

   This is really cool!   I'm hoping next week to merge #1988 in, and that might give a structure for you to add more example/docs to ref guide ;-).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org