Find answers from the community

Updated last year

Hi everyone, just wondering, is it

At a glance
Hi everyone, just wondering, is it possible to pipeline query execution on different indices?

The use case would be to first send a query and then use the results to send it as input to query another index, like a pipelining of queries and indices.
L
W
4 comments
Couldn't you do this yourself in code?

Plain Text
response = query_engine1.query(...)
response2 = query_engine2.query(str(response))
hi Logan, yes, it's possible indeed. I was just wondering if llama already offers natively support for that. One benefit might be a better integration with the callback manager for instance (i suppose, not sure)
true true. Yea nothing built in quite like that (sequential queries like that would be a little slow)

An agent could technically do this as well, but it would be up to the agent to decide the tools and the order to call them
hmm i see. I though on experimenting agents as well but that might be an overkill for our use case. I'll stick to your first suggestion then. Thanks for the help :)!
Add a reply
Sign up and join the conversation on Discord