mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
2 lines
6.1 KiB
JavaScript
2 lines
6.1 KiB
JavaScript
import{_ as t,o,c as r,ag as a}from"./chunks/framework.CvgP6Fyv.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('<h1 id="bot-memory-management" tabindex="-1">Bot Memory Management <a class="header-anchor" href="#bot-memory-management" aria-label="Permalink to "Bot Memory Management""></a></h1><p>Memoh's structured long-term memory system allows bots to remember information across multiple conversations, providing contextually relevant and personalized interactions.</p><h2 id="prerequisites" tabindex="-1">Prerequisites <a class="header-anchor" href="#prerequisites" aria-label="Permalink to "Prerequisites""></a></h2><p>Before using the <strong>Memory</strong> tab, make sure your bot already has a <strong>Memory Provider</strong> configured.</p><ol><li>Create a provider from one of the <a href="/memory-providers/">Memory Providers</a> (Built-in, Mem0, or OpenViking).</li><li>Open your bot's <strong>General</strong> tab.</li><li>Select the provider in the <strong>Memory Provider</strong> field.</li><li>Click <strong>Save</strong>.</li></ol><p>Without a memory provider, the bot will not have an active memory backend configuration.</p><hr><h2 id="concept-memory-retrieval" tabindex="-1">Concept: Memory Retrieval <a class="header-anchor" href="#concept-memory-retrieval" aria-label="Permalink to "Concept: Memory Retrieval""></a></h2><p>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.</p><hr><h2 id="operations" tabindex="-1">Operations <a class="header-anchor" href="#operations" aria-label="Permalink to "Operations""></a></h2><p>Manage your bot's memories from the <strong>Memory</strong> tab in the Bot Detail page.</p><h3 id="_1-creating-memories" tabindex="-1">1. Creating Memories <a class="header-anchor" href="#_1-creating-memories" aria-label="Permalink to "1. Creating Memories""></a></h3><ul><li><strong>New Memory</strong>: Manually enter a memory's content in the provided textarea.</li><li><strong>From Conversation</strong>: Select specific messages from the bot's conversation history to extract into memory.</li></ul><h3 id="_2-searching-and-managing" tabindex="-1">2. Searching and Managing <a class="header-anchor" href="#_2-searching-and-managing" aria-label="Permalink to "2. Searching and Managing""></a></h3><ul><li><strong>Search</strong>: Filter memories by ID or text content.</li><li><strong>Edit</strong>: Modify existing memory entries directly in the list.</li><li><strong>Delete</strong>: Remove memories that are no longer needed.</li></ul><hr><h2 id="memory-compression-compact" tabindex="-1">Memory Compression (Compact) <a class="header-anchor" href="#memory-compression-compact" aria-label="Permalink to "Memory Compression (Compact)""></a></h2><p>Over time, memories can accumulate and become redundant. The <strong>Compact</strong> feature helps optimize the memory pool.</p><ul><li><strong>Ratio</strong>: Set the compression ratio (for example <code>0.8</code>, <code>0.5</code>, or <code>0.3</code>) to determine how much information is retained.</li><li><strong>Decay Days</strong>: Optionally specify a time window to compact only memories older than a certain number of days.</li></ul><p>For more details on compaction, see <a href="/getting-started/compaction.html">Memory Compaction</a>.</p><hr><h2 id="rebuild" tabindex="-1">Rebuild <a class="header-anchor" href="#rebuild" aria-label="Permalink to "Rebuild""></a></h2><p>The <strong>Rebuild</strong> feature re-indexes all memories from scratch. This is useful when:</p><ul><li>You have changed the memory provider's mode (e.g., switching from <code>off</code> to <code>sparse</code>).</li><li>The vector index has become inconsistent.</li><li>You want to re-process all memories with updated settings.</li></ul><p>Click <strong>Rebuild</strong> in the Memory tab to start the process. You can monitor the rebuild status in real-time.</p><hr><h2 id="status" tabindex="-1">Status <a class="header-anchor" href="#status" aria-label="Permalink to "Status""></a></h2><p>The Memory tab shows the current <strong>status</strong> of the memory provider for this bot:</p><ul><li><strong>Connected</strong> — The memory backend is reachable and operational.</li><li><strong>Error</strong> — There is an issue with the memory provider configuration or connectivity.</li></ul><p>Use the status indicator to quickly verify that the memory system is working before troubleshooting other issues.</p><hr><h2 id="usage-statistics" tabindex="-1">Usage Statistics <a class="header-anchor" href="#usage-statistics" aria-label="Permalink to "Usage Statistics""></a></h2><p>The Memory tab displays storage usage information:</p><ul><li><strong>Total Memories</strong> — The number of memory entries stored for this bot.</li><li><strong>Index Status</strong> — Whether the vector index is up-to-date.</li></ul><hr><h2 id="bot-interaction" tabindex="-1">Bot Interaction <a class="header-anchor" href="#bot-interaction" aria-label="Permalink to "Bot Interaction""></a></h2><ul><li>The bot automatically searches and retrieves memories during chat.</li><li>The assigned <strong>Memory Provider</strong> controls the memory backend used by the bot.</li><li>Provider-specific settings (such as memory mode, embedding model, or API keys) are configured in the provider itself — see <a href="/memory-providers/">Memory Providers</a>.</li><li>Memories provide the long-term knowledge that makes each bot unique to its owner.</li></ul>',38)])])}const u=t(i,[["render",n]]);export{g as __pageData,u as default};
|