Find answers from the community

Updated 2 years ago

Hi

Hi!
Simple question. How can I chain query results or what is the best approach?
Example:
answer_1 = query_engine.query("Question 1?")
answer_2=query_engine.query("Question 2?")
answer_3=query_engine.query("Question 3?")

Make a report based on [answer_1, answer_2, answer_3].

Should I simply loop through questions/answers and feed them to LLMChain for the end result?
I tried to give all questions to the agent, but it finishes the chain after the first question is answered.
Also, agent some fail when the query router fails to select the engine for the query
L
S
4 comments
I think your suggestion is correct. Feed all answers along with some prompt to generate a final result

Also I've noticed that too about the query router. It would be good if there was some fallback for it
Thanks @Logan M as always very helpful!
Hey, so this is my solution, I am using a thread pool to ask questions concurrently
Attachment
image.png
Speedy! :dotsCATJAM:
Add a reply
Sign up and join the conversation on Discord