Find answers from the community

Updated 3 months ago

Tools

In query pipelines I want to have a LLMMultiSelector that selects tools, and then ask a question independently to each tool. How can I stream the multiple values of the output of LLMMultiSelector each to its own tool? And then summarize? I dont see a way to express this with pipelines
L
s
3 comments
Conditional links I think? (If tool is called, link here)

Example in this notebook (there is a condition_fn to determine if the link should be made, and an optional input_fn to transform the input)
https://docs.llamaindex.ai/en/stable/examples/agent/agent_runner/agent_around_query_pipeline_with_HyDE_for_PDFs/?h=condition_fn#stitch-together-agent-query-pipeline

Or, just write a custom component to handle the output of the multi select
I just ended up with a component to handle everything, seemed the easiest
I agree πŸ™‚
Add a reply
Sign up and join the conversation on Discord