Custom Response Output for /invoke endpoint #602
Unanswered
rajnikhil-netapp
asked this question in
Q&A
Replies: 1 comment
-
Another thing I am also planning to send session_id to /invoke method, How can I read it and use it further? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Below code is being used when /invoke is called with the input or request schema.
I am getting the response in the below format
{ "output": { "answer": "", "source_documents": [] }, "callback_events": [], "metadata": { "run_id": "0c45f613-7820-406b-9b8c-67ee9f6884ce" } }
How can I capture the run_id from the response.
By the way I want this to be done from the backend itself.
I understood that we can write a client and format the output.
The reason I want to do this in backend is because I want to utilize the input and output of the chain
read few params from the input and read few params from the output and construct a json object and want to save it to elasticsearch.
is this even possible?
Beta Was this translation helpful? Give feedback.
All reactions