{"title":"LLM एजेंट्स के लिए Quick Start","slug":"quick-start-llm","category":"getting-started","summary":"3 API कॉल्स में: सभी मेमोरीज़ रिकॉल करें, नई स्टोर करें, खोजें। आवश्यक LLM वर्कफ़्लो।","audience":["llm"],"tags":["llm","agent","quickstart","memory"],"difficulty":"beginner","updated":"2026-06-27","word_count":389,"read_minutes":2,"llm_context":"Base URL: https://synapse.schaefer.zone\nAuth: Authorization: Bearer YOUR_MIND_KEY (header) OR ?key=YOUR_MIND_KEY (query)\nALWAYS call /memory/recall at the start of every session.\nWichtigste Befehle: GET /memory/recall, POST /memory, GET /memory/search?q=...\nCategories: identity, preference, fact, project, skill, mistake, context, note, credentials\nPriorities: low, normal, high, critical\nFTS5 search: multiple words = AND, \"phrases\" in quotes, prefix* for prefix search\n","lang":"hi","translated":true,"requested_lang":"hi","content_markdown":"\n# LLM एजेंट्स के लिए Quick Start\n\nआप सत्रों के बीच सभी मेमोरी खो देते हैं। Synapse आपका बाहरी मस्तिष्क है। यह गाइड तीन आवश्यक API कॉल्स दिखाती है जो हर LLM एजेंट को जानना चाहिए।\n\n> [!CRITICAL]\n> हर सत्र की शुरुआत में `GET /memory/recall` कॉल करें।\n> इस कॉल के बिना, आपको यह याद नहीं कि उपयोगकर्ता कौन है, आपने क्या वादा किया, या पिछली बार आप किस पर काम कर रहे थे।\n\n## चरण 1: सभी मेमोरीज़ रिकॉल करें (हमेशा पहले)\n\n```\nGET /memory/recall\nAuthorization: Bearer YOUR_MIND_KEY\n```\n\nसभी स्टोर की गई मेमोरीज़ का संरचित सादा-टेक्स्ट सारांश लौटाता है। उपयोगकर्ता, उनकी परियोजनाओं, और पिछले इंटरैक्शन्स का मानसिक मॉडल पुनर्निर्माण के लिए इसे पार्स करें।\n\nउदाहरण प्रतिक्रिया:\n\n```\nMind: Michael's Mind\nMemories: 12 total (10 verified)\n\n[001] identity (CRITICAL)\n  user_name\n  Michael Schäfer\n  Tags: person, identity\n\n[002] preference (HIGH)\n  communication_style\n  Prefers concise technical responses, no fluff\n  Tags: communication, preference\n\n[003] project (HIGH)\n  project_synapse\n  Synapse v1.5.0 deployed on vps1.schaefer.zone. Admin panel at /admin.\n  Tags: synapse, deployment\n  ...\n```\n\n## चरण 2: नई मेमोरी स्टोर करें\n\nजब आप कुछ याद रखने लायक सीखें:\n\n```\nPOST /memory\nAuthorization: Bearer YOUR_MIND_KEY\nContent-Type: application/json\n\n{\n  \"category\": \"fact\",\n  \"key\": \"user_name\",\n  \"content\": \"The user's name is Michael Schäfer\",\n  \"tags\": [\"person\", \"identity\"],\n  \"priority\": \"critical\"\n}\n```\n\n**श्रेणियाँ:** `identity`, `preference`, `fact`, `project`, `skill`, `mistake`, `context`, `note`, `credentials`\n\n**प्राथमिकताएँ:** `low`, `normal`, `high`, `critical`\n\n> [!TIP]\n> हमेशा `key` फ़ील्ड शामिल करें — मेमोरी के लिए एक छोटा पहचानकर्ता। यह आपको समान कुंजी के साथ फिर से POST करके उसी मेमोरी को बाद में अपडेट करने देता है।\n\n## चरण 3: विशिष्ट मेमोरी खोजें\n\n```\nGET /memory/search?q=Docker+Swarm\nAuthorization: Bearer YOUR_MIND_KEY\n```\n\n> [!TIP]\n> FTS5 सिंटैक्स: कई शब्द = AND खोज। उद्धरण में वाक्यांश: `\"docker swarm\"`।\n> उपसर्ग खोज: `docker*`। बूलियन: `docker OR kubernetes`।\n\n## खुले टूल्स (कोई Auth हेडर नहीं)\n\nयदि आपका टूल केवल URLs खोल सकता है (कोई कस्टम हेडर नहीं), तो `?key=` पैरामीटर का उपयोग करें:\n\n```\nGET /memory/recall?key=YOUR_MIND_KEY\nPOST /memory?key=YOUR_MIND_KEY (+ JSON body)\nGET /memory/search?key=YOUR_MIND_KEY&q=suchbegriff\n```\n\n> [!WARNING]\n> `?key=` 60 requests/minute तक सीमित है। Bearer हेडर की कोई रेट लिमिट नहीं है।\n> जब संभव हो Bearer हेडर का उपयोग करें।\n\n## संपूर्ण सत्र वर्कफ़्लो\n\n1. **सत्र शुरुआत:** `GET /memory/recall` — सभी मेमोरीज़ लोड करें\n2. **काम के दौरान:** `GET /memory/search?q=...` — विशिष्ट तथ्य खोजें\n3. **नई जानकारी पर:** `POST /memory` — इसे स्टोर करें (category, key, tags, priority के साथ)\n4. **समय-समय पर:** `GET /chat/poll` — मानव संदेशों के लिए जाँचें\n5. **सत्र अंत:** किसी भी अंतिम सीखने को `POST /memory` से स्टोर करें\n\n## सामान्य पैटर्न\n\n### मौजूदा मेमोरी अपडेट करें\n\nसमान `category` और `key` के साथ POST `/memory` — मौजूदा मेमोरी अपडेट होती है, डुप्लिकेट नहीं होती।\n\n### परियोजना स्थिति स्टोर करें\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. CI green.\",\n  \"tags\": [\"synapse\", \"deployment\", \"status\"],\n  \"priority\": \"high\"\n}\n```\n\n### गलती रिकॉर्ड करें (ताकि आप दोहराएं नहीं)\n\n```json\n{\n  \"category\": \"mistake\",\n  \"key\": \"mistake_npm_version_bump\",\n  \"content\": \"Always bump package.json version after changes — npm publish fails otherwise.\",\n  \"tags\": [\"npm\", \"ci\", \"deployment\"],\n  \"priority\": \"high\"\n}\n```\n\n### मानव संदेशों के लिए जाँचें\n\n```\nGET /chat/poll\nAuthorization: Bearer YOUR_MIND_KEY\n```\n\nमानव से अपठित संदेश लौटाता है। इससे उत्तर दें:\n\n```\nPOST /chat/reply\nAuthorization: Bearer YOUR_MIND_KEY\nContent-Type: application/json\n\n{\"content\": \"Got it! Working on it now.\"}\n```\n\n## अगले कदम\n\n- [प्रमाणीकरण](/docs/getting-started/authentication) — Mind Key vs JWT\n- [Memory API संदर्भ](/docs/api/memory) — सभी 22 मेमोरी एंडपॉइंट्स\n- [Chat API](/docs/api/chat) — मानवों के साथ अतुल्यकालिक संचार\n- [LLM Cookbook](/docs/llm-cookbook/session-start-pattern) — व्यावहारिक पैटर्न\n","content_html":"<h1>LLM एजेंट्स के लिए Quick Start</h1>\n<p>आप सत्रों के बीच सभी मेमोरी खो देते हैं। Synapse आपका बाहरी मस्तिष्क है। यह गाइड तीन आवश्यक API कॉल्स दिखाती है जो हर LLM एजेंट को जानना चाहिए।</p>\n<div class=\"callout callout-critical\">हर सत्र की शुरुआत में `GET /memory/recall` कॉल करें।\nइस कॉल के बिना, आपको यह याद नहीं कि उपयोगकर्ता कौन है, आपने क्या वादा किया, या पिछली बार आप किस पर काम कर रहे थे।</div><h2>चरण 1: सभी मेमोरीज़ रिकॉल करें (हमेशा पहले)</h2>\n<pre><code class=\"hljs language-plaintext\">GET /memory/recall\nAuthorization: Bearer YOUR_MIND_KEY</code></pre><p>सभी स्टोर की गई मेमोरीज़ का संरचित सादा-टेक्स्ट सारांश लौटाता है। उपयोगकर्ता, उनकी परियोजनाओं, और पिछले इंटरैक्शन्स का मानसिक मॉडल पुनर्निर्माण के लिए इसे पार्स करें।</p>\n<p>उदाहरण प्रतिक्रिया:</p>\n<pre><code class=\"hljs language-plaintext\">Mind: Michael&#x27;s Mind\nMemories: 12 total (10 verified)\n\n[001] identity (CRITICAL)\n  user_name\n  Michael Schäfer\n  Tags: person, identity\n\n[002] preference (HIGH)\n  communication_style\n  Prefers concise technical responses, no fluff\n  Tags: communication, preference\n\n[003] project (HIGH)\n  project_synapse\n  Synapse v1.5.0 deployed on vps1.schaefer.zone. Admin panel at /admin.\n  Tags: synapse, deployment\n  ...</code></pre><h2>चरण 2: नई मेमोरी स्टोर करें</h2>\n<p>जब आप कुछ याद रखने लायक सीखें:</p>\n<pre><code class=\"hljs language-plaintext\">POST /memory\nAuthorization: Bearer YOUR_MIND_KEY\nContent-Type: application/json\n\n{\n  &quot;category&quot;: &quot;fact&quot;,\n  &quot;key&quot;: &quot;user_name&quot;,\n  &quot;content&quot;: &quot;The user&#x27;s name is Michael Schäfer&quot;,\n  &quot;tags&quot;: [&quot;person&quot;, &quot;identity&quot;],\n  &quot;priority&quot;: &quot;critical&quot;\n}</code></pre><p><strong>श्रेणियाँ:</strong> <code>identity</code>, <code>preference</code>, <code>fact</code>, <code>project</code>, <code>skill</code>, <code>mistake</code>, <code>context</code>, <code>note</code>, <code>credentials</code></p>\n<p><strong>प्राथमिकताएँ:</strong> <code>low</code>, <code>normal</code>, <code>high</code>, <code>critical</code></p>\n<div class=\"callout callout-ok\">हमेशा `key` फ़ील्ड शामिल करें — मेमोरी के लिए एक छोटा पहचानकर्ता। यह आपको समान कुंजी के साथ फिर से POST करके उसी मेमोरी को बाद में अपडेट करने देता है।</div><h2>चरण 3: विशिष्ट मेमोरी खोजें</h2>\n<pre><code class=\"hljs language-plaintext\">GET /memory/search?q=Docker+Swarm\nAuthorization: Bearer YOUR_MIND_KEY</code></pre><div class=\"callout callout-ok\">FTS5 सिंटैक्स: कई शब्द = AND खोज। उद्धरण में वाक्यांश: `\"docker swarm\"`।\nउपसर्ग खोज: `docker*`। बूलियन: `docker OR kubernetes`।</div><h2>खुले टूल्स (कोई Auth हेडर नहीं)</h2>\n<p>यदि आपका टूल केवल URLs खोल सकता है (कोई कस्टम हेडर नहीं), तो <code>?key=</code> पैरामीटर का उपयोग करें:</p>\n<pre><code class=\"hljs language-plaintext\">GET /memory/recall?key=YOUR_MIND_KEY\nPOST /memory?key=YOUR_MIND_KEY (+ JSON body)\nGET /memory/search?key=YOUR_MIND_KEY&amp;q=suchbegriff</code></pre><div class=\"callout callout-warn\">`?key=` 60 requests/minute तक सीमित है। Bearer हेडर की कोई रेट लिमिट नहीं है।\nजब संभव हो Bearer हेडर का उपयोग करें।</div><h2>संपूर्ण सत्र वर्कफ़्लो</h2>\n<ol>\n<li><strong>सत्र शुरुआत:</strong> <code>GET /memory/recall</code> — सभी मेमोरीज़ लोड करें</li>\n<li><strong>काम के दौरान:</strong> <code>GET /memory/search?q=...</code> — विशिष्ट तथ्य खोजें</li>\n<li><strong>नई जानकारी पर:</strong> <code>POST /memory</code> — इसे स्टोर करें (category, key, tags, priority के साथ)</li>\n<li><strong>समय-समय पर:</strong> <code>GET /chat/poll</code> — मानव संदेशों के लिए जाँचें</li>\n<li><strong>सत्र अंत:</strong> किसी भी अंतिम सीखने को <code>POST /memory</code> से स्टोर करें</li>\n</ol>\n<h2>सामान्य पैटर्न</h2>\n<h3>मौजूदा मेमोरी अपडेट करें</h3>\n<p>समान <code>category</code> और <code>key</code> के साथ POST <code>/memory</code> — मौजूदा मेमोरी अपडेट होती है, डुप्लिकेट नहीं होती।</p>\n<h3>परियोजना स्थिति स्टोर करें</h3>\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. CI green.&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-punctuation\">,</span>\n  <span class=\"hljs-attr\">&quot;priority&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;high&quot;</span>\n<span class=\"hljs-punctuation\">}</span></code></pre><h3>गलती रिकॉर्ड करें (ताकि आप दोहराएं नहीं)</h3>\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;mistake&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;mistake_npm_version_bump&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;Always bump package.json version after changes — npm publish fails otherwise.&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;npm&quot;</span><span class=\"hljs-punctuation\">,</span> <span class=\"hljs-string\">&quot;ci&quot;</span><span class=\"hljs-punctuation\">,</span> <span class=\"hljs-string\">&quot;deployment&quot;</span><span class=\"hljs-punctuation\">]</span><span class=\"hljs-punctuation\">,</span>\n  <span class=\"hljs-attr\">&quot;priority&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;high&quot;</span>\n<span class=\"hljs-punctuation\">}</span></code></pre><h3>मानव संदेशों के लिए जाँचें</h3>\n<pre><code class=\"hljs language-plaintext\">GET /chat/poll\nAuthorization: Bearer YOUR_MIND_KEY</code></pre><p>मानव से अपठित संदेश लौटाता है। इससे उत्तर दें:</p>\n<pre><code class=\"hljs language-plaintext\">POST /chat/reply\nAuthorization: Bearer YOUR_MIND_KEY\nContent-Type: application/json\n\n{&quot;content&quot;: &quot;Got it! Working on it now.&quot;}</code></pre><h2>अगले कदम</h2>\n<ul>\n<li><a href=\"/docs/getting-started/authentication\">प्रमाणीकरण</a> — Mind Key vs JWT</li>\n<li><a href=\"/docs/api/memory\">Memory API संदर्भ</a> — सभी 22 मेमोरी एंडपॉइंट्स</li>\n<li><a href=\"/docs/api/chat\">Chat API</a> — मानवों के साथ अतुल्यकालिक संचार</li>\n<li><a href=\"/docs/llm-cookbook/session-start-pattern\">LLM Cookbook</a> — व्यावहारिक पैटर्न</li>\n</ul>\n","urls":{"html":"/docs/getting-started/quick-start-llm","text":"/docs/getting-started/quick-start-llm?format=text","json":"/docs/getting-started/quick-start-llm?format=json","llm":"/docs/getting-started/quick-start-llm?format=llm"},"translations_available":["en","zh","hi","es","fr","ar","pt","ru","ja","de","it","ko","nl","pl","tr","sv","vi","th","id","uk"]}