{"title":"Memory-Best-Practices","slug":"memory-best-practices","category":"guides","summary":"Wie du Memories für effektives Recall strukturierst — Kategorien, Keys, Tags, Prioritäten.","audience":["human","llm"],"tags":["guide","memory","best-practices","patterns"],"difficulty":"intermediate","updated":"2026-06-27","word_count":582,"read_minutes":3,"lang":"de","translated":true,"requested_lang":"de","content_markdown":"\n# Memory-Best-Practices\n\nWie du Memories strukturierst, bestimmt ihren Nutzen. Dieser Guide behandelt\nPatterns zum Kategorisieren, Taggen und Prioritisieren, damit das LLM zur\nrichtigen Zeit die richtigen Informationen abrufen kann.\n\n## Kategorien: Wähle die spezifischste\n\n| Kategorie | Verwende für | Beispiel |\n|-----------|--------------|----------|\n| `identity` | Nutzername, Rolle, Kontaktinfo | `\"user_name\": \"Michael Schäfer\"` |\n| `preference` | Vorlieben, Abneigungen, Arbeitsstil | `\"communication\": \"Prefers concise responses\"` |\n| `fact` | Überprüfbare Fakten | `\"office_location\": \"Berlin, Germany\"` |\n| `project` | Projektstatus, Entscheidungen | `\"project_synapse\": \"v1.5.0 deployed\"` |\n| `skill` | Fähigkeiten des Nutzers | `\"skill_python\": \"Advanced, 10+ years\"` |\n| `mistake` | Frühere Fehler, die es zu vermeiden gilt | `\"mistake_npm_version\": \"Always bump version\"` |\n| `context` | Session-relevanter Kontext | `\"current_focus\": \"Working on docs system\"` |\n| `note` | Sonstige Notizen | `\"note_idea\": \"Try Redis for caching\"` |\n\n> [!TIP]\n> Im Zweifel: `fact` für überprüfbare Infos und `note` für alles andere.\n> Nicht überkategorisieren — besser ein klarer `fact` als ein verwirrender\n> `context`.\n\n## Keys: Aussagekräftige Bezeichner\n\nDas Feld `key` ist der Bezeichner des Memories. Verwende aussagekräftige,\nstabile Keys:\n\n**Gute Keys:**\n- `user_name`\n- `project_synapse_status`\n- `preference_communication_style`\n- `mistake_npm_version_bump`\n\n**Schlechte Keys:**\n- `mem_001` (nicht aussagekräftig)\n- `temp` (nicht beschreibend)\n- `2026-06-27-note` (Datum hilft beim Recall nicht)\n\n### Key-Namenskonventionen\n\n- `snake_case` (Kleinschreibung mit Unterstrichen)\n- Präfix mit Kategorie: `preference_*`, `project_*`, `mistake_*`\n- Beschreibende Substantive, keine Verben\n- Unter 50 Zeichen halten\n\n## Tags: Für Suche und Filterung\n\nTags ermöglichen schnelle Filterung und Suche. 2-5 Tags pro Memory hinzufügen:\n\n```json\n{\n  \"category\": \"project\",\n  \"key\": \"project_synapse_status\",\n  \"content\": \"Synapse v1.5.0 deployed. Next: v1.6.0 with docs system.\",\n  \"tags\": [\"synapse\", \"deployment\", \"status\", \"v1.5.0\"]\n}\n```\n\n### Tag-Patterns\n\n- **Projektnamen**: `synapse`, `synapse-mcp`, `synapse-chat`\n- **Themen**: `deployment`, `ci`, `database`, `auth`\n- **Status**: `active`, `completed`, `blocked`\n- **Prioritäts-Indikatoren**: `urgent`, `long-term`\n\n> [!NOTE]\n> Tags sind Case-insensitive. Verwende für Konsistenz Kleinschreibung.\n\n## Prioritäten: Sei realistisch\n\n| Priorität | Verwende für | % der Memories |\n|-----------|--------------|----------------|\n| `critical` | Nutzeridentität, rechtliche Infos, unumkehrbare Entscheidungen | ~5% |\n| `high` | Aktive Projekte, wichtige Präferenzen | ~20% |\n| `normal` | Die meisten Fakten, Notizen, Kontext | ~65% |\n| `low` | Flüchtig, nett zu wissen | ~10% |\n\n> [!WARNING]\n> Markiere nicht alles als `critical`. Wenn alles critical ist, ist nichts\n> critical. Reserviere `critical` für Dinge, die echten Schaden anrichten, wenn\n> sie vergessen werden.\n\n## Wann speichern, wann nicht?\n\n### Immer speichern\n\n- Nutzeridentität (Name, E-Mail, Rolle)\n- Langfristige Präferenzen\n- Projektentscheidungen und Begründungen\n- Frühere Fehler und gelernte Lektionen\n- Zugesagte Zusagen an den Nutzer\n\n### Nicht speichern\n\n- Flüchtigen Status (verwende stattdessen Variablen)\n- Wörtlichen Konversationsverlauf (Chat-System übernimmt das)\n- Sensible Daten (Passwörter, API-Keys)\n- Leicht ableitbare Fakten (aktuelles Datum, Dateiinhalte)\n- Flüchtigen Kontext (verwende `context`-Kategorie mit niedriger Priorität)\n\n## Memories aktualisieren\n\nPOST `/memory` mit derselben `category` + `key` aktualisiert den bestehenden\nMemory:\n\n```python\n# Initial store\nstore(\"project\", \"project_synapse_status\", \"v1.4.0 deployed\", priority=\"high\")\n\n# Later: update with same key\nstore(\"project\", \"project_synapse_status\", \"v1.5.0 deployed. CI green.\", priority=\"high\")\n```\n\n> [!TIP]\n> Verwende stabile Keys, damit du aktualisieren kannst, ohne Duplikate zu\n> erzeugen. Das LLM sollte denselben Key erneut posten, wenn sich Infos ändern,\n> nicht neue Memories anlegen.\n\n## Memory-Lebenszyklus\n\n```\nCreate → Active → Stale → Archive → Delete\n```\n\n- **Create**: POST /memory mit vollem Kontext\n- **Active**: Häufig abrufen, bei Bedarf aktualisieren\n- **Stale**: Noch relevant, aber nicht aktiv genutzt (niedrigere Priorität?)\n- **Archive**: Priorität auf `low` setzen, für historische Referenz behalten\n- **Delete**: DELETE /memory/:id, wenn nicht mehr relevant\n\n### Periodische Bereinigung\n\n```python\n# Find memories not updated in 90 days\nold_memories = requests.get(\n    f\"{URL}/memory/search?q=*\",\n    headers={\"Authorization\": f\"Bearer {KEY}\"}\n)\n\nfor mem in old_memories[\"results\"]:\n    if is_stale(mem, days=90):\n        # Either delete or lower priority\n        if is_obsolete(mem):\n            delete_memory(mem[\"id\"])\n        else:\n            update_memory(mem[\"id\"], priority=\"low\")\n```\n\n## Pattern: Memory-Vererbung\n\nFür hierarchischen Kontext (Projekt → Subprojekt → Task):\n\n```python\n# Parent project\nstore(\"project\", \"project_synapse\", \"Main Synapse project\", \n      tags=[\"synapse\", \"parent\"], priority=\"high\")\n\n# Sub-project (tags link to parent)\nstore(\"project\", \"project_synapse_docs\", \"Docs system for Synapse\",\n      tags=[\"synapse\", \"docs\", \"synapse-parent\"], priority=\"high\")\n\n# Specific task (tags link to sub-project)\nstore(\"project\", \"task_docs_loader\", \"Implement docs-loader.ts\",\n      tags=[\"synapse\", \"docs\", \"task\"], priority=\"normal\")\n```\n\nDas LLM kann dann `q=synapse+docs` suchen, um alle verwandten Memories zu\nfinden.\n\n## Pattern: Entscheidungs-Log\n\nEntscheidungen mit Begründung speichern, damit das LLM sie nicht neu verhandelt:\n\n```python\nstore(\"fact\", \"decision_postgres_over_sqlite\",\n      \"Chose PostgreSQL over SQLite for production. Reason: concurrent writes, \"\n      \"FTS5 native support, better backup story. Date: 2026-06-15. Decided by: Michael.\",\n      tags=[\"decision\", \"database\", \"postgres\", \"sqlite\"],\n      priority=\"high\")\n```\n\n## Pattern: Fehler-Vermeidung\n\nFehler mit spezifischen Vermeidungs-Anweisungen speichern:\n\n```python\nstore(\"mistake\", \"mistake_forget_version_bump\",\n      \"Forgot to bump package.json version after changes. npm publish failed. \"\n      \"FIX: Always run `npm version patch` before pushing. \"\n      \"CI fails with 'version already exists' if you forget.\",\n      tags=[\"npm\", \"ci\", \"publish\", \"version\"],\n      priority=\"high\")\n```\n\n## Anti-Patterns, die du vermeiden solltest\n\n> [!WARNING]\n> - **Konversations-Logs speichern** — Chat-System übernimmt das\n> - **Ganze Dateien speichern** — Script-Speicher oder externen Speicher verwenden\n> - **Flüchtigen Status speichern** — Variablen verwenden\n> - **Secrets speichern** — Environment-Variablen verwenden\n> - **Memories duplizieren** — stabile Keys verwenden\n> - **Übertrieben taggen** — 2-5 Tags pro Memory sind ideal\n> - **Alles ist critical** — sei realistisch mit Prioritäten\n\n## Nächste Schritte\n\n- [Memory-API](/docs/api/memory)\n- [Persistenter LLM-Agent](/docs/guides/persistent-llm-agent)\n- [Memory-Tagging-Strategie](/docs/llm-cookbook/memory-tagging-strategy)\n","content_html":"<h1>Memory-Best-Practices</h1>\n<p>Wie du Memories strukturierst, bestimmt ihren Nutzen. Dieser Guide behandelt\nPatterns zum Kategorisieren, Taggen und Prioritisieren, damit das LLM zur\nrichtigen Zeit die richtigen Informationen abrufen kann.</p>\n<h2>Kategorien: Wähle die spezifischste</h2>\n<table>\n<thead>\n<tr>\n<th>Kategorie</th>\n<th>Verwende für</th>\n<th>Beispiel</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code>identity</code></td>\n<td>Nutzername, Rolle, Kontaktinfo</td>\n<td><code>&quot;user_name&quot;: &quot;Michael Schäfer&quot;</code></td>\n</tr>\n<tr>\n<td><code>preference</code></td>\n<td>Vorlieben, Abneigungen, Arbeitsstil</td>\n<td><code>&quot;communication&quot;: &quot;Prefers concise responses&quot;</code></td>\n</tr>\n<tr>\n<td><code>fact</code></td>\n<td>Überprüfbare Fakten</td>\n<td><code>&quot;office_location&quot;: &quot;Berlin, Germany&quot;</code></td>\n</tr>\n<tr>\n<td><code>project</code></td>\n<td>Projektstatus, Entscheidungen</td>\n<td><code>&quot;project_synapse&quot;: &quot;v1.5.0 deployed&quot;</code></td>\n</tr>\n<tr>\n<td><code>skill</code></td>\n<td>Fähigkeiten des Nutzers</td>\n<td><code>&quot;skill_python&quot;: &quot;Advanced, 10+ years&quot;</code></td>\n</tr>\n<tr>\n<td><code>mistake</code></td>\n<td>Frühere Fehler, die es zu vermeiden gilt</td>\n<td><code>&quot;mistake_npm_version&quot;: &quot;Always bump version&quot;</code></td>\n</tr>\n<tr>\n<td><code>context</code></td>\n<td>Session-relevanter Kontext</td>\n<td><code>&quot;current_focus&quot;: &quot;Working on docs system&quot;</code></td>\n</tr>\n<tr>\n<td><code>note</code></td>\n<td>Sonstige Notizen</td>\n<td><code>&quot;note_idea&quot;: &quot;Try Redis for caching&quot;</code></td>\n</tr>\n</tbody></table>\n<div class=\"callout callout-ok\">Im Zweifel: `fact` für überprüfbare Infos und `note` für alles andere.\nNicht überkategorisieren — besser ein klarer `fact` als ein verwirrender\n`context`.</div><h2>Keys: Aussagekräftige Bezeichner</h2>\n<p>Das Feld <code>key</code> ist der Bezeichner des Memories. Verwende aussagekräftige,\nstabile Keys:</p>\n<p><strong>Gute Keys:</strong></p>\n<ul>\n<li><code>user_name</code></li>\n<li><code>project_synapse_status</code></li>\n<li><code>preference_communication_style</code></li>\n<li><code>mistake_npm_version_bump</code></li>\n</ul>\n<p><strong>Schlechte Keys:</strong></p>\n<ul>\n<li><code>mem_001</code> (nicht aussagekräftig)</li>\n<li><code>temp</code> (nicht beschreibend)</li>\n<li><code>2026-06-27-note</code> (Datum hilft beim Recall nicht)</li>\n</ul>\n<h3>Key-Namenskonventionen</h3>\n<ul>\n<li><code>snake_case</code> (Kleinschreibung mit Unterstrichen)</li>\n<li>Präfix mit Kategorie: <code>preference_*</code>, <code>project_*</code>, <code>mistake_*</code></li>\n<li>Beschreibende Substantive, keine Verben</li>\n<li>Unter 50 Zeichen halten</li>\n</ul>\n<h2>Tags: Für Suche und Filterung</h2>\n<p>Tags ermöglichen schnelle Filterung und Suche. 2-5 Tags pro Memory hinzufügen:</p>\n<pre><code class=\"hljs language-json\"><span class=\"hljs-punctuation\">{</span>\n  <span class=\"hljs-attr\">&quot;category&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;project&quot;</span><span class=\"hljs-punctuation\">,</span>\n  <span class=\"hljs-attr\">&quot;key&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;project_synapse_status&quot;</span><span class=\"hljs-punctuation\">,</span>\n  <span class=\"hljs-attr\">&quot;content&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;Synapse v1.5.0 deployed. Next: v1.6.0 with docs system.&quot;</span><span class=\"hljs-punctuation\">,</span>\n  <span class=\"hljs-attr\">&quot;tags&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-punctuation\">[</span><span class=\"hljs-string\">&quot;synapse&quot;</span><span class=\"hljs-punctuation\">,</span> <span class=\"hljs-string\">&quot;deployment&quot;</span><span class=\"hljs-punctuation\">,</span> <span class=\"hljs-string\">&quot;status&quot;</span><span class=\"hljs-punctuation\">,</span> <span class=\"hljs-string\">&quot;v1.5.0&quot;</span><span class=\"hljs-punctuation\">]</span>\n<span class=\"hljs-punctuation\">}</span></code></pre><h3>Tag-Patterns</h3>\n<ul>\n<li><strong>Projektnamen</strong>: <code>synapse</code>, <code>synapse-mcp</code>, <code>synapse-chat</code></li>\n<li><strong>Themen</strong>: <code>deployment</code>, <code>ci</code>, <code>database</code>, <code>auth</code></li>\n<li><strong>Status</strong>: <code>active</code>, <code>completed</code>, <code>blocked</code></li>\n<li><strong>Prioritäts-Indikatoren</strong>: <code>urgent</code>, <code>long-term</code></li>\n</ul>\n<div class=\"callout callout-note\">Tags sind Case-insensitive. Verwende für Konsistenz Kleinschreibung.</div><h2>Prioritäten: Sei realistisch</h2>\n<table>\n<thead>\n<tr>\n<th>Priorität</th>\n<th>Verwende für</th>\n<th>% der Memories</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code>critical</code></td>\n<td>Nutzeridentität, rechtliche Infos, unumkehrbare Entscheidungen</td>\n<td>~5%</td>\n</tr>\n<tr>\n<td><code>high</code></td>\n<td>Aktive Projekte, wichtige Präferenzen</td>\n<td>~20%</td>\n</tr>\n<tr>\n<td><code>normal</code></td>\n<td>Die meisten Fakten, Notizen, Kontext</td>\n<td>~65%</td>\n</tr>\n<tr>\n<td><code>low</code></td>\n<td>Flüchtig, nett zu wissen</td>\n<td>~10%</td>\n</tr>\n</tbody></table>\n<div class=\"callout callout-warn\">Markiere nicht alles als `critical`. Wenn alles critical ist, ist nichts\ncritical. Reserviere `critical` für Dinge, die echten Schaden anrichten, wenn\nsie vergessen werden.</div><h2>Wann speichern, wann nicht?</h2>\n<h3>Immer speichern</h3>\n<ul>\n<li>Nutzeridentität (Name, E-Mail, Rolle)</li>\n<li>Langfristige Präferenzen</li>\n<li>Projektentscheidungen und Begründungen</li>\n<li>Frühere Fehler und gelernte Lektionen</li>\n<li>Zugesagte Zusagen an den Nutzer</li>\n</ul>\n<h3>Nicht speichern</h3>\n<ul>\n<li>Flüchtigen Status (verwende stattdessen Variablen)</li>\n<li>Wörtlichen Konversationsverlauf (Chat-System übernimmt das)</li>\n<li>Sensible Daten (Passwörter, API-Keys)</li>\n<li>Leicht ableitbare Fakten (aktuelles Datum, Dateiinhalte)</li>\n<li>Flüchtigen Kontext (verwende <code>context</code>-Kategorie mit niedriger Priorität)</li>\n</ul>\n<h2>Memories aktualisieren</h2>\n<p>POST <code>/memory</code> mit derselben <code>category</code> + <code>key</code> aktualisiert den bestehenden\nMemory:</p>\n<pre><code class=\"hljs language-python\"><span class=\"hljs-comment\"># Initial store</span>\nstore(<span class=\"hljs-string\">&quot;project&quot;</span>, <span class=\"hljs-string\">&quot;project_synapse_status&quot;</span>, <span class=\"hljs-string\">&quot;v1.4.0 deployed&quot;</span>, priority=<span class=\"hljs-string\">&quot;high&quot;</span>)\n\n<span class=\"hljs-comment\"># Later: update with same key</span>\nstore(<span class=\"hljs-string\">&quot;project&quot;</span>, <span class=\"hljs-string\">&quot;project_synapse_status&quot;</span>, <span class=\"hljs-string\">&quot;v1.5.0 deployed. CI green.&quot;</span>, priority=<span class=\"hljs-string\">&quot;high&quot;</span>)</code></pre><div class=\"callout callout-ok\">Verwende stabile Keys, damit du aktualisieren kannst, ohne Duplikate zu\nerzeugen. Das LLM sollte denselben Key erneut posten, wenn sich Infos ändern,\nnicht neue Memories anlegen.</div><h2>Memory-Lebenszyklus</h2>\n<pre><code class=\"hljs language-plaintext\">Create → Active → Stale → Archive → Delete</code></pre><ul>\n<li><strong>Create</strong>: POST /memory mit vollem Kontext</li>\n<li><strong>Active</strong>: Häufig abrufen, bei Bedarf aktualisieren</li>\n<li><strong>Stale</strong>: Noch relevant, aber nicht aktiv genutzt (niedrigere Priorität?)</li>\n<li><strong>Archive</strong>: Priorität auf <code>low</code> setzen, für historische Referenz behalten</li>\n<li><strong>Delete</strong>: DELETE /memory/:id, wenn nicht mehr relevant</li>\n</ul>\n<h3>Periodische Bereinigung</h3>\n<pre><code class=\"hljs language-python\"><span class=\"hljs-comment\"># Find memories not updated in 90 days</span>\nold_memories = requests.get(\n    <span class=\"hljs-string\">f&quot;<span class=\"hljs-subst\">{URL}</span>/memory/search?q=*&quot;</span>,\n    headers={<span class=\"hljs-string\">&quot;Authorization&quot;</span>: <span class=\"hljs-string\">f&quot;Bearer <span class=\"hljs-subst\">{KEY}</span>&quot;</span>}\n)\n\n<span class=\"hljs-keyword\">for</span> mem <span class=\"hljs-keyword\">in</span> old_memories[<span class=\"hljs-string\">&quot;results&quot;</span>]:\n    <span class=\"hljs-keyword\">if</span> is_stale(mem, days=<span class=\"hljs-number\">90</span>):\n        <span class=\"hljs-comment\"># Either delete or lower priority</span>\n        <span class=\"hljs-keyword\">if</span> is_obsolete(mem):\n            delete_memory(mem[<span class=\"hljs-string\">&quot;id&quot;</span>])\n        <span class=\"hljs-keyword\">else</span>:\n            update_memory(mem[<span class=\"hljs-string\">&quot;id&quot;</span>], priority=<span class=\"hljs-string\">&quot;low&quot;</span>)</code></pre><h2>Pattern: Memory-Vererbung</h2>\n<p>Für hierarchischen Kontext (Projekt → Subprojekt → Task):</p>\n<pre><code class=\"hljs language-python\"><span class=\"hljs-comment\"># Parent project</span>\nstore(<span class=\"hljs-string\">&quot;project&quot;</span>, <span class=\"hljs-string\">&quot;project_synapse&quot;</span>, <span class=\"hljs-string\">&quot;Main Synapse project&quot;</span>, \n      tags=[<span class=\"hljs-string\">&quot;synapse&quot;</span>, <span class=\"hljs-string\">&quot;parent&quot;</span>], priority=<span class=\"hljs-string\">&quot;high&quot;</span>)\n\n<span class=\"hljs-comment\"># Sub-project (tags link to parent)</span>\nstore(<span class=\"hljs-string\">&quot;project&quot;</span>, <span class=\"hljs-string\">&quot;project_synapse_docs&quot;</span>, <span class=\"hljs-string\">&quot;Docs system for Synapse&quot;</span>,\n      tags=[<span class=\"hljs-string\">&quot;synapse&quot;</span>, <span class=\"hljs-string\">&quot;docs&quot;</span>, <span class=\"hljs-string\">&quot;synapse-parent&quot;</span>], priority=<span class=\"hljs-string\">&quot;high&quot;</span>)\n\n<span class=\"hljs-comment\"># Specific task (tags link to sub-project)</span>\nstore(<span class=\"hljs-string\">&quot;project&quot;</span>, <span class=\"hljs-string\">&quot;task_docs_loader&quot;</span>, <span class=\"hljs-string\">&quot;Implement docs-loader.ts&quot;</span>,\n      tags=[<span class=\"hljs-string\">&quot;synapse&quot;</span>, <span class=\"hljs-string\">&quot;docs&quot;</span>, <span class=\"hljs-string\">&quot;task&quot;</span>], priority=<span class=\"hljs-string\">&quot;normal&quot;</span>)</code></pre><p>Das LLM kann dann <code>q=synapse+docs</code> suchen, um alle verwandten Memories zu\nfinden.</p>\n<h2>Pattern: Entscheidungs-Log</h2>\n<p>Entscheidungen mit Begründung speichern, damit das LLM sie nicht neu verhandelt:</p>\n<pre><code class=\"hljs language-python\">store(<span class=\"hljs-string\">&quot;fact&quot;</span>, <span class=\"hljs-string\">&quot;decision_postgres_over_sqlite&quot;</span>,\n      <span class=\"hljs-string\">&quot;Chose PostgreSQL over SQLite for production. Reason: concurrent writes, &quot;</span>\n      <span class=\"hljs-string\">&quot;FTS5 native support, better backup story. Date: 2026-06-15. Decided by: Michael.&quot;</span>,\n      tags=[<span class=\"hljs-string\">&quot;decision&quot;</span>, <span class=\"hljs-string\">&quot;database&quot;</span>, <span class=\"hljs-string\">&quot;postgres&quot;</span>, <span class=\"hljs-string\">&quot;sqlite&quot;</span>],\n      priority=<span class=\"hljs-string\">&quot;high&quot;</span>)</code></pre><h2>Pattern: Fehler-Vermeidung</h2>\n<p>Fehler mit spezifischen Vermeidungs-Anweisungen speichern:</p>\n<pre><code class=\"hljs language-python\">store(<span class=\"hljs-string\">&quot;mistake&quot;</span>, <span class=\"hljs-string\">&quot;mistake_forget_version_bump&quot;</span>,\n      <span class=\"hljs-string\">&quot;Forgot to bump package.json version after changes. npm publish failed. &quot;</span>\n      <span class=\"hljs-string\">&quot;FIX: Always run `npm version patch` before pushing. &quot;</span>\n      <span class=\"hljs-string\">&quot;CI fails with &#x27;version already exists&#x27; if you forget.&quot;</span>,\n      tags=[<span class=\"hljs-string\">&quot;npm&quot;</span>, <span class=\"hljs-string\">&quot;ci&quot;</span>, <span class=\"hljs-string\">&quot;publish&quot;</span>, <span class=\"hljs-string\">&quot;version&quot;</span>],\n      priority=<span class=\"hljs-string\">&quot;high&quot;</span>)</code></pre><h2>Anti-Patterns, die du vermeiden solltest</h2>\n<div class=\"callout callout-warn\"></div><h2>Nächste Schritte</h2>\n<ul>\n<li><a href=\"/docs/api/memory\">Memory-API</a></li>\n<li><a href=\"/docs/guides/persistent-llm-agent\">Persistenter LLM-Agent</a></li>\n<li><a href=\"/docs/llm-cookbook/memory-tagging-strategy\">Memory-Tagging-Strategie</a></li>\n</ul>\n","urls":{"html":"/docs/guides/memory-best-practices","text":"/docs/guides/memory-best-practices?format=text","json":"/docs/guides/memory-best-practices?format=json","llm":"/docs/guides/memory-best-practices?format=llm"},"translations_available":["en","zh","hi","es","fr","ar","pt","ru","ja","de","it","ko","nl","pl","tr","sv","vi","th","id","uk"]}