Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Didn't add memory to graph #1879

Open
galshubeli opened this issue Sep 18, 2024 · 2 comments
Open

Didn't add memory to graph #1879

galshubeli opened this issue Sep 18, 2024 · 2 comments
Assignees

Comments

@galshubeli
Copy link

galshubeli commented Sep 18, 2024

🐛 Describe the bug

When the graph database is empty, the prompt uses '- Existing Graph Memories: []', which results in empty new graph memories. Change it to '- Existing Graph Memories: None' to fix the issue.

@prateekchhikara
Copy link
Collaborator

@galshubeli can you elaborate it a little more?

@prateekchhikara prateekchhikara self-assigned this Sep 25, 2024
@galshubeli
Copy link
Author

I noticed that when the graph is empty, the LLM doesn't extract new memory with the current prompt. However, when I used None instead of [], it successfully updated the memory.

File: mem0/mem0/graphs
/utils.py

line: 58

object: "EXTRACT_ENTITIES_PROMPT"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants