Find answers from the community

Updated 6 months ago

Link

At a glance

The post asks if there is a way to make a query pipeline conditional, where the flow goes to different nodes based on a condition. The comments indicate that this is possible, and a community member provides an example link to the documentation. Another community member suggests using a function to determine whether a link should be made or not.

The comments also include feedback on the current developer experience with query pipelines. Community members note that when a component of the pipeline fails, the error message does not clearly indicate which component caused the issue. They also mention that it is not clear how to add agents at different steps of the pipeline.

There is no explicitly marked answer, but the community members provide suggestions and feedback on how to implement conditional query pipelines and improve the developer experience.

Useful resources
hi, is there a way to make a query pipeline conditional? suppose i have a node A, if x=1 it should go to node B else it should go to node C.
L
r
9 comments
Basically you have a function that returns whether the link should be made or not
@richard1861 btw, I notice you've been diving pretty deep into query pipelines.

If you have any feedback on the current dev UX, do let us know 😁 it's a pretty new feature, so always looking for feedback or how people are using it
yeah, i am enjoying it πŸ™‚ so far so good, i am just struggling with conditions but i will try the conditional links πŸ™‚
after my experience using it, something that I think I could be improved, is that if a particular component of the pipeline fails (for example: ValueError: Module input keys must have exactly one key if dest_key is not specified. Remaining keys: in module: {'context_str', 'python_code', 'context_str2'}), the error does not show which specific the component of the pipeline has failed, it just give you the keys , but when you have a big pipeline it gets messy
also it is not so clear, how to add agents in different steps of a query pipeline. Maybe is possible but i was not able to do it right.
Oh I 100% agree on this one. I ran into the same issue with tracking down which link/module was causing the issue lol
If possible, it would be nice if it validated the links before even trying to run it
Add a reply
Sign up and join the conversation on Discord