{"id":224,"date":"2026-11-30T21:36:15","date_gmt":"2026-11-30T13:36:15","guid":{"rendered":"https:\/\/374969782.xyz\/?p=224"},"modified":"2026-11-30T21:59:54","modified_gmt":"2026-11-30T13:59:54","slug":"%e4%bb%a5chroma%e4%b8%ba%e4%be%8b%e7%9a%84%e5%90%91%e9%87%8f%e5%ba%93%e5%9f%ba%e6%9c%ac%e5%8e%9f%e7%90%86%e4%b8%8e%e6%b5%81%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/374969782.xyz\/index.php\/2026\/11\/30\/%e4%bb%a5chroma%e4%b8%ba%e4%be%8b%e7%9a%84%e5%90%91%e9%87%8f%e5%ba%93%e5%9f%ba%e6%9c%ac%e5%8e%9f%e7%90%86%e4%b8%8e%e6%b5%81%e7%a8%8b\/","title":{"rendered":"\u4ee5Chroma\u4e3a\u4f8b\u7684\u5411\u91cf\u5e93\u57fa\u672c\u539f\u7406\u4e0e\u6d41\u7a0b"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u5411\u91cf\u6570\u636e\u5e93\u672c\u8d28\u4e0a\u662f\u5c06\u539f\u59cb\u6570\u636e\u5207\u5206\u6210\u591a\u4e2a\u5757\uff08chunk\uff09\u540e\uff0c\u628a\u6bcf\u4e2a\u5757\u901a\u8fc7\u5d4c\u5165\u6a21\u578b\u8f6c\u5316\u4e3a\u5411\u91cf\u5b58\u653e\u3002\u539f\u59cb\u5757\u6570\u636e\u548c\u5757\u5bf9\u5e94\u7684\u5411\u91cf\u5206\u5f00\u5b58\u653e\uff0c\u5e76\u901a\u8fc7\u552f\u4e00\u7684id\u6765\u5bf9\u5e94\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5199\u5165\uff1a<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1\u3001\u5206\u5757\u4e0e\u5d4c\u5165\uff08embedding\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5206\u5757\u4e0e\u5206\u8bcd\u5e76\u4e0d\u76f8\u540c\uff0c\u5207\u5206\u505a\u7684\u662f\u5206\u5757\u64cd\u4f5c\u800c\u975e\u5206\u8bcd\u64cd\u4f5c\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5206\u5757\u662f\u201c\u505a\u5361\u7247\u201d\u7684\u8fc7\u7a0b\uff0c\u5176\u76ee\u6807\u662f<strong>\u4fdd\u6301\u8bed\u4e49\u7684\u5b8c\u6574\u6027<\/strong>\u3002\u628a\u4e00\u6bb5\u957f\u6587\u672c\uff08\u6bd4\u5982\u4e00\u7bc7\u8bba\u6587\u3001\u4e00\u4efd\u5408\u540c\uff09\u5207\u6210\u4e00\u4e2a\u4e2a\u903b\u8f91\u4e0a\u8fde\u8d2f\u7684\u201c\u6bb5\u843d\u5361\u7247\u201d\uff0c\u6bcf\u5f20\u5361\u7247\u672c\u8eab\u5c31\u662f\u4e00\u4e2a\u610f\u601d\u76f8\u5bf9\u5b8c\u6574\u7684\u5c0f\u7247\u6bb5\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u800c\u5206\u8bcd\u662f\u201c\u6570\u5361\u7247\u4e0a\u6709\u51e0\u4e2a\u5b57\/\u8bcd\u201d\u7684\u8fc7\u7a0b\u3002\u8fd9\u4e2a\u884c\u4e3a\u53d1\u751f\u5728\u4e00\u5f20\u5361\u7247\u7684\u5185\u90e8\uff0c\u5c06\u4e00\u4e2a\u5757\u5185\u90e8\u6587\u5b57\u6d41\u62c6\u89e3\u6210\u6a21\u578b\u80fd\u7406\u89e3\u7684\u6700\u5c0f\u5355\u5143\uff08Token\uff09\u3002\u8fd9\u662fjieba\u4e4b\u7c7b\u7684\u5de5\u5177\u5e93\u80fd\u505a\u7684\u4e8b\u60c5\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-fixed-layout\"><tbody><tr><td>\u7eac\u5ea6<\/td><td><strong>\u5206\u5757 (Chunking)<\/strong><\/td><td><strong>\u5206\u8bcd (Tokenization)<\/strong><\/td><\/tr><tr><td>\u76ee\u6807<\/td><td>\u5c06\u957f\u6587\u672c\u7ec4\u7ec7\u4e3a<strong>\u8bed\u4e49\u8fde\u8d2f\u7684\u4fe1\u606f\u7247\u6bb5<\/strong><\/td><td>\u5c06\u6587\u672c\u8f6c\u5316\u4e3a\u6a21\u578b\u53ef\u5904\u7406\u7684<strong>\u57fa\u672c\u5355\u5143<\/strong><\/td><\/tr><tr><td>\u5c42\u7ea7<\/td><td><strong>\u9ad8\u5c42<\/strong>\u4fe1\u606f\u7ec4\u7ec7\u624b\u6bb5<\/td><td><strong>\u5e95\u5c42<\/strong>\u9884\u5904\u7406\u6b65\u9aa4<\/td><\/tr><tr><td>\u5355\u5143\u5927\u5c0f<\/td><td>\u901a\u5e38\u662f<strong>\u53e5\u5b50\u6216\u6bb5\u843d\u7ea7<\/strong><\/td><td>\u901a\u5e38\u662f<strong>\u8bcd\u3001\u5b50\u8bcd\u6216\u5b57\u7b26\u7ea7<\/strong><\/td><\/tr><tr><td>\u5173\u6ce8\u70b9<\/td><td><strong>\u8bed\u4e49\u8fde\u8d2f\u6027\u3001\u4e0a\u4e0b\u6587\u5b8c\u6574\u6027<\/strong><\/td><td>\u8bed\u6cd5\u7ed3\u6784\u3001\u8bcd\u6c47\u8fb9\u754c<\/td><\/tr><tr><td>\u5178\u578b\u5de5\u5177<\/td><td>\u9012\u5f52\u5b57\u7b26\u5207\u5206\u5668\u3001\u8bed\u4e49\u5207\u5206\u5668\u3001\u7ed3\u6784\u611f\u77e5\u5207\u5206\u5668<\/td><td>jieba\u3001BPE\u3001SentencePiece<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u5206\u5757\u540e\u518d\u5f15\u5165embedding\uff08\u5d4c\u5165\uff09\u6a21\u578b\uff0c\u628a\u4e00\u6bb5\u6587\u5b57\u53d8\u6210\u4e00\u4e32\u56fa\u5b9a\u957f\u5ea6\u7684\u6570\u5b57\uff0c\u5373<strong>\u5411\u91cf<\/strong>\uff08Vector\uff09\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u610f\u601d\u76f8\u8fd1\u7684\u53e5\u5b50\uff0c\u5728\u5411\u91cf\u7a7a\u95f4\u5185\u7684\u8ddd\u79bb\u4e5f\u76f8\u8fd1\u3002\uff08\u8fd9\u662fembedding\u6a21\u578b\u88ab\u8bad\u7ec3\u51fa\u6765\u7684\u80fd\u529b\uff09\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2\u3001WAL\uff08Write-Ahead Log\uff0c\u9884\u5199\u65e5\u5fd7\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u628a\u6bcf\u6b21\u64cd\u4f5c\u539f\u5c01\u4e0d\u52a8\u5730\u5199\u8fdb\u4e00\u4e2a\u6d41\u6c34\u8d26\u672c\u91cc\uff0c\u5373WAL\uff08Write-Ahead Log\uff0c\u9884\u5199\u65e5\u5fd7\uff09\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5e94\u5bf9\u7a81\u7136\u65ad\u7535\u7b49\u610f\u5916\u60c5\u51b5\u5bfc\u81f4\u6570\u636e\u7d22\u5f15\u6df7\u4e71\uff0c\u53ef\u4ee5\u6839\u636eWAL\u91cd\u65b0\u751f\u6210\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728 Chroma \u7684 SQLite \u6570\u636e\u5e93\u91cc\uff0c\u7528\u201cembeddings_queue\u201d\u8868\u6765\u8bb0\u5f55\uff0c\u6bcf\u4e00\u884c\u4e00\u6b21\u64cd\u4f5c\uff08add\/update\/delete\uff09\u3001\u5bf9\u5e94\u7684\u5411\u91cf\u4ee5\u53ca\u5143\u6570\u636e\u7684\u4e00\u4efd\u526f\u672c\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3\u3001\u5199\u5165\u65f6\u5728\u6682\u5b58\u533a\u7f13\u5b58\u6570\u636e<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">HNSW \u7d22\u5f15\u68c0\u7d22\u5f88\u5feb\uff0c\u4f46\u6dfb\u52a0\u5f88\u6162\uff0c\u56e0\u4e3a\u5b83\u9700\u8981\u91cd\u65b0\u8ba1\u7b97\u548c\u8c03\u6574\u56fe\u7ed3\u6784\u3002\u6240\u4ee5 Chroma \u4e0d\u4f1a\u6bcf\u6765\u4e00\u6761\u65b0\u6570\u636e\u5c31\u53bb\u6298\u817e HNSW\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u56e0\u6b64\u63d0\u4f9b\u4e00\u4e2a\u5185\u5b58\u4e2d\u7684\u201c\u6682\u5b58\u533a\u201d\uff0c\u79f0\u4e3a\u201c\u00a0<strong>Brute Force \u7d22\u5f15\uff08\u66b4\u529b\u7d22\u5f15\uff09<\/strong>\u00a0\u201d\u3002\u6240\u6709\u65b0\u5199\u5165\u7684\u5411\u91cf\u90fd\u4f1a\u5148\u5b58\u653e\u5728\u8fd9\u91cc\u3002\u5728\u8fd9\u4e2a\u5c0f\u6682\u5b58\u533a\u91cc\u641c\u4e1c\u897f\uff0c\u5c31\u662f\u8001\u8001\u5b9e\u5b9e\u628a\u6bcf\u4e2a\u5411\u91cf\u90fd\u6bd4\u4e00\u904d\uff0c\u4e0d\u505a\u4efb\u4f55\u53d6\u5de7\u3002\u56e0\u4e3a\u6570\u636e\u91cf\u5c0f\uff0c\u6240\u4ee5\u901f\u5ea6\u53ef\u4ee5\u63a5\u53d7\uff0c\u800c\u4e14\u5199\u5165\u6781\u5feb\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u56e0\u4e3aBrute Force\u5b58\u653e\u5728\u5185\u5b58\u4e2d\uff0c\u6240\u4ee5\u4f1a\u968f\u7a0b\u5e8f\u7684\u5173\u95ed\u800c\u88ab\u6e05\u7a7a\uff08\u4f46\u6709WAL\u8bb0\u5f55\uff09\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4\u3001\u66f4\u65b0\u6b63\u5f0f\u4ed3\u5e93\uff08HNSW\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f53\u6682\u5b58\u533a\u91cc\u7684\u5411\u91cf\u6512\u5230\u4e00\u5b9a\u6570\u91cf\uff08\u7531 hnsw:batch_size \u63a7\u5236\uff09\uff0cChroma \u4f1a\u628a\u8fd9\u6279\u5411\u91cf\u4e00\u6b21\u6027\u6279\u91cf\u5199\u5165 HNSW \u7d22\u5f15\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e4b\u540e\uff0cHNSW \u7d22\u5f15\u8fd8\u4f1a\u5b9a\u671f\u628a\u5185\u5b58\u4e2d\u7684\u6570\u636e\u6301\u4e45\u5316\u5230\u78c1\u76d8\uff08\u7531 hnsw:sync_threshold \u63a7\u5236\uff09\uff0c\u5f62\u6210\u4e00\u4e2a\u4ee5 UUID \u547d\u540d\u7684\u6587\u4ef6\u5939\uff0c\u91cc\u9762\u5b58\u653e\u7740\u8fd9\u4e2a collection \u7684 HNSW \u56fe\u7ed3\u6784\u6587\u4ef6\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">HNSW \u7d22\u5f15\u672c\u8eab\u662f\u5b8c\u6574\u7684\u56fe\u7ed3\u6784\uff0c\u4f46\u4f7f\u7528\u65f6\u4f9d\u7136\u662f\u4e34\u65f6\u5b58\u653e\u5728\u5185\u5b58\u4e2d\u7684\uff0c\u7a0b\u5e8f\u610f\u5916\u4e2d\u65ad\u4f9d\u7136\u4f1a\u5bfc\u81f4\u6570\u636e\u4e22\u5931\uff08\u5f53\u7136\u8fd8\u6709WAL\u8bb0\u5f55\uff09\u3002\u5f53\u79ef\u7d2f\u4e86\u4e00\u5b9a\u7684\u65b0\u5411\u91cf\u6570\u636e\u540e\uff08\u7531 hnsw:sync_threshold \u63a7\u5236\uff09\uff0c\u4f1a\u8fdb\u884c\u4e00\u6b21\u6570\u636e\u6301\u4e45\u5316\u5230\u78c1\u76d8\uff08\u843d\u76d8\uff09\u7684\u64cd\u4f5c\uff0c\u66f4\u65b0UUID \u547d\u540d\u7684\u6587\u4ef6\u5939\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5\u3001\u539f\u59cb\u6570\u636e\u5b58\u5165 SQLite\u00a0<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u539f\u59cb\u6587\u5b57\uff08<code>documents<\/code>\uff09\u548c\u6807\u7b7e\u4fe1\u606f\uff08<code>metadata<\/code>\uff0c\u6bd4\u5982 <code>{\"source\": \"\u65e5\u8bb0\", \"year\": 2026}<\/code>\uff09<strong>\u4e0d\u4f1a\u8fdb\u5165 HNSW \u7d22\u5f15<\/strong>\u3002\u6240\u4ee5\u5f15\u5165SQLite\uff0c\u8fd9 \u662f Chroma \u7528\u6765\u7ba1\u7406\u201c\u7ed3\u6784\u5316\u4fe1\u606f\u201d\u7684\u4ed3\u5e93\uff0c\u8d1f\u8d23\u4fdd\u7ba1\u6240\u6709\u539f\u59cb\u6587\u672c\u3001\u5143\u6570\u636e\u4ee5\u53ca\u7cfb\u7edf\u914d\u7f6e\uff0c\u548c\u5411\u91cf\u7d22\u5f15<strong>\u5206\u5f00\u5b58\u653e<\/strong>\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">SQLite\u8868\u4e0e<strong>HNSW \u7d22\u5f15<\/strong>\u901a\u8fc7\u552f\u4e00id\u76f8\u5173\u8054\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u67e5\u8be2<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1\u3001\u88ab\u67e5\u8be2\u8bcd\u5411\u91cf\u5316\u5d4c\u5165<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5c06\u88ab\u67e5\u8be2\u7684\u6bb5\u843d\u7528<strong>\u540c\u4e00\u4e2a Embedding \u6a21\u578b<\/strong>\u7ffb\u8bd1\u6210\u4e00\u4e32\u5411\u91cf\u3002\u4e0d\u662f\u540c\u4e00\u4e2a\u6a21\u578b\u7684\u8bdd\u4f1a\u5bfc\u81f4\u4e24\u5957\u201c\u5750\u6807\u7cfb\u201d\u5bf9\u4e0d\u4e0a\uff0c\u7b97\u51fa\u6765\u7684\u8ddd\u79bb\u6ca1\u6709\u610f\u4e49\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2\u3001\u5143\u6570\u636e\u8fc7\u6ee4\uff08\u53ef\u9009\uff0c\u4f46\u6781\u5feb\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u67e5\u8be2\u65f6\u52a0 <code>where={\"year\": 2026}<\/code>\uff0cChroma \u4f1a\u5148\u5728 SQLite \u91cc\u505a\u4e00\u8f6e\u8fc7\u6ee4\uff0c\u628a\u4e0d\u6ee1\u8db3\u6761\u4ef6\u7684\u8bb0\u5f55\u76f4\u63a5\u6392\u9664\u6389\u3002\u8fd9\u4e00\u6b65\u53d1\u751f\u5728\u5411\u91cf\u641c\u7d22\u4e4b\u524d\uff0c\u76f8\u5f53\u4e8e\u5148\u628a\u641c\u7d22\u8303\u56f4\u7f29\u5c0f\u5230\u4e00\u5c0f\u64ae\u7b26\u5408\u6761\u4ef6\u7684\u5757\u7fa4\uff0c\u518d\u53bb\u91cc\u9762\u627e\u201c\u610f\u601d\u6700\u8fd1\u201d\u7684\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3\u3001HNSW\u00a0\u7d22\u5f15\u5bfc\u822a<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">HNSW\uff08\u5206\u5c42\u53ef\u5bfc\u822a\u5c0f\u4e16\u754c\u56fe\uff09\u7684\u7ed3\u6784\u50cf\u4e00\u5f20<strong>\u591a\u5c42\u4ea4\u901a\u7f51<\/strong>\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6700\u4e0a\u5c42<\/strong>\u8282\u70b9\u6781\u5c11\uff0c\u8fde\u63a5\u7684\u662f\u201c\u76f8\u8ddd\u5f88\u8fdc\u201d\u7684\u8282\u70b9<\/li>\n\n\n\n<li><strong>\u8d8a\u5f80\u4e0b\u5c42<\/strong>\uff0c\u8282\u70b9\u8d8a\u591a\u3001\u8fde\u63a5\u8d8a\u5bc6\uff0c\u6bcf\u4e2a\u8282\u70b9\u90fd\u548c\u81ea\u5df1\u7684\u8fd1\u90bb\u76f8\u8fde\uff0c\u9010\u6b65\u7f29\u5c0f\u5230\u7cbe\u786e\u5b9a\u4f4d<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u67e5\u8be2\u5411\u91cf\u4ece\u6700\u4e0a\u5c42\u7684\u4e00\u4e2a\u5165\u53e3\u70b9\u51fa\u53d1\uff0c\u5728\u6bcf\u4e00\u5c42\u67e5\u8be2\uff1a\u201c\u6211\u7684\u90bb\u5c45\u91cc\uff0c\u6709\u6ca1\u6709\u6bd4\u4f60\u79bb\u76ee\u6807\u66f4\u8fd1\u7684\uff1f\u201d \u5982\u679c\u6709\uff0c\u5c31\u79fb\u8fc7\u53bb\uff0c\u76f4\u5230\u5728\u5f53\u524d\u5c42\u627e\u4e0d\u5230\u66f4\u8fd1\u7684\u90bb\u5c45\uff0c\u7136\u540e\u4e0b\u6c89\u5230\u4e0b\u4e00\u5c42\uff0c\u4ee5\u4e0a\u4e00\u5c42\u7684\u843d\u70b9\u4f5c\u4e3a\u65b0\u7684\u8d77\u70b9\uff0c\u7ee7\u7eed\u540c\u6837\u7684\u8fc7\u7a0b\u3002\u6574\u4e2a\u8fc7\u7a0b\u662f\u8d2a\u5fc3\u5f0f\u7684\uff0c\u6bcf\u6b65\u90fd\u5f80\u201c\u770b\u8d77\u6765\u66f4\u8fd1\u201d\u7684\u65b9\u5411\u8d70\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u7ec8\uff0cHNSW \u4f1a\u5feb\u901f\u8fd4\u56de\u4e00\u4e2a\u5019\u9009\u96c6\uff0c\u6bd4\u5982\u79bb\u67e5\u8be2\u5411\u91cf\u6700\u8fd1\u7684 100 \u4e2a\u8282\u70b9\u3002\u8fd9 100 \u4e2a\u662f\u201c\u5927\u6982\u6700\u8fd1\u201d\uff0c\u4e0d\u4fdd\u8bc1\u662f\u7edd\u5bf9\u7cbe\u786e\u7684\u524d 100\uff0c\u4f46\u53ec\u56de\u7387\u901a\u5e38\u5f88\u9ad8\u3002\u8fd9\u5c31\u662f\u201c\u8fd1\u4f3c\u6700\u8fd1\u90bb\u641c\u7d22\uff08ANN\uff09 \u201d\u2014\u2014\u7528\u4e00\u70b9\u70b9\u7cbe\u5ea6\uff0c\u6362\u53d6\u4ece\u201c\u626b\u63cf\u5168\u90e8\u6570\u636e\u201d\u5230\u201c\u53ea\u8d70\u51e0\u6761\u8def\u201d\u7684\u901f\u5ea6\u98de\u8dc3\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4\u3001\u901a\u8fc7id\u8054\u7cfb\u627e\u5230\u5bf9\u5e94\u539f\u59cb\u6570\u636e<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">HNSW \u7684\u6bcf\u4e2a\u8282\u70b9\u91cc\uff0c\u4e0d\u5b58\u539f\u59cb\u6587\u5b57\uff0c\u53ea\u5b58\u5411\u91cf\u548c\u4e00\u4e2a id\u3002\u5f53 HNSW \u8fd4\u56de\u4e86 \u524d\u4e00\u5b9a\u767e\u5206\u6bd4\u7684\u6570\u636e\u7684 id \u540e\uff0cChroma \u62ff\u7740\u8fd9\u51e0\u4e2a id \u56de SQLite \u91cc\u201c\u53d6\u8d27\u201d\uff0c\u628a\u5bf9\u5e94\u7684 documents \u548c metadata \u67e5\u51fa\u6765\uff0c\u62fc\u6210\u6700\u7ec8\u7ed3\u679c\u8fd4\u56de\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">id\u5c31\u662f\u539f\u59cb\u6570\u636e\u5757\u8868\u4e0e\u5411\u91cf\u6570\u636e\u5e93\u7684\u552f\u4e00\u8054\u7cfb\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e00\u4e9b\u8865\u5145\uff1a<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1.\u6570\u636e\u5e93\u57fa\u672c\u5c42\u7ea7\u7ed3\u6784\uff1a<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Tenant\uff08\u79df\u6237\uff09\u2192 Database\uff08\u6570\u636e\u5e93\uff09\u2192 Collection\uff08\u96c6\u5408\uff09\u2192 \u8bb0\u5f55\uff08Record\uff09<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u4e2acollection\u96c6\u5408\u5c31\u53ef\u4ee5\u5bf9\u5e94\u4e00\u4e2aHNSW\u7d22\u5f15\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u4e2a\u9879\u76ee\u6709\u81ea\u5df1\u7684\u6570\u636e\u5e93\uff0c\u5e93\u91cc\u53ef\u4ee5\u6709\u591a\u5f20collection\u96c6\u5408\u8868\uff0c\u6bcf\u5f20\u8868\u5e94\u5bf9\u4e0d\u540c\u7684\u9700\u6c42\uff0c\u914d\u5408HNSW\u7d22\u5f15\u4ec5\u4ec5\u662f\u529f\u80fd\u4e4b\u4e00\u3002\uff08\u8fd9\u90e8\u5206\u5c31\u5c5e\u4e8e\u6570\u636e\u5e93\u672c\u8eab\u7684\u77e5\u8bc6\u4e86\uff09\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2.Segment\u662f\u4ec0\u4e48<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">segment \u662f Collection \u5185\u90e8\u8d1f\u8d23\u67d0\u4e00\u7c7b\u7279\u5b9a\u5de5\u4f5c\u7684\u201c\u4e13\u804c\u7ec4\u4ef6\u201d\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u91cc\u628a\u539f\u59cb\u6570\u636e\u5757\u548c\u5411\u91cf\u6570\u636e\u5757\u5206\u5f00\u6210\u4e24\u4e2a\u7ed3\u6784\u6765\u7ba1\u7406\uff0c\u5c31\u662f\u5206\u6210\u4e86\u4e24\u79cdSegment\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6bcf\u4e2a Segment \u90fd\u6709\u81ea\u5df1\u7684 UUID\uff0c\u5b83\u4eec\u76f8\u4e92\u72ec\u7acb\u3002 \u4e00\u4e2a Collection \u62e5\u6709\u4e00\u4e2a\u81ea\u5df1\u7684 UUID\uff0c\u800c\u5b83\u5185\u90e8\u7684\u4e24\u4e2a Segment\uff08Vector Segment \u548c Metadata Segment\uff09\u4e5f\u5404\u81ea\u62e5\u6709\u72ec\u7acb\u7684 UUID\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5411\u91cf\u6570\u636e\u5e93\u672c\u8d28\u4e0a\u662f\u5c06\u539f\u59cb\u6570\u636e\u5207\u5206\u6210\u591a\u4e2a\u5757\uff08chunk\uff09\u540e\uff0c\u628a\u6bcf\u4e2a\u5757\u901a\u8fc7\u5d4c\u5165\u6a21\u578b\u8f6c\u5316\u4e3a\u5411\u91cf\u5b58\u653e\u3002\u539f\u59cb\u5757\u6570\u636e\u548c\u5757\u5bf9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,14],"tags":[],"class_list":["post-224","post","type-post","status-publish","format-standard","hentry","category-15","category-14"],"_links":{"self":[{"href":"https:\/\/374969782.xyz\/index.php\/wp-json\/wp\/v2\/posts\/224","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/374969782.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/374969782.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/374969782.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/374969782.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=224"}],"version-history":[{"count":10,"href":"https:\/\/374969782.xyz\/index.php\/wp-json\/wp\/v2\/posts\/224\/revisions"}],"predecessor-version":[{"id":237,"href":"https:\/\/374969782.xyz\/index.php\/wp-json\/wp\/v2\/posts\/224\/revisions\/237"}],"wp:attachment":[{"href":"https:\/\/374969782.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/374969782.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/374969782.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}