mem0 icon indicating copy to clipboard operation
mem0 copied to clipboard

when use chroma, wrapper has not been initialized

Open Justin-sky opened this issue 5 months ago • 2 comments

🐛 Describe the bug

my code is this:

import os

from mem0 import Memory

config = {
    "vector_store": {
        "provider": "chroma",
        "config": {
            "collection_name": "justin",
            "path": "db",
        },
    },
    "llm": {
        "provider": "ollama",
        "config": {
            "model": "rolandroland/llama3.1-uncensored",
            "temperature": 0.3,
            "max_tokens": 8000,
            "ollama_base_url": "http://127.0.0.1:11434",  # Ensure this URL is correct
        },
    },
    "embedder": {
        "provider": "ollama",
        "config": {
            "model": "nomic-embed-text:latest",
            # Alternatively, you can use "snowflake-arctic-embed:latest"
            "ollama_base_url": "http://localhost:11434",
        },
    }
}

m = Memory.from_config(config)

mid = m.add("I like pizza", user_id="alice")
search = m.search("pizza", user_id="alice")
print(search)

r = m.get_all(user_id="alice")
print(r)

and i break at chroma.py, the exception raise: image

Justin-sky avatar Sep 08 '24 05:09 Justin-sky