mem0
mem0 copied to clipboard
How to save and load a database from local in mem0?
Issue with current documentation:
Like embedchain reuse a vector database reuse embeddding
My code:
config = {
"llm": {
"provider": "openai",
},
"embedder": {
"provider": "openai"
},
"history_db_path": "/home/lcy/.mem0/history.db",
"vector_store": {
"provider": "qdrant",
"config": {
"host": "localhost",
"path": "/tmp/qdrant",
"collection_name": "mem0",
}
}
}
memory = Memory().from_config(config)
all_memories = memory.get_all()
I can't reuse the local memory with the same code when I run the code.