Open pg179-krishna-innoway opened 3 weeks ago
Can you please provide more info / context on how you are setting this up in your crew I.E the code itself as you have only supplied a screenshot of the underlying crewai code for long term memory
agent1= Agent( role="...", goal=..., allow_delegation=False, verbose=True, memory=True, llm=llm ) agent2= Agent( role=..., goal=... allow_delegation=False, verbose=True, memory=True, tools = [web_tool], llm=llm )
crew = Crew(
agents=[agent1, agent2],
tasks=[task1, task2],
memory=True,
process=Process.sequential,
verbose=True,
embedder={
"provider": "google",
"config":{
"model": 'models/embedding-001',
"task_type": "retrieval_document",
"title": "Embeddings for Embedchain"
}
}
)
This is my code where I am creating two agents and a crew. Other than this I have also used the way to store context in long term memory using theapproach as mentioned in the crewai documentation : https://docs.crewai.com/core-concepts/Memory/#how-memory-systems-empower-agents.
It is creating a file long_term_memory.db but the file is empty.
Any update on this? Encountering the same bug.
Description
I'm currently working on a project where I'm using Crew AI agents with chunking and context retention. As part of this process, I'm attempting to implement long-term memory for the agents using SQLite to store previous context and embedding information. However, I’ve noticed that the long-term memory is not storing any data.
Steps to Reproduce
Expected behavior
The long-term memory should store and retrieve context and embedding data for use in subsequent query processing.
Screenshots/Code snippets
Operating System
Windows 11
Python Version
3.12
crewAI Version
0.41.1
crewAI Tools Version
NA
Virtual Environment
Venv
Evidence
Possible Solution
None
Additional context
None