Skip to content

[experimental] (Abstract+Demo)VectorToTextStream#2109

Draft
cpoerschke wants to merge 9 commits intoapache:mainfrom
cpoerschke:vector-to-text-stream
Draft

[experimental] (Abstract+Demo)VectorToTextStream#2109
cpoerschke wants to merge 9 commits intoapache:mainfrom
cpoerschke:vector-to-text-stream

Conversation

@cpoerschke
Copy link
Contributor

@cpoerschke cpoerschke commented Dec 1, 2023

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
    }]
  }
}

@epugh
Copy link
Contributor

epugh commented Dec 1, 2023

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 ;-).

Resolved Conflicts:
	solr/CHANGES.txt
	solr/core/src/java/org/apache/solr/response/DocsStreamer.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants