joaomdmoura / crewAI

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
https://crewai.com
MIT License
17.01k stars 2.3k forks source link

Short Term Memory not working #827

Open himanshusoni21 opened 1 week ago

himanshusoni21 commented 1 week ago

This is the output of the Context appended by Long Term, Short Term and Entities Memory.

["Historical Data:\n- Ensure that the initial 'Thought' statement is removed from the final answer as it may confuse the reader.\n- Maintain consistency in formatting; the final output should not have differing formatting styles in the same section.\n- Add more real-.", '', # Short Term Element is Empty 'Entities:\n- Learning Rate(Hyperparameter): A crucial hyperparameter in the optimization process that determines the step size at each iteration while moving toward a minimum of the loss function.\n- learning rate(concept): A crucial hyperparameter in AI and machine learning that determines the size of the steps taken towards minimizing the loss function during the training process.\n- Natural Language Processing (NLP)(Field): Involves the interaction between computers and humans through natural language, enabling machines to understand, interpret, and respond to human language.'].

Let me know, If I am doing anything wrong. In my investigation, Long Term and Entity Memory is giving data to context but short term remain empty. I have set the memory=True while creating Agent and kicking off crewai object.

beeapu commented 3 days ago

Hi, @himanshusoni21 is entity memory working fine for you? means is it consistent for you? For me its not consistent at all. Suppose i am feeding it some list of fruits then it will be able to recognize only one fruit and forgetting every other. Then I tried to do this exercise once again but now it is storing nothing new at all.