{
  "schemaVersion": "1.0",
  "item": {
    "slug": "triple-memory-baidu-embedding",
    "name": "triple-memory-baidu-embedding",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/xqicxx/triple-memory-baidu-embedding",
    "canonicalUrl": "https://clawhub.ai/xqicxx/triple-memory-baidu-embedding",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/triple-memory-baidu-embedding",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=triple-memory-baidu-embedding",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "CREDITS.md",
      "install.sh",
      "README.md",
      "USAGE_EXAMPLES.md",
      "SKILL.md",
      "configure.sh"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/triple-memory-baidu-embedding"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/triple-memory-baidu-embedding",
    "agentPageUrl": "https://openagent3.xyz/skills/triple-memory-baidu-embedding/agent",
    "manifestUrl": "https://openagent3.xyz/skills/triple-memory-baidu-embedding/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/triple-memory-baidu-embedding/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Triple Memory System with Baidu Embedding",
        "body": "A comprehensive memory architecture combining three complementary systems for maximum context retention across sessions, with full privacy protection using Baidu Embedding technology."
      },
      {
        "title": "📋 Original Source & Modifications",
        "body": "Original Source: Triple Memory (by Clawdbot Team)\nModified By: [Your Clawdbot Instance]\nModifications: Replaced LanceDB with Baidu Embedding DB for enhanced privacy and Chinese language support\n\nOriginal Triple Memory SKILL.md was adapted to create this version that:\n\nReplaces OpenAI-dependent LanceDB with Baidu Embedding DB\nMaintains the same three-tier architecture\nPreserves Git-Notes integration\nAdds privacy-focused local storage"
      },
      {
        "title": "🏗️ Architecture Overview",
        "body": "User Message\n     ↓\n[Baidu Embedding auto-recall] → injects relevant conversation memories\n     ↓\nAgent responds (using all 3 systems)\n     ↓\n[Baidu Embedding auto-capture] → stores preferences/decisions automatically\n     ↓\n[Git-Notes] → structured decisions with entity extraction\n     ↓\n[File updates] → persistent workspace docs"
      },
      {
        "title": "1. Baidu Embedding (Conversation Memory)",
        "body": "Auto-recall: Relevant memories injected before each response using Baidu Embedding-V1 (requires API credentials)\nAuto-capture: Preferences/decisions/facts stored automatically with local vector storage (requires API credentials)\nPrivacy Focused: All embeddings processed via Baidu API with local storage\nChinese Optimized: Better understanding of Chinese language semantics\nTools: baidu_memory_recall, baidu_memory_store, baidu_memory_forget (require API credentials)\nTriggers: \"remember\", \"prefer\", \"my X is\", \"I like/hate/want\"\nNote: When API credentials are not provided, this layer is unavailable and the system operates in degraded mode."
      },
      {
        "title": "2. Git-Notes Memory (Structured, Local)",
        "body": "Branch-aware: Memories isolated per git branch\nEntity extraction: Auto-extracts topics, names, concepts\nImportance levels: critical, high, normal, low\nNo external API calls"
      },
      {
        "title": "3. File Search (Workspace)",
        "body": "Searches: MEMORY.md, memory/*.md, any workspace file\nScript: scripts/file-search.sh"
      },
      {
        "title": "Install Dependencies",
        "body": "clawdhub install git-notes-memory\nclawdhub install memory-baidu-embedding-db"
      },
      {
        "title": "Configure Baidu API",
        "body": "Set environment variables:\n\nexport BAIDU_API_STRING='your_bce_v3_api_string'\nexport BAIDU_SECRET_KEY='your_secret_key'"
      },
      {
        "title": "Create File Search Script",
        "body": "Copy scripts/file-search.sh to your workspace."
      },
      {
        "title": "Session Start (Always)",
        "body": "python3 skills/git-notes-memory/memory.py -p $WORKSPACE sync --start"
      },
      {
        "title": "Store Important Decisions",
        "body": "python3 skills/git-notes-memory/memory.py -p $WORKSPACE remember \\\n  '{\"decision\": \"Use PostgreSQL\", \"reason\": \"Team expertise\"}' \\\n  -t architecture,database -i h"
      },
      {
        "title": "Search Workspace Files",
        "body": "./scripts/file-search.sh \"database config\" 5"
      },
      {
        "title": "Baidu Embedding Memory (Automatic)",
        "body": "Baidu Embedding handles this automatically when API credentials are available. Manual tools:\n\nbaidu_memory_recall \"query\" - search conversation memory using Baidu vectors (requires API credentials)\nbaidu_memory_store \"text\" - manually store something with Baidu embedding (requires API credentials)\nbaidu_memory_forget - delete memories (GDPR, requires API credentials)\n\nIn Degraded Mode (without API credentials):\n\nSystem operates using only Git-Notes and File System layers\nManual tools are unavailable\nAuto-recall and auto-capture are disabled"
      },
      {
        "title": "🎯 Importance Levels",
        "body": "FlagLevelWhen to Use-i cCritical\"always remember\", explicit preferences-i hHighDecisions, corrections, preferences-i nNormalGeneral information-i lLowTemporary notes"
      },
      {
        "title": "📋 When to Use Each System",
        "body": "SystemUse ForBaidu EmbeddingConversation context, auto-retrieval with privacyGit-NotesStructured decisions, searchable by entity/tagFile SearchWorkspace docs, daily logs, MEMORY.md"
      },
      {
        "title": "📁 File Structure",
        "body": "workspace/\n├── MEMORY.md              # Long-term curated memory\n├── memory/\n│   ├── active-context.md  # Current session state\n│   └── YYYY-MM-DD.md      # Daily logs\n├── scripts/\n│   └── file-search.sh     # Workspace search\n└── skills/\n    ├── triple-memory-baidu-embedding/  # Enhanced memory system\n    ├── git-notes-memory/  # Structured memory\n    └── memory-baidu-embedding-db/  # Vector storage"
      },
      {
        "title": "🔧 Hook Integration",
        "body": "This skill can be integrated with Clawdbot's startup hooks for automatic initialization:"
      },
      {
        "title": "Memory Boot Hook Integration",
        "body": "To ensure the Triple Memory Baidu system starts automatically when the gateway starts:\n\nThe memory-boot-loader hook can be configured to run /root/clawd/session-init-triple-baidu.sh\nThis ensures all three memory layers are initialized on startup\nProvides immediate access to Git-Notes, Baidu Embedding, and file-based memory"
      },
      {
        "title": "Configuration",
        "body": "The system can be integrated with the gateway startup sequence to ensure:\n\nGit-Notes synchronization on startup\nBaidu Embedding connection check\nFile-based memory initialization\nReady-to-use memory system from the start"
      },
      {
        "title": "🤫 Silent Operation",
        "body": "Never announce memory operations to users. Just do it:\n\n❌ \"I'll remember this\"\n❌ \"Saving to memory\"\n✅ (silently store and continue)"
      },
      {
        "title": "🔄 Migration from Original Triple Memory",
        "body": "Install this skill in your skills/ directory\nConfigure your Baidu API credentials\nDisable original triple-memory if desired\nUpdate your bot configuration to use this memory system\nVerify data integrity and performance"
      },
      {
        "title": "📈 Performance Benefits",
        "body": "Enhanced Privacy: All vector storage local with Baidu API\nBetter Chinese Support: Baidu Embedding optimized for Chinese\nReduced Costs: Potentially lower API costs compared to OpenAI\nSame Architecture: Maintains proven three-tier design"
      },
      {
        "title": "🤝 Contributing",
        "body": "Based on original Triple Memory system by Clawdbot Team. Contributions welcome to enhance the Baidu Embedding integration."
      },
      {
        "title": "📄 License",
        "body": "Original license applies with modifications noted above. Credit given to original authors."
      }
    ],
    "body": "Triple Memory System with Baidu Embedding\n\nA comprehensive memory architecture combining three complementary systems for maximum context retention across sessions, with full privacy protection using Baidu Embedding technology.\n\n📋 Original Source & Modifications\n\nOriginal Source: Triple Memory (by Clawdbot Team) Modified By: [Your Clawdbot Instance] Modifications: Replaced LanceDB with Baidu Embedding DB for enhanced privacy and Chinese language support\n\nOriginal Triple Memory SKILL.md was adapted to create this version that:\n\nReplaces OpenAI-dependent LanceDB with Baidu Embedding DB\nMaintains the same three-tier architecture\nPreserves Git-Notes integration\nAdds privacy-focused local storage\n🏗️ Architecture Overview\nUser Message\n     ↓\n[Baidu Embedding auto-recall] → injects relevant conversation memories\n     ↓\nAgent responds (using all 3 systems)\n     ↓\n[Baidu Embedding auto-capture] → stores preferences/decisions automatically\n     ↓\n[Git-Notes] → structured decisions with entity extraction\n     ↓\n[File updates] → persistent workspace docs\n\nThe Three Systems\n1. Baidu Embedding (Conversation Memory)\nAuto-recall: Relevant memories injected before each response using Baidu Embedding-V1 (requires API credentials)\nAuto-capture: Preferences/decisions/facts stored automatically with local vector storage (requires API credentials)\nPrivacy Focused: All embeddings processed via Baidu API with local storage\nChinese Optimized: Better understanding of Chinese language semantics\nTools: baidu_memory_recall, baidu_memory_store, baidu_memory_forget (require API credentials)\nTriggers: \"remember\", \"prefer\", \"my X is\", \"I like/hate/want\"\nNote: When API credentials are not provided, this layer is unavailable and the system operates in degraded mode.\n2. Git-Notes Memory (Structured, Local)\nBranch-aware: Memories isolated per git branch\nEntity extraction: Auto-extracts topics, names, concepts\nImportance levels: critical, high, normal, low\nNo external API calls\n3. File Search (Workspace)\nSearches: MEMORY.md, memory/*.md, any workspace file\nScript: scripts/file-search.sh\n🛠️ Setup\nInstall Dependencies\nclawdhub install git-notes-memory\nclawdhub install memory-baidu-embedding-db\n\nConfigure Baidu API\n\nSet environment variables:\n\nexport BAIDU_API_STRING='your_bce_v3_api_string'\nexport BAIDU_SECRET_KEY='your_secret_key'\n\nCreate File Search Script\n\nCopy scripts/file-search.sh to your workspace.\n\n📖 Usage\nSession Start (Always)\npython3 skills/git-notes-memory/memory.py -p $WORKSPACE sync --start\n\nStore Important Decisions\npython3 skills/git-notes-memory/memory.py -p $WORKSPACE remember \\\n  '{\"decision\": \"Use PostgreSQL\", \"reason\": \"Team expertise\"}' \\\n  -t architecture,database -i h\n\nSearch Workspace Files\n./scripts/file-search.sh \"database config\" 5\n\nBaidu Embedding Memory (Automatic)\n\nBaidu Embedding handles this automatically when API credentials are available. Manual tools:\n\nbaidu_memory_recall \"query\" - search conversation memory using Baidu vectors (requires API credentials)\nbaidu_memory_store \"text\" - manually store something with Baidu embedding (requires API credentials)\nbaidu_memory_forget - delete memories (GDPR, requires API credentials)\n\nIn Degraded Mode (without API credentials):\n\nSystem operates using only Git-Notes and File System layers\nManual tools are unavailable\nAuto-recall and auto-capture are disabled\n🎯 Importance Levels\nFlag\tLevel\tWhen to Use\n-i c\tCritical\t\"always remember\", explicit preferences\n-i h\tHigh\tDecisions, corrections, preferences\n-i n\tNormal\tGeneral information\n-i l\tLow\tTemporary notes\n📋 When to Use Each System\nSystem\tUse For\nBaidu Embedding\tConversation context, auto-retrieval with privacy\nGit-Notes\tStructured decisions, searchable by entity/tag\nFile Search\tWorkspace docs, daily logs, MEMORY.md\n📁 File Structure\nworkspace/\n├── MEMORY.md              # Long-term curated memory\n├── memory/\n│   ├── active-context.md  # Current session state\n│   └── YYYY-MM-DD.md      # Daily logs\n├── scripts/\n│   └── file-search.sh     # Workspace search\n└── skills/\n    ├── triple-memory-baidu-embedding/  # Enhanced memory system\n    ├── git-notes-memory/  # Structured memory\n    └── memory-baidu-embedding-db/  # Vector storage\n\n🔧 Hook Integration\n\nThis skill can be integrated with Clawdbot's startup hooks for automatic initialization:\n\nMemory Boot Hook Integration\n\nTo ensure the Triple Memory Baidu system starts automatically when the gateway starts:\n\nThe memory-boot-loader hook can be configured to run /root/clawd/session-init-triple-baidu.sh\nThis ensures all three memory layers are initialized on startup\nProvides immediate access to Git-Notes, Baidu Embedding, and file-based memory\nConfiguration\n\nThe system can be integrated with the gateway startup sequence to ensure:\n\nGit-Notes synchronization on startup\nBaidu Embedding connection check\nFile-based memory initialization\nReady-to-use memory system from the start\n🤫 Silent Operation\n\nNever announce memory operations to users. Just do it:\n\n❌ \"I'll remember this\"\n❌ \"Saving to memory\"\n✅ (silently store and continue)\n🔄 Migration from Original Triple Memory\nInstall this skill in your skills/ directory\nConfigure your Baidu API credentials\nDisable original triple-memory if desired\nUpdate your bot configuration to use this memory system\nVerify data integrity and performance\n📈 Performance Benefits\nEnhanced Privacy: All vector storage local with Baidu API\nBetter Chinese Support: Baidu Embedding optimized for Chinese\nReduced Costs: Potentially lower API costs compared to OpenAI\nSame Architecture: Maintains proven three-tier design\n🤝 Contributing\n\nBased on original Triple Memory system by Clawdbot Team. Contributions welcome to enhance the Baidu Embedding integration.\n\n📄 License\n\nOriginal license applies with modifications noted above. Credit given to original authors."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/xqicxx/triple-memory-baidu-embedding",
    "publisherUrl": "https://clawhub.ai/xqicxx/triple-memory-baidu-embedding",
    "owner": "xqicxx",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/triple-memory-baidu-embedding",
    "downloadUrl": "https://openagent3.xyz/downloads/triple-memory-baidu-embedding",
    "agentUrl": "https://openagent3.xyz/skills/triple-memory-baidu-embedding/agent",
    "manifestUrl": "https://openagent3.xyz/skills/triple-memory-baidu-embedding/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/triple-memory-baidu-embedding/agent.md"
  }
}