mem0
mem0 copied to clipboard
when use chroma, wrapper has not been initialized
🐛 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:
chromadb: 0.5.5, memo: 0.1.11, ollama: 0.3.2
@Justin-sky Can you please elaborate what is the issue you're facing? I'm running the code and it works fine right now on the described versions.