Aggregate-Intellect/sherpa

[BUG] Weird Memory Retention from Sherpa

Closed this issue · 1 comments

Describe the bug
In the Slack Channel, Sherpa responded to a question with an irrelevant search:
image

After some investigation, it seems this query was also used to answer another question earlier:
image

So for some reason, the memory is retained from the last question to this question. However, this seems to happen rarely so more investigation is necessary.

To Reproduce
Unclear

Expected behavior
Sherpa should answer the second question by searching with a relevant query

It seems this line:

belief: Belief = Belief(),

causes all QA agents with default beliefs to share the same belief. I think this may be the cause of the issue. There is already a fix implemented in the above PR mentioned in this issue.