# Multi Memory

### Core Feature

* Supports conversation switching
* Supports conversation upload when auto\_upload\_to\_hub is set; view at <https://hub.membase.unibase.com/>
* Supports conversation preload from storage hub: <https://hub.membase.unibase.com/>

```python
from membase.memory.multi_memory import MultiMemory
from membase.memory.message import Message

mm = MultiMemory(
    membase_account="default",
    auto_upload_to_hub=True,
    preload_from_hub=True,  # preload all conversations for membase_account
)
msg = Message(
    name = "agent9527",
    content = "Hello! How can I help you?",
    role="assistant",
    metadata="help info"
)

# switch to
conversation_id='your_conversation'
mm.add(msg, conversation_id)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://unibaseio.gitbook.io/unibase-docs/membase/multi-memory.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
