New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conditional Flow #1857
Comments
It seems similar to the contents of this proposal: #1731 It would be better to implement the function for an LLM to judge and select prompts directly using Langchain's prompt routing. Here is the relevant documentation: https://python.langchain.com/docs/expression_language/how_to/routing/ Implementing prompt routing directly within Langflow could enhance the block coding environment. However, due to the difficulty of fine-tuning, it might be better to utilize Langchain's techniques. |
Thank you for your response. Is it possible to perform different actions based on various LLM outputs with native langflow? For example, call |
Hey all We have added a feature in the CustomComponent that can fulfill that role even if not ideal yet. Disclaimer: This is still experimental The CustomComponent now has a The general gist of it is you'll create two branches in your flow one for each class and define the rest of the process for each one. The TextOperator (or whatever other component you define that calls |
Wow this is great! I will try it out. |
Is it possible to create a block that determines which flow to execute based on conditions? For example, execute different flows based on the user's intent.
The text was updated successfully, but these errors were encountered: