You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I am trying to rerun the LLM model if the generation is hallucinated, but I am getting a circular dependency error. Is there a way to implement this logic in Prompt Flow?
Describe the solution you'd like
I would like to have a loop mechanism with max_retries if the output is not sufficient.
Describe alternatives you've considered
I was thinking of a secondary LLM to be used in case of hallucination, but then I need as many LLMs as the max retries I want to have.
Additional context
Here is my current flow:
here is the error I am getting:
"variant_0 Run failed:
Invalid node definitions found in the flow graph. Node circular dependency has been detected among the nodes in your flow. Kindly review the reference relationships for the nodes ['answer_the_question_with_context', 'hallucination_grader', 'hallucination_pass', 'output_show'] and resolve the circular reference issue in the flow. "
The text was updated successfully, but these errors were encountered:
Hi, I also had similar struggle as yours. After researching, I realize that since it's a DAG flow, you are not supposed to implement any loop. To achieve that logic, you should change to use Flex flow instead.
Hi, I also had similar struggle as yours. After researching, I realize that since it's a DAG flow, you are not supposed to implement any loop. To achieve that logic, you should change to use Flex flow instead.
Is your feature request related to a problem? Please describe.
I am trying to rerun the LLM model if the generation is hallucinated, but I am getting a circular dependency error. Is there a way to implement this logic in Prompt Flow?
Describe the solution you'd like
I would like to have a loop mechanism with max_retries if the output is not sufficient.
Describe alternatives you've considered
I was thinking of a secondary LLM to be used in case of hallucination, but then I need as many LLMs as the max retries I want to have.
Additional context
Here is my current flow:
here is the error I am getting:
"variant_0 Run failed:
Invalid node definitions found in the flow graph. Node circular dependency has been detected among the nodes in your flow. Kindly review the reference relationships for the nodes ['answer_the_question_with_context', 'hallucination_grader', 'hallucination_pass', 'output_show'] and resolve the circular reference issue in the flow. "
The text was updated successfully, but these errors were encountered: