{"id":14698,"date":"2024-12-03T10:07:11","date_gmt":"2024-12-03T02:07:11","guid":{"rendered":"https:\/\/www.aisharenet.com\/?p=14698"},"modified":"2025-07-16T13:30:00","modified_gmt":"2025-07-16T05:30:00","slug":"trieve","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/en\/trieve\/","title":{"rendered":"Trieve\uff1a\u63d0\u4f9b\u641c\u7d22\u3001\u63a8\u8350\u548c\u5206\u6790\u7684\u5168\u65b9\u4f4dRAG\u4e91\u57fa\u7840\u8bbe\u65bd"},"content":{"rendered":"<p>Trieve \u662f\u7531 Devflow, Inc. \u5f00\u53d1\u7684\u5168\u65b9\u4f4d\u57fa\u7840\u8bbe\u65bd\uff0c\u4e13\u4e3a\u641c\u7d22\u3001\u63a8\u8350\u3001RAG\uff08\u68c0\u7d22\u589e\u5f3a\u751f\u6210\uff09\u548c\u5206\u6790\u800c\u8bbe\u8ba1\u3002\u8be5\u5e73\u53f0\u901a\u8fc7 API \u63d0\u4f9b\u670d\u52a1\uff0c\u652f\u6301\u81ea\u6258\u7ba1\uff0c\u9002\u7528\u4e8e AWS\u3001GCP\u3001Kubernetes \u548c Docker Compose \u7b49\u73af\u5883\u3002Trieve \u96c6\u6210\u4e86 OpenAI \u548c Jina \u7684\u5d4c\u5165\u6a21\u578b\uff0c\u63d0\u4f9b\u8bed\u4e49\u5411\u91cf\u641c\u7d22\uff0c\u5e76\u652f\u6301\u9519\u522b\u5b57\u5bb9\u5fcd\u7684\u5168\u6587\u672c\/\u795e\u7ecf\u641c\u7d22\u3002\u5176\u63a8\u8350\u7cfb\u7edf\u80fd\u591f\u6839\u636e\u7528\u6237\u884c\u4e3a\u63d0\u4f9b\u4e2a\u6027\u5316\u5185\u5bb9\u63a8\u8350\uff0c\u589e\u5f3a\u7528\u6237\u4f53\u9a8c\u3002Trieve \u8fd8\u652f\u6301\u591a\u79cd\u8fc7\u6ee4\u548c\u5206\u7ec4\u529f\u80fd\uff0c\u786e\u4fdd\u641c\u7d22\u7ed3\u679c\u7684\u51c6\u786e\u6027\u548c\u76f8\u5173\u6027\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-14699\" title=\"Trieve\uff1a\u63d0\u4f9b\u641c\u7d22\u3001\u63a8\u8350\u548c\u5206\u6790\u7684\u5168\u65b9\u4f4dRAG\u4e91\u57fa\u7840\u8bbe\u65bd-1\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/77efe8ca79e28ae.png\" alt=\"Trieve\uff1a\u63d0\u4f9b\u641c\u7d22\u3001\u63a8\u8350\u548c\u5206\u6790\u7684\u5168\u65b9\u4f4dRAG\u4e91\u57fa\u7840\u8bbe\u65bd-1\" width=\"1920\" height=\"911\" srcset=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/77efe8ca79e28ae.png 1920w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/77efe8ca79e28ae-300x142.png 300w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/77efe8ca79e28ae-1024x486.png 1024w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/77efe8ca79e28ae-768x364.png 768w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/77efe8ca79e28ae-1536x729.png 1536w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/77efe8ca79e28ae-18x9.png 18w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>&nbsp;<\/p>\n<div id=\"attachment_14700\" style=\"width: 1543px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-14700\" class=\"wp-image-14700 size-full\" title=\"Trieve\uff1a\u63d0\u4f9b\u641c\u7d22\u3001\u63a8\u8350\u548c\u5206\u6790\u7684\u5168\u65b9\u4f4dRAG\u4e91\u57fa\u7840\u8bbe\u65bd-1\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/65f3bf22209880d.jpg\" alt=\"Trieve\uff1a\u63d0\u4f9b\u641c\u7d22\u3001\u63a8\u8350\u548c\u5206\u6790\u7684\u5168\u65b9\u4f4dRAG\u4e91\u57fa\u7840\u8bbe\u65bd-1\" width=\"1533\" height=\"1040\" srcset=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/65f3bf22209880d.jpg 1533w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/65f3bf22209880d-300x204.jpg 300w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/65f3bf22209880d-1024x695.jpg 1024w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/65f3bf22209880d-220x150.jpg 220w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/65f3bf22209880d-768x521.jpg 768w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/12\/65f3bf22209880d-18x12.jpg 18w\" sizes=\"auto, (max-width: 1533px) 100vw, 1533px\" \/><p id=\"caption-attachment-14700\" class=\"wp-caption-text\">\u5f00\u6e90PDF\u8f6cMarkdown\uff08<a class=\"flex items-center hover:text-magenta-500\" href=\"https:\/\/pdf2md.trieve.ai\/\"><span class=\"self-center text-lg md:text-2xl font-medium whitespace-nowrap\">PDF2MD<\/span><\/a>\uff09\uff1ahttps:\/\/github.com\/devflowinc\/trieve\/tree\/main\/pdf2md<\/p><\/div>\n<p>&nbsp;<\/p>\n<h2>\u529f\u80fd\u5217\u8868<\/h2>\n<ul>\n<li><strong>\u81ea\u6258\u7ba1<\/strong>\uff1a\u652f\u6301\u5728 VPC \u6216\u672c\u5730\u73af\u5883\u4e2d\u81ea\u6258\u7ba1\uff0c\u63d0\u4f9b\u8be6\u7ec6\u7684\u81ea\u6258\u7ba1\u6307\u5357\u3002<\/li>\n<li><strong>\u8bed\u4e49\u5411\u91cf\u641c\u7d22<\/strong>\uff1a\u96c6\u6210 OpenAI \u6216 Jina \u5d4c\u5165\u6a21\u578b\uff0c\u63d0\u4f9b\u9ad8\u8d28\u91cf\u7684\u8bed\u4e49\u5411\u91cf\u641c\u7d22\u3002<\/li>\n<li><strong>\u9519\u522b\u5b57\u5bb9\u5fcd\u641c\u7d22<\/strong>\uff1a\u4f7f\u7528 naver\/efficient-splade-VI-BT-large-query \u6a21\u578b\uff0c\u63d0\u4f9b\u9519\u522b\u5b57\u5bb9\u5fcd\u7684\u795e\u7ecf\u7a00\u758f\u5411\u91cf\u641c\u7d22\u3002<\/li>\n<li><strong>\u5b50\u53e5\u9ad8\u4eae<\/strong>\uff1a\u5728\u641c\u7d22\u7ed3\u679c\u4e2d\u9ad8\u4eae\u663e\u793a\u5339\u914d\u7684\u8bcd\u6216\u53e5\u5b50\uff0c\u63d0\u5347\u7528\u6237\u4f53\u9a8c\u3002<\/li>\n<li><strong>\u63a8\u8350\u7cfb\u7edf<\/strong>\uff1a\u6839\u636e\u7528\u6237\u884c\u4e3a\uff08\u5982\u6536\u85cf\u3001\u4e66\u7b7e\u3001\u70b9\u8d5e\uff09\u63d0\u4f9b\u4e2a\u6027\u5316\u63a8\u8350\u3002<\/li>\n<li><strong>RAG API \u8def\u7531<\/strong>\uff1a\u96c6\u6210 OpenRouter\uff0c\u63d0\u4f9b\u591a\u79cd LLM \u8bbf\u95ee\u9009\u9879\uff0c\u652f\u6301\u4e3b\u9898\u8bb0\u5fc6\u7ba1\u7406\u3002<\/li>\n<li><strong>\u6df7\u5408\u641c\u7d22<\/strong>\uff1a\u4f7f\u7528 BAAI\/bge-reranker-large \u8fdb\u884c\u91cd\u6392\u5e8f\u4f18\u5316\uff0c\u63d0\u4f9b\u6700\u4f73\u641c\u7d22\u7ed3\u679c\u3002<\/li>\n<li><strong>\u65b0\u9c9c\u5ea6\u504f\u5411<\/strong>\uff1a\u6839\u636e\u6700\u65b0\u5185\u5bb9\u8fdb\u884c\u641c\u7d22\u7ed3\u679c\u504f\u5411\uff0c\u9632\u6b62\u7ed3\u679c\u9648\u65e7\u3002<\/li>\n<li><strong>\u53ef\u8c03\u5546\u54c1\u5316<\/strong>\uff1a\u6839\u636e\u70b9\u51fb\u3001\u52a0\u5165\u8d2d\u7269\u8f66\u6216\u5f15\u7528\u7b49\u4fe1\u53f7\u8c03\u6574\u76f8\u5173\u6027\u3002<\/li>\n<li><strong>\u591a\u79cd\u8fc7\u6ee4<\/strong>\uff1a\u652f\u6301\u65e5\u671f\u8303\u56f4\u3001\u5b50\u5b57\u7b26\u4e32\u5339\u914d\u3001\u6807\u7b7e\u3001\u6570\u503c\u7b49\u591a\u79cd\u8fc7\u6ee4\u7c7b\u578b\u3002<\/li>\n<li><strong>\u5206\u7ec4\u529f\u80fd<\/strong>\uff1a\u652f\u6301\u5c06\u591a\u4e2a\u5757\u6807\u8bb0\u4e3a\u540c\u4e00\u6587\u4ef6\u7684\u4e00\u90e8\u5206\uff0c\u786e\u4fdd\u9876\u7ea7\u7ed3\u679c\u4e0d\u91cd\u590d\u51fa\u73b0\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>\u4f7f\u7528\u5e2e\u52a9<\/h2>\n<h3>\u5b89\u88c5\u6d41\u7a0b<\/h3>\n<ol>\n<li><strong>\u51c6\u5907\u73af\u5883<\/strong>\uff1a\u786e\u4fdd\u5b89\u88c5\u4e86\u5fc5\u8981\u7684\u8f6f\u4ef6\u5305\uff0c\u5982 curl\u3001gcc\u3001g++\u3001make\u3001pkg-config\u3001python3\u3001libpq-dev\u3001libssl-dev \u7b49\u3002<\/li>\n<li><strong>\u5b89\u88c5 NodeJS \u548c Yarn<\/strong>\uff1a\u4f7f\u7528 NVM \u5b89\u88c5 NodeJS LTS \u7248\u672c\uff0c\u5e76\u5168\u5c40\u5b89\u88c5 Yarn\u3002<\/li>\n<li><strong>\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<\/strong>\uff1a\u590d\u5236 .env \u6587\u4ef6\u5230\u76f8\u5e94\u76ee\u5f55\uff0c\u5e76\u6dfb\u52a0 OpenAI API \u5bc6\u94a5\u3002<\/li>\n<li><strong>\u542f\u52a8 Docker \u670d\u52a1<\/strong>\uff1a\u4f7f\u7528 docker-compose \u542f\u52a8\u6240\u9700\u7684\u5bb9\u5668\u670d\u52a1\u3002<\/li>\n<li><strong>\u672c\u5730\u5f00\u53d1<\/strong>\uff1a\u4f7f\u7528 tmuxp \u6216\u7ec8\u7aef\u6807\u7b7e\u7ba1\u7406\u672c\u5730\u5f00\u53d1\u670d\u52a1\uff0c\u542f\u52a8\u5404\u4e2a\u6a21\u5757\u3002<\/li>\n<\/ol>\n<h3>\u4f7f\u7528\u6307\u5357<\/h3>\n<ol>\n<li><strong>\u521b\u5efa\u8d26\u6237<\/strong>\uff1a\u8bbf\u95ee\u672c\u5730\u670d\u52a1\u5668\uff0c\u521b\u5efa\u8d26\u6237\u5e76\u4e0a\u4f20\u6d4b\u8bd5\u6570\u636e\u96c6\u3002<\/li>\n<li><strong>\u641c\u7d22\u6570\u636e\u96c6<\/strong>\uff1a\u4f7f\u7528\u672c\u5730\u670d\u52a1\u5668\u8fdb\u884c\u6570\u636e\u96c6\u641c\u7d22\uff0c\u9a8c\u8bc1\u8bbe\u7f6e\u662f\u5426\u6b63\u5e38\u5de5\u4f5c\u3002<\/li>\n<li><strong>\u8c03\u8bd5\u548c\u652f\u6301<\/strong>\uff1a\u5982\u9047\u5230\u95ee\u9898\uff0c\u53ef\u901a\u8fc7 Discord \u83b7\u53d6\u652f\u6301\uff0c\u6216\u4f7f\u7528 diesel::debug<em>query(&amp;query).to<\/em>string() \u8c03\u8bd5 SQL \u67e5\u8be2\u3002<\/li>\n<\/ol>\n<h3>\u4e3b\u8981\u529f\u80fd\u64cd\u4f5c\u6d41\u7a0b<\/h3>\n<ol>\n<li><strong>\u8bed\u4e49\u5411\u91cf\u641c\u7d22<\/strong>\uff1a\u4e0a\u4f20\u6570\u636e\u540e\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u8fdb\u884c\u5411\u91cf\u5316\u5904\u7406\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7 API \u8fdb\u884c\u8bed\u4e49\u641c\u7d22\u3002<\/li>\n<li><strong>\u63a8\u8350\u7cfb\u7edf<\/strong>\uff1a\u6839\u636e\u7528\u6237\u884c\u4e3a\u6570\u636e\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u751f\u6210\u63a8\u8350\u5185\u5bb9\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7 API \u83b7\u53d6\u63a8\u8350\u7ed3\u679c\u3002<\/li>\n<li><strong>RAG API \u8def\u7531<\/strong>\uff1a\u7528\u6237\u53ef\u4ee5\u9009\u62e9\u4e0d\u540c\u7684 LLM \u8fdb\u884c <a href=\"https:\/\/www.kdjingpai.com\/de\/rag\/\">RAG<\/a> \u64cd\u4f5c\uff0c\u7cfb\u7edf\u4f1a\u6839\u636e\u4e3b\u9898\u8bb0\u5fc6\u7ba1\u7406\u63d0\u4f9b\u6700\u4f73\u7ed3\u679c\u3002<\/li>\n<li><strong>\u6df7\u5408\u641c\u7d22<\/strong>\uff1a\u4f7f\u7528\u6df7\u5408\u641c\u7d22\u529f\u80fd\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u8fdb\u884c\u91cd\u6392\u5e8f\u4f18\u5316\uff0c\u63d0\u4f9b\u6700\u76f8\u5173\u7684\u641c\u7d22\u7ed3\u679c\u3002<\/li>\n<li><strong>\u8fc7\u6ee4\u548c\u5206\u7ec4<\/strong>\uff1a\u7528\u6237\u53ef\u4ee5\u6839\u636e\u9700\u8981\u8bbe\u7f6e\u4e0d\u540c\u7684\u8fc7\u6ee4\u6761\u4ef6\u548c\u5206\u7ec4\u65b9\u5f0f\uff0c\u786e\u4fdd\u641c\u7d22\u7ed3\u679c\u7684\u51c6\u786e\u6027\u548c\u76f8\u5173\u6027\u3002<\/li>\n<\/ol>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u8be6\u7ec6\u7684\u5b89\u88c5\u548c\u4f7f\u7528\u6307\u5357\uff0c\u7528\u6237\u53ef\u4ee5\u8f7b\u677e\u4e0a\u624b Trieve \u7684\u5404\u9879\u529f\u80fd\uff0c\u5145\u5206\u5229\u7528\u5176\u5f3a\u5927\u7684\u641c\u7d22\u3001\u63a8\u8350\u548c\u5206\u6790\u80fd\u529b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Trieve \u662f\u7531 Devflow, Inc. \u5f00\u53d1\u7684\u5168\u65b9\u4f4d\u57fa\u7840\u8bbe\u65bd\uff0c\u4e13\u4e3a\u641c\u7d22\u3001\u63a8\u8350\u3001RAG\uff08\u68c0\u7d22\u589e\u5f3a\u751f\u6210\uff09\u548c\u5206\u6790\u800c\u8bbe\u8ba1\u3002\u8be5\u5e73\u53f0\u901a\u8fc7 API \u63d0\u4f9b\u670d\u52a1\uff0c\u652f\u6301\u81ea\u6258\u7ba1\uff0c\u9002\u7528\u4e8e AWS\u3001GCP\u3001Kubernetes \u548c Docker Compos&#8230;<\/p>\n","protected":false},"author":1,"featured_media":32581,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[425,496,20],"tags":[208,252],"class_list":["post-14698","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-professional","category-ai-basic-services","category-tool","tag-aikaifangfuwu","tag-markdown"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts\/14698","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/comments?post=14698"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts\/14698\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/media\/32581"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/media?parent=14698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/categories?post=14698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/tags?post=14698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}