Replies: 2 comments 9 replies
-
|
Here’s how you can address each of your issues:
Let me know if you want code examples or more details on any of these! To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
Q1: Try |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently designing an agent. The general process and objective are as follows:
When a user inputs a question, if the input follows a fixed format (or has pre-defined keywords), the agent will extract certain keywords from the format and store them in a variable. Then, based on this variable (e.g., A1, B1, C1), a switch statement will be used to trigger different APIs (API 1, API 2, API 3).
When the user's input doesn't follow the specified format or lacks keywords, it triggers an await response, displaying a dropdown list for keyword selection. Different keywords match and trigger different APIs.
However, there are a few issues:
How to design and determine if the user's input follows the specified format or contains keywords?
For method 2, I'm using await response + switch. For example, my await response key and name are both "Color," and the dropdown list has three options (Red, Green, Blue), each corresponding to a different API. In the switch activity, if I use
Equals, such asColor equals Red, it triggers API 1. However, regardless of the dropdown list selection, it always reaches theelsebranch in the switch (I've set a message activity: "color is not in color list"). Is this due to a design flaw in my switch activity? When I useequals,Contains, orStart with, the response is always "'dict' object has no attribute 'lower'." How can I resolve this?Can RAGFlow display different dropdown lists for different users?
Can RAGFlow call functions of other agents within the agent, such as n8n?
RAGFlow occasionally throws an AttributeError("'NoneType' object has no attribute 'id'"), although no adverse effects have been observed. Why is this happening? @dosu
Beta Was this translation helpful? Give feedback.
All reactions