{"id":19743,"date":"2025-12-09T15:21:03","date_gmt":"2025-12-09T07:21:03","guid":{"rendered":"https:\/\/92it.top\/?p=19743"},"modified":"2025-12-09T15:21:03","modified_gmt":"2025-12-09T07:21:03","slug":"docker-%e9%83%a8%e7%bd%b2-qdrant-%e5%90%91%e9%87%8f%e6%95%b0%e6%8d%ae%e5%ba%93","status":"publish","type":"post","link":"https:\/\/92it.top\/?p=19743","title":{"rendered":"Docker \u90e8\u7f72 Qdrant \u5411\u91cf\u6570\u636e\u5e93"},"content":{"rendered":"\n<p><strong>Qdrant \u7b80\u4ecb \ud83d\udd16<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>Qdrant \u662f\u4e00\u6b3e\u4e13\u4e3a\u4eba\u5de5\u667a\u80fd\u548c\u673a\u5668\u5b66\u4e60\u5e94\u7528\u8bbe\u8ba1\u7684\u5f00\u6e90\u5411\u91cf\u6570\u636e\u5e93\uff0c\u65e8\u5728\u63d0\u4f9b\u9ad8\u6548\u7684\u5411\u91cf\u5b58\u50a8\u548c\u76f8\u4f3c\u6027\u641c\u7d22\u80fd\u529b\u3002\u200c<\/p>\n\n\n\n<p>\u6838\u5fc3\u7279\u70b9\uff1a<\/p>\n\n\n\n<ul>\n<li>\u200c\u5f00\u6e90\u4e0e\u9ad8\u6027\u80fd\u200c\uff1aQdrant \u9075\u5faa Apache 2.0 \u8bb8\u53ef\u534f\u8bae\uff0c\u5b8c\u5168\u5f00\u6e90\uff0c\u5e76\u9488\u5bf9\u9ad8\u7ef4\u5411\u91cf\u6570\u636e\u8fdb\u884c\u4e86\u6df1\u5ea6\u4f18\u5316\uff0c\u786e\u4fdd\u5728\u5927\u89c4\u6a21\u6570\u636e\u96c6\u4e0a\u7684\u5feb\u901f\u67e5\u8be2\u6027\u80fd\u3002\u200c13<\/li>\n\n\n\n<li>\u200c\u5b9e\u65f6\u6027\u4e0e\u7075\u6d3b\u6027\u200c\uff1a\u652f\u6301\u5b9e\u65f6\u5411\u91cf\u641c\u7d22\uff0c\u5e76\u5141\u8bb8\u5728\u67e5\u8be2\u65f6\u7ed3\u5408\u5143\u6570\u636e\u8fc7\u6ee4\uff08\u901a\u8fc7\u201c\u8d1f\u8f7d\u201d\u529f\u80fd\uff09\uff0c\u6ee1\u8db3\u590d\u6742\u7684\u4e1a\u52a1\u9700\u6c42\u3002\u200c<\/li>\n\n\n\n<li>\u200c\u5206\u5e03\u5f0f\u67b6\u6784\u200c\uff1a\u652f\u6301\u6c34\u5e73\u6269\u5c55\uff0c\u53ef\u90e8\u7f72\u5728\u591a\u8282\u70b9\u96c6\u7fa4\u4e0a\uff0c\u63d0\u5347\u7cfb\u7edf\u7684\u53ef\u4f38\u7f29\u6027\u548c\u53ef\u9760\u6027\uff0c\u9002\u5408\u4e91\u539f\u751f\u73af\u5883\u3002\u200c<\/li>\n\n\n\n<li>\u200c\u591a\u8bed\u8a00\u652f\u6301\u200c\uff1aRESTful API + gRPC\uff08v1.8+\uff09\uff0c\u901a\u8fc7 RESTful API \u548c gRPC \u63a5\u53e3\uff0c\u4e0e\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\u65e0\u7f1d\u96c6\u6210\uff0c\u5305\u62ec Python\u3001.NET \u7b49\u3002<\/li>\n\n\n\n<li>\u200c\u5148\u8fdb\u7b97\u6cd5\u200c\uff1a\u652f\u6301 HNSW\u3001IVF\u3001DiskANN \u7b49\u7d22\u5f15\uff0c\u91c7\u7528 HNSW\uff08\u5c42\u6b21\u53ef\u5bfc\u822a\u5c0f\u4e16\u754c\uff09\u7b49\u8fd1\u4f3c\u6700\u8fd1\u90bb\uff08ANN\uff09\u7b97\u6cd5\u52a0\u901f\u641c\u7d22\uff0c\u5e76\u652f\u6301\u6b27\u51e0\u91cc\u5f97\u8ddd\u79bb\u3001\u4f59\u5f26\u76f8\u4f3c\u5ea6\u7b49\u591a\u79cd\u8ddd\u79bb\u5ea6\u91cf\u3002\u200c<\/li>\n\n\n\n<li>\u9002\u7528\u573a\u666f\uff1aRAG\u3001\u63a8\u8350\u7cfb\u7edf\u3001\u8bed\u4e49\u641c\u7d22\u3001AI Agent \u8bb0\u5fc6\u5e93<\/li>\n<\/ul>\n\n\n\n<p>\u3000\u3000<\/p>\n\n\n\n<p>Docker\u90e8\u7f72 <strong>\ud83d\udd16<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u62c9\u53d6\u6700\u65b0\u955c\u50cf\ndocker pull qdrant\/qdrant:latest\n\n# \u521b\u5efa\u6301\u4e45\u5316\u76ee\u5f55\nmkdir -p \/Users\/xxx\/Documents\/docker\/qdrant\/storage\n\n# \u542f\u52a8\u5bb9\u5668\uff08\u5e26 API Key \u8ba4\u8bc1\uff09\ndocker run -d \\\n  --name qdrant \\\n  -p 6333:6333 \\\n  -p 6334:6334 \\\n  -v \/Users\/xxx\/Documents\/docker\/qdrant\/storage:\/qdrant\/storage \\\n  -e QDRANT__SERVICE__API_KEY=\"your_strong_secret_key\" \\\n  qdrant\/qdrant:latest<\/pre>\n\n\n\n<p>6334 \u662f Qdrant \u5b98\u65b9\u6307\u5b9a\u7684&nbsp;<strong>gRPC \u534f\u8bae\u901a\u4fe1\u7aef\u53e3<\/strong>\uff0c\u548c 6333 \u7aef\u53e3\uff08HTTP\/REST \u534f\u8bae\uff09\u662f Qdrant \u63d0\u4f9b\u7684\u4e24\u79cd\u4e0d\u540c\u63a5\u53e3\uff1a<\/p>\n\n\n\n<ul>\n<li>6333 \u7aef\u53e3\uff1a\u8d70 HTTP\/REST \u534f\u8bae\uff0c\u9002\u5408\u8c03\u8bd5\u3001\u7b80\u5355\u8bf7\u6c42\u3001\u624b\u52a8\u8c03\u7528\uff08\u6bd4\u5982\u7528 curl \u6d4b\u8bd5\u3001Postman \u8c03\u63a5\u53e3\uff09\uff1b<\/li>\n\n\n\n<li>6334 \u7aef\u53e3\uff1a\u8d70 gRPC \u534f\u8bae\uff0c\u662f Qdrant \u4e3a<strong>\u9ad8\u6027\u80fd\u3001\u5927\u6279\u91cf\u6570\u636e\u4ea4\u4e92<\/strong>\u8bbe\u8ba1\u7684\u4e13\u7528\u7aef\u53e3\uff0c\u4e5f\u662f\u751f\u4ea7\u73af\u5883\u4e2d\u63a8\u8350\u4f7f\u7528\u7684\u63a5\u53e3\u65b9\u5f0f\u3002<\/li>\n\n\n\n<li>\u8c03\u8bd5\u9636\u6bb5\u53ef\u4ee5\u7528 6333 \u7aef\u53e3\u5feb\u901f\u9a8c\u8bc1\u529f\u80fd\uff0c\u4f46\u5728\u6b63\u5f0f\u4e0a\u7ebf\u7684\u9879\u76ee\u4e2d\uff0c\u5efa\u8bae\u4f7f\u7528 6334 \u7aef\u53e3\u7684 gRPC \u63a5\u53e3\uff0c\u80fd\u663e\u8457\u63d0\u5347\u670d\u52a1\u7684\u54cd\u5e94\u901f\u5ea6\u548c\u5e76\u53d1\u80fd\u529b\u3002<\/li>\n\n\n\n<li>Qdrant \u5b98\u65b9\u4e3a\u5404\u79cd\u7f16\u7a0b\u8bed\u8a00\uff08Python\u3001Go\u3001Java \u7b49\uff09\u63d0\u4f9b\u7684 SDK\uff0c\u5e95\u5c42\u9ed8\u8ba4\u4f18\u5148\u4f7f\u7528 gRPC \u534f\u8bae\uff08\u5373 6334 \u7aef\u53e3\uff09\uff0c\u53ea\u6709\u5728 gRPC \u4e0d\u53ef\u7528\u65f6\u624d\u964d\u7ea7\u5230 HTTP\u3002\u6bd4\u5982 Python \u7684\u00a0<code>qdrant-client<\/code>\u00a0\u5e93\uff0c\u53ea\u8981\u4f60\u914d\u7f6e\u7684\u5730\u5740\u5305\u542b 6334 \u7aef\u53e3\uff0c\u5c31\u4f1a\u81ea\u52a8\u7528 gRPC \u901a\u4fe1\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u3000\u3000<\/p>\n\n\n\n<p>\u2705 REST API\uff1ahttp:\/\/localhost:6333<br>\u2705 Dashboard\uff08Web UI\uff09\uff1ahttp:\/\/localhost:6333\/dashboard<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Qdrant \u7b80\u4ecb \ud83d\udd16 Qdrant \u662f\u4e00\u6b3e\u4e13\u4e3a\u4eba\u5de5\u667a\u80fd\u548c\u673a\u5668\u5b66\u4e60\u5e94\u7528\u8bbe\u8ba1\u7684\u5f00\u6e90\u5411\u91cf\u6570\u636e\u5e93\uff0c\u65e8\u5728\u63d0\u4f9b\u9ad8\u6548\u7684\u5411\u91cf [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48,23],"tags":[],"_links":{"self":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/19743"}],"collection":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=19743"}],"version-history":[{"count":5,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/19743\/revisions"}],"predecessor-version":[{"id":19748,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/19743\/revisions\/19748"}],"wp:attachment":[{"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=19743"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=19743"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=19743"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}