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

Graph cannot generate relationships #2070

Open
succulen-plants opened this issue Dec 3, 2024 · 1 comment
Open

Graph cannot generate relationships #2070

succulen-plants opened this issue Dec 3, 2024 · 1 comment

Comments

@succulen-plants
Copy link

succulen-plants commented Dec 3, 2024

🐛 Describe the bug

neo4j 5.25.1
apoc-5.25.1
pip install mem0ai==0.1.34
pip install mem0ai[graph]

My code is as follows

from mem0 import Memory
import os
os.environ['OPENAI_API_KEY'] = '**'
os.environ['OPENAI_BASE_URL'] = '**'
config = {
    "llm": {
    "provider": "openai",
    "config": {
        "model": "gpt-4o-mini",
        "temperature": 0.2,
        "max_tokens": 1500,
        "api_key":'**',
        "openai_base_url":'**'
    }},
    "graph_store": {
        "provider": "neo4j",
        "config": {
            "url": "bolt://localhost:7687",
            "username": "neo4j",
            "password": "**",
            "embedding_model_dims": 1536
        }
    },
    "version": "v1.1"
}
m = Memory.from_config(config_dict=config)
m.add("I like going to hikes", user_id="alice123")

Graph cannot generate relationships:
{'results': [{'memory': 'Likes going to hikes', 'event': 'ADD'}], 'relations': []}

@YameenV
Copy link

YameenV commented Dec 10, 2024

Same issue with me. I have debugged it and found out the tool calling is not working properly

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