{"id":10021326,"date":"2026-03-25T20:34:22","date_gmt":"2026-03-25T12:34:22","guid":{"rendered":"https:\/\/itmax.cn\/?p=10021326"},"modified":"2026-03-25T20:34:22","modified_gmt":"2026-03-25T12:34:22","slug":"1%e5%8f%a5%e8%af%9d%e7%bb%99%e4%bd%a0%e7%9a%84-openclaw-%e8%a3%85%e4%b8%8a%e9%95%bf%e6%9c%9f%e8%ae%b0%e5%bf%86-%e5%9f%ba%e4%ba%8e-polardb-x-%e7%9a%84-mem0-%e8%ae%b0%e5%bf%86","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10021326","title":{"rendered":"1\u53e5\u8bdd\u7ed9\u4f60\u7684 OpenClaw \u88c5\u4e0a&quot;\u957f\u671f\u8bb0\u5fc6&quot; \u2014 \u57fa\u4e8e PolarDB-X \u7684 mem0 \u8bb0\u5fc6\u65b9\u6848"},"content":{"rendered":"<p>\u9f99\u867e\u7684\u8bb0\u5fc6\u95ee\u9898\u76f8\u4fe1\u5927\u5bb6\u90fd\u9047\u5230\u8fc7 \u2014 \u5bf9\u8bdd\u7ecf\u5e38\u4ece\u96f6\u5f00\u59cb\uff0c\u8bb0\u4e0d\u4f4f\u4f60\u8bf4\u8fc7\u4ec0\u4e48\u3002<\/p>\n<p><strong>polardbx-mem0<\/strong> \u662f\u4e00\u4e2a\u5f00\u7bb1\u5373\u7528\u7684\u89e3\u51b3\u65b9\u6848 \u2014 \u53ea\u9700\u4e00\u53e5\u8bdd\uff0c\u4f60\u7684\u9f99\u867e\u5c31\u80fd\u81ea\u5df1\u5b8c\u6210\u5168\u90e8\u5b89\u88c5\u548c\u914d\u7f6e\u3002<\/p>\n<h2>\u4e00\u53e5\u8bdd\u5b89\u88c5<\/h2>\n<p>\u5728 OpenClaw \u5bf9\u8bdd\u4e2d\u53d1\u9001\uff1a<\/p>\n<blockquote><p>\u9605\u8bfb <a href=\"https:\/\/link.segmentfault.com\/?enc=76tUIoObWfOBieuXGk184A%3D%3D.eCZMZfSQaimrqRPtr3Nird7LEMjaTHrPRTUeeAt1xA8AjqUjJq7OHd9zwYyL2lzcH2l32fqobZep9YZZDnJxAwMJkEttEv2VIEKEQEfh0Wu0PP%2BRHmScvPyRwefK1fGJR6Qt4pOWYhimnv1LqFHvxuwlt9gS691zb%2B5CsBmtN39PBuwe6GdvtCxPhLYpZo3s\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">https:\/\/playbook.polardbx.com\/mem0.md<\/a> \u5e76\u6309\u7167\u6b65\u9aa4\u5b89\u88c5\u548c\u914d\u7f6e polardbx-mem0<\/p><\/blockquote>\n<p>Agent \u4f1a\u81ea\u52a8\u5b8c\u6210\u6240\u6709\u64cd\u4f5c\uff1a<\/p>\n<p>\u521b\u5efa <strong>PolarDB-X \u514d\u8d39\u5b9e\u4f8b<\/strong> \u2192 \u914d\u7f6e DashScope API key \u2192 \u5b89\u88c5\u63d2\u4ef6 \u2192 \u5199\u5165\u914d\u7f6e \u2192 \u91cd\u542f Gateway<\/p>\n<p>\u4f60\u53ea\u9700\u5728\u5fc5\u8981\u65f6\u786e\u8ba4\u6216\u63d0\u4f9b\u4fe1\u606f\uff0c<strong>\u5168\u7a0b\u65e0\u9700\u624b\u52a8\u7f16\u8f91\u4efb\u4f55\u6587\u4ef6<\/strong>\uff0c\u4e2d\u9014\u9f99\u867e\u4f1a\u91cd\u542f\u4e00\u6b21\uff0c\u8bf7\u4e0d\u8981\u7740\u6025\u3002<\/p>\n<h2>\u5b83\u89e3\u51b3\u4ec0\u4e48\u95ee\u9898<\/h2>\n<p>OpenClaw \u7684 Agent \u9ed8\u8ba4\u6ca1\u6709\u8de8\u4f1a\u8bdd\u8bb0\u5fc6\u3002\u4e0a\u4e00\u8f6e\u544a\u8bc9\u5b83&#8221;\u6211\u559c\u6b22\u7528 Rust&#8221;\uff0c\u4e0b\u4e00\u8f6e\u5b83\u5c31\u5fd8\u4e86\u3002<\/p>\n<p>polardbx-mem0 \u63d0\u4f9b\u4e24\u4e2a\u6838\u5fc3\u80fd\u529b\uff1a<\/p>\n<ul>\n<li>autoCapture \u2014 \u6bcf\u8f6e\u5bf9\u8bdd\u7ed3\u675f\u540e\uff0c\u81ea\u52a8\u4ece\u4e0a\u4e0b\u6587\u4e2d\u63d0\u53d6\u503c\u5f97\u8bb0\u4f4f\u7684\u4fe1\u606f\uff08\u504f\u597d\u3001\u4e8b\u5b9e\u3001\u51b3\u7b56\u7b49\uff09\uff0c\u5b58\u5165\u5411\u91cf\u6570\u636e\u5e93<\/li>\n<li>autoRecall \u2014 \u6bcf\u8f6e\u5bf9\u8bdd\u5f00\u59cb\u524d\uff0c\u81ea\u52a8\u68c0\u7d22\u4e0e\u5f53\u524d\u8bdd\u9898\u76f8\u5173\u7684\u5386\u53f2\u8bb0\u5fc6\uff0c\u6ce8\u5165 LLM \u4e0a\u4e0b\u6587<\/li>\n<\/ul>\n<p>\u6574\u4e2a\u8fc7\u7a0b\u5bf9\u7528\u6237\u900f\u660e\uff0c\u4e0d\u9700\u8981\u624b\u52a8\u89e6\u53d1\u3002<\/p>\n<h2>\u4e3a\u4ec0\u4e48\u9009 PolarDB-X<\/h2>\n<p>mem0 \u5f00\u6e90\u7248\u652f\u6301\u591a\u79cd\u5411\u91cf\u5b58\u50a8\u540e\u7aef\uff08Qdrant\u3001Redis\u3001pgvector \u7b49\uff09\u3002\u6211\u4eec\u9009\u62e9 PolarDB-X \u4f5c\u4e3a\u9ed8\u8ba4\u540e\u7aef\uff0c\u539f\u56e0\u5f88\u7b80\u5355\uff1a<\/p>\n<p><strong>\u539f\u751f\u5411\u91cf\u80fd\u529b<\/strong>\uff1aPolarDB-X \u5185\u7f6e <code>VECTOR<\/code> \u5217\u7c7b\u578b\u548c HNSW \u7d22\u5f15\uff0c\u652f\u6301 <code>VEC_DISTANCE<\/code> \u51fd\u6570\u505a\u8fd1\u4f3c\u6700\u8fd1\u90bb\u641c\u7d22\uff0c\u4e0d\u9700\u8981\u989d\u5916\u90e8\u7f72\u5411\u91cf\u6570\u636e\u5e93\u3002<\/p>\n<p><strong>MySQL \u517c\u5bb9<\/strong>\uff1a\u7528\u719f\u6089\u7684 MySQL \u5ba2\u6237\u7aef\u5c31\u80fd\u67e5\u770b\u3001\u5907\u4efd\u3001\u7ba1\u7406\u8bb0\u5fc6\u6570\u636e\u3002<code>SELECT * FROM mem0_vectors<\/code> \u5c31\u80fd\u770b\u5230 Agent \u8bb0\u4f4f\u4e86\u4ec0\u4e48\u3002<\/p>\n<p>\u6570\u636e\u81ea\u4e3b\uff1a\u6240\u6709\u8bb0\u5fc6\u5b58\u5728\u4f60\u81ea\u5df1\u7684\u6570\u636e\u5e93\u91cc\uff0c\u4e0d\u7ecf\u8fc7\u4efb\u4f55\u7b2c\u4e09\u65b9\u670d\u52a1\u3002<\/p>\n<h2>\u5b9e\u9645\u6548\u679c<\/h2>\n<p><strong>\u7b2c\u4e00\u8f6e\u5bf9\u8bdd\uff1a<\/strong><br \/>\u7528\u6237\uff1a\u6211\u662f\u4e00\u4e2a\u540e\u7aef\u5de5\u7a0b\u5e08\uff0c\u4e3b\u8981\u7528 Go \u548c Rust\uff0c\u6700\u8fd1\u5728\u7814\u7a76\u5206\u5e03\u5f0f\u6570\u636e\u5e93\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"723\" height=\"335\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdocPc\" alt=\"\" title=\"\"><\/p>\n<p><strong>\u7b2c\u4e8c\u8f6e\u5bf9\u8bdd\uff08\u53ef\u80fd\u9694\u4e86\u51e0\u5929\uff09\uff1a<\/strong><\/p>\n<p>\u7528\u6237\uff1a\u5e2e\u6211\u63a8\u8350\u4e00\u672c\u6280\u672f\u4e66\u3002<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"386\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdocPd\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h2>\u76f8\u5173\u94fe\u63a5<\/h2>\n<p>npm \u5305\uff1a<code>@polardb\/polardbx-mem0<\/code><\/p>\n<p>DashScope API key \u7533\u8bf7\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=MKpnh2l2HLpRChEL2NTu%2Bg%3D%3D.XCbnbepttcBMkawm1%2Br9l%2BiHLULfFlLfMFq202ay5CtWhAgLiQWaVvLXXPIb%2BOXNxna0TvF0rL40fiajnar0CT6grHEp7h3iYkyCDgK71Rsd1EeQX2KgBvkIKDIiFZMZC3xlqYVoRpMvjySGZeK%2FbiB2hR8grQyVlNdBhT5CasqcpIFWFb6fMADsv1FoChUnKXQayU%2FDG1tsbPgnZLJeUA%3D%3D\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">https:\/\/bailian.console.aliyun.com<\/a><\/p>\n<p>OpenClaw\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=FdIzACrF1YHWZ4yHb5y6Hw%3D%3D.qaCC%2F5Bm%2B9rfgcqbTasjuBCt6lyMSsHllCzsE9ER83Wnp1vvR8XNH5kqiG2zai3g2Fe8yjnTkBcy5H0OOIQgHKQ4C9zK5ObpiYwk6l0605sjO3zowQ7iyyRiU%2FvZzGja1k%2F3Pl8Z4i7UvqifL5gH3WwJIYNQA53OlCnKgKXZXQnQZbCYoqzjH6ettfrWzK%2B8\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">https:\/\/openclaw.ai<\/a><\/p>\n<h2>\u5b89\u5168\u53ef\u9760\u7684 PolarDB \u5206\u5e03\u5f0f V2.0 \u76f8\u5173\u8d44\u6599<\/h2>\n<p>\u963f\u91cc\u4e91 PolarDB \u6570\u636e\u5e93\u7ba1\u7406\u8f6f\u4ef6\uff08\u5206\u5e03\u5f0f\u7248\uff09V2.0\uff0c\u7b80\u79f0 PolarDB \u5206\u5e03\u5f0f\u7248V2.0\uff0c\u517c\u5bb9 MySQL \u5f00\u6e90\u751f\u6001\u6784\u5efa\u4ea7\u54c1\u7ade\u4e89\u529b\uff0c\u652f\u6301\u96c6\u4e2d\u5f0f\u548c\u5206\u5e03\u5f0f\u4e00\u4f53\u5316\u5f62\u6001\uff0c\u5177\u5907\u91d1\u878d\u7ea7\u6570\u636e\u9ad8\u53ef\u7528\u3001\u9ad8\u53ef\u9760\u548c\u5206\u5e03\u5f0f\u6c34\u5e73\u6269\u5c55\u80fd\u529b\u3002<\/p>\n<p><strong>\u4e86\u89e3\u66f4\u591a\u70b9\u6b64\u8bbf\u95ee<a href=\"https:\/\/link.segmentfault.com\/?enc=N%2B0KjI1fNJp0OpGRDPlLgg%3D%3D.ho51AmDHDiGq4t%2BlAAeEpHL5BfmIPnSYfaAlLCuY%2FNagJ5KWyHZHjxZm1a5HXHO69HViJ44NtrMVtP5Kq5VPfg%3D%3D\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">PolarDB \u5206\u5e03\u5f0f V2.0\u4e13\u9898\u9875<\/a><\/strong><\/p>\n<h2>\u5b98\u65b9\u4ea4\u6d41\u7fa4<\/h2>\n<p>\u201cPolarDB-X mem0 \u4ea4\u6d41\u7fa4\u201d\u7fa4\u7684\u9489\u9489\u7fa4\u53f7\uff1a 165600021657<\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000047675835\">https:\/\/segmentfault.com\/a\/1190000047675835<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9f99\u867e\u7684\u8bb0\u5fc6\u95ee\u9898\u76f8\u4fe1\u5927\u5bb6\u90fd\u9047\u5230\u8fc7 \u2014 \u5bf9\u8bdd\u7ecf\u5e38\u4ece\u96f6\u5f00\u59cb\uff0c\u8bb0\u4e0d\u4f4f\u4f60\u8bf4\u8fc7\u4ec0\u4e48\u3002 polardbx-mem0 \u662f\u4e00\u4e2a\u5f00 [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10021326","post","type-post","status-publish","format-standard","hentry","category-share"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10021326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10021326"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10021326\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10021326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10021326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10021326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}