[BUG] The chat history returned by the retrieve method of LongtermAgentMemory is confusing. #1578
Open
2 of 3 tasks
Labels
Milestone
Required prerequisites
What version of camel are you using?
0.2.20a1
System information
3.10.12 (main, Aug 16 2023, 15:12:12) [Clang 13.1.6 (clang-1316.0.21.2.5)] darwin
0.2.20a1
Problem description
The following code can reproduce this issue.
Output
It seems that the retrieve method of LongtermAgentMemory is not quite correct when concatenating chat_history and vector_db_retrieve, or I do not understand the purpose of this piece of code.
https://github.com/camel-ai/camel/blob/master/camel/memories/agent_memories.py#L156
Please note that the answer to the question
What is the memory of the agent
is incorrect. And finally, the order of the contents in memory is chaotic.Reproducible example code
as shown above
Traceback
Expected behavior
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: