- Newest
- Most votes
- Most comments
From your trace, it looks like the input to the condition node is coming as "\n\ntransactions" (check the . two new line chars \n\n) which is causing the condition to fail. Please check the prompt node in the flow. The LLM response could cause this type of inconsistencies.
While replicating the issue, with the claude3 Haiku (as in the video), the prompt node's output is correctly and precisely classified as "transactions" (no new line chars) and the condition went to the right one. Whereas when I switched to Llama 3 8B model, the prompt node's output came as "\n\ntransactions" and went it hit the default condition.
Try changing the LLM, which is most likely the cause of the issue in your case.
Thank you, this worked! Seemed as the model wasn't giving me the right result.
answered 2 years ago
Relevant content
asked 2 years ago
asked 2 years ago
asked 2 years ago

Stay tuned. Flows is still a newer feature. More and more conditional evaluations will come, so you could use the same Llama3 model and do a contains() operation to match a string etc. Meanwhile you can look at latest Llama 3.2 models like 1B size which do return the classification response in expected format.