Documentation Index
Fetch the complete documentation index at: https://ahen.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Skypydb supports mem0 via a third-party implementation.
To use skypydb with mem0, you will need to modify some files in the mem0 source code.
See the Mem0 component section for more information:
Use Skypydb with Mem0
Install Skypydb with Mem0
pip install skypydb[mem0]
basic usage
from mem0 import Memory
# Local mem0 config
config = {
"vector_store": {
"provider": "skypydb",
"config": {
"collection_name": "memory",
"path": "db/_generated/mem0_vector.db"
}
},
"llm": {
"provider": "ollama",
"config": {
"model": "llama3.1:latest",
"temperature": 0.3,
"max_tokens": 1024,
"ollama_base_url": "http://localhost:11434",
},
},
"embedder": {
"provider": "ollama",
"config": {
"model": "mxbai-embed-large"
}
}
}
m = Memory.from_config(config)
# Add memories
m.add("I love Python programming", user_id="user1")
m.add("My favorite color is blue", user_id="user1")
# Search memories
results = m.search("What programming language do I like?", user_id="user1")
print(results)