import{_ as t,o,c as r,ag as a}from"./chunks/framework.DXGyWiRo.js";const g=JSON.parse('{"title":"Bot Memory Management","description":"","frontmatter":{},"headers":[],"relativePath":"getting-started/memory.md","filePath":"getting-started/memory.md","lastUpdated":1774787421000}'),i={name:"getting-started/memory.md"};function n(s,e,m,l,d,h){return o(),r("div",null,[...e[0]||(e[0]=[a('

Bot Memory Management

Memoh's structured long-term memory system allows bots to remember information across multiple conversations, providing contextually relevant and personalized interactions.

Prerequisites

Before using the Memory tab, make sure your bot already has a Memory Provider configured.

  1. Create a provider from one of the Memory Providers (Built-in, Mem0, or OpenViking).
  2. Open your bot's General tab.
  3. Select the provider in the Memory Provider field.
  4. Click Save.

Without a memory provider, the bot will not have an active memory backend configuration.


Concept: Memory Retrieval

Memories are stored and retrieved through the assigned memory provider. Depending on the provider type and mode, retrieval may use file-based indexing, sparse vectors, dense embeddings, or an external API. When a user sends a message, Memoh finds the most relevant memories and includes them in the bot's runtime context.


Operations

Manage your bot's memories from the Memory tab in the Bot Detail page.

1. Creating Memories

2. Searching and Managing


Memory Compression (Compact)

Over time, memories can accumulate and become redundant. The Compact feature helps optimize the memory pool.

For more details on compaction, see Memory Compaction.


Rebuild

The Rebuild feature re-indexes all memories from scratch. This is useful when:

Click Rebuild in the Memory tab to start the process. You can monitor the rebuild status in real-time.


Status

The Memory tab shows the current status of the memory provider for this bot:

Use the status indicator to quickly verify that the memory system is working before troubleshooting other issues.


Usage Statistics

The Memory tab displays storage usage information:


Bot Interaction

',38)])])}const u=t(i,[["render",n]]);export{g as __pageData,u as default};