mem0 icon indicating copy to clipboard operation
mem0 copied to clipboard

How to save and load a database from local in mem0?

Open lemon-little opened this issue 6 months ago • 7 comments

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.

lemon-little avatar Aug 05 '24 04:08 lemon-little