Slack App: Repeated action #320
Replies: 11 comments
-
assigned to Yujing |
Beta Was this translation helpful? Give feedback.
-
Description: Steps to Reproduce: Actual Results: Expected Results: Additional Information: Reproducibility: Possible Solutions: Related Issues: Steps Taken So Far: Environment: |
Beta Was this translation helpful? Give feedback.
-
resolved in the pull request #69 |
Beta Was this translation helpful? Give feedback.
-
waiting for @johnnykfeng since he said he still sees repeated action |
Beta Was this translation helpful? Give feedback.
-
This was from last night's testing. |
Beta Was this translation helpful? Give feedback.
-
@YujingYang666777 @20001LastOrder was the issue solved after August 16? |
Beta Was this translation helpful? Give feedback.
-
this is still not resolved completely - @YujingYang666777 is exploring |
Beta Was this translation helpful? Give feedback.
-
Do we have any sort of server-side cache in place already? If we had a cache of { tool: toolName, query: queryText, t: timestamp } then we could avoid reissuing queries for recent items in the cache. And flush the cache after some reasonable amount of time. Redis is one nice way to do this sort of thing. |
Beta Was this translation helpful? Give feedback.
-
this is the core of the idea we're exploring and @YujingYang666777 and @ChenKua are doing some experiments. but I think we need to take a step back and revisit our multi agent frameworks and come up with a more robust system for knowledge tracking within the agent ecosystem to have better foundations for problems like this going forward. I'm trying to put something together so that we can discuss it |
Beta Was this translation helpful? Give feedback.
-
OK - something to look at sounds good. I tried to follow the discussion in today's mtg but didn't have enough context. I can imagine that the query will sometimes be subtly different, but (from a human standpoint) the same idea being tried again. That wouldn't work with a simple cache. So you could cache a vectorization of the query instead. But I'm sure you've thought of that already. @YujingYang666777 and @ChenKua, for the experiments, do you have a list of what you have tried so far, and results? And/or code we can look at? |
Beta Was this translation helpful? Give feedback.
-
I haven't tried the cache. Previously, I added a class named Reflection, that checks if the current action is the same as the previous action and asks it to generate a new one. Currently, it still suffers from the duplicate action issue. Since we have two tools, search and context search, it sometimes turns from search to context search, and gets back again. We can use the cache to save actions in all steps, but since we only have two tools to select from, I am not sure how much it can improve it. Now I am adding more information for the context search tool and checking some multi-agent systems to see if we can get some idea from that. |
Beta Was this translation helpful? Give feedback.
-
During my testing on the React loop, it seems that the bot can be stuck in a loop (e.g. calling the same action with the same argument until it reaches the maximum number of actions).
Suggestion: I think the duplicated action can be determined with a simple rule-based approach. Once we detect the duplicated action, we can either stop the loop or use something like Reflexion (Paper).
Beta Was this translation helpful? Give feedback.
All reactions