{"id":77757,"date":"2026-02-25T11:06:35","date_gmt":"2026-02-25T03:06:35","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/77757.html"},"modified":"2026-02-25T11:06:35","modified_gmt":"2026-02-25T03:06:35","slug":"%e3%80%90%e5%bf%85%e5%ad%a6%e5%b9%b2%e8%b4%a7%e3%80%91%e9%9d%a2%e5%90%91ai%e5%b0%8f%e7%99%bd%e5%92%8c%e7%a8%8b%e5%ba%8f%e5%91%98%ef%bc%9a%e4%b8%80%e6%96%87%e6%8e%8c%e6%8f%a1rag%e6%8a%80%e6%9c%af","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/77757.html","title":{"rendered":"\u3010\u5fc5\u5b66\u5e72\u8d27\u3011\u9762\u5411AI\u5c0f\u767d\u548c\u7a0b\u5e8f\u5458\uff1a\u4e00\u6587\u638c\u63e1RAG\u6280\u672f\uff0c\u624b\u628a\u624b\u6559\u4f60\u7528\u4e2a\u4eba\u6587\u6863\u642d\u5efa\u4f01\u4e1a\u7ea7\u77e5\u8bc6\u52a9\u624b\uff08\u5efa\u8bae\u6536\u85cf\uff09"},"content":{"rendered":"<p>\u9762\u5411\u60f3\u8f6c\u884c AI \u7684\u8f6f\u4ef6\u5de5\u7a0b\u5e08&#xff1a;\u8fd9\u4e00\u671f\u6211\u4eec\u805a\u7126\u300c\u68c0\u7d22\u589e\u5f3a\u751f\u6210\u300d&#xff08;RAG&#xff0c;Retrieval-Augmented Generation&#xff09;&#xff0c;\u4e3a\u4ec0\u4e48\u5b83\u6bd4\u5fae\u8c03\u66f4\u9002\u5408\u77e5\u8bc6\u95ee\u7b54\u573a\u666f&#xff0c;RAG \u7684\u5b8c\u6574\u6280\u672f\u94fe\u8def\u957f\u4ec0\u4e48\u6837&#xff0c;\u4ee5\u53ca\u5982\u4f55\u7528\u4e00\u4efd\u81ea\u5df1\u7684\u6587\u6863\u5728\u672c\u5730\u5feb\u901f\u642d\u4e00\u4e2a\u53ef\u7528\u3001\u53ef\u89e3\u91ca\u3001\u53ef\u6269\u5c55\u7684\u4f01\u4e1a\u77e5\u8bc6\u52a9\u624b\u3002<\/p>\n<hr \/>\n<h2>\u4e00\u3001\u4e3a\u5565\u51e0\u4e4e\u6240\u6709\u300c\u4f01\u4e1a\u77e5\u8bc6\u95ee\u7b54\u300d\u73b0\u5728\u90fd\u5728\u7528 RAG&#xff1f;<\/h2>\n<hr \/>\n<p>\u56de\u60f3\u8fd9\u4e24\u7c7b\u5178\u578b\u9700\u6c42&#xff1a;<\/p>\n<li>\u300c\u6211\u4eec\u6709\u4e00\u5806\u5185\u90e8\u6587\u6863 \/ \u5236\u5ea6 \/ \u624b\u518c&#xff0c;\u5e0c\u671b\u5458\u5de5\u53ef\u4ee5\u81ea\u7136\u8bed\u8a00\u63d0\u95ee\u300d<\/li>\n<li>\u300c\u60f3\u505a\u4e2a\u7ed9\u65b0\u540c\u4e8b\u770b\u7684\u6280\u672f\u52a9\u624b&#xff0c;\u80fd\u56de\u7b54\u6211\u4eec\u9879\u76ee\u3001\u4ee3\u7801\u89c4\u8303\u76f8\u5173\u95ee\u9898\u300d<\/li>\n<p>\u5f88\u591a\u56e2\u961f\u4e0a\u6765\u5c31\u8bf4&#xff1a;\u300c\u8981\u4e0d\u8981\u5fae\u8c03\u4e00\u4e2a\u5927\u6a21\u578b&#xff1f;\u300d<br \/>\n\u4f46\u771f\u5b9e\u843d\u5730\u65f6&#xff0c;\u4f60\u4f1a\u53d1\u73b0&#xff1a;<\/p>\n<ul>\n<li>\u6587\u6863\u7ecf\u5e38\u53d8&#xff1a;\u5236\u5ea6\u66f4\u65b0\u3001\u7248\u672c\u53d8\u66f4\u3001\u63a5\u53e3\u8c03\u6574<\/li>\n<li>\u5185\u5bb9\u8f83\u957f&#xff1a;\u624b\u518c\u52a8\u8f84\u51e0\u5341\u9875 PDF<\/li>\n<li>\u5bf9\u53ef\u63a7\u6027\u548c\u53ef\u89e3\u91ca\u6027\u8981\u6c42\u9ad8&#xff1a;\u8981\u80fd\u8ffd\u6eaf\u300c\u56de\u7b54\u6765\u81ea\u54ea\u6761\u6587\u6863\u300d<\/li>\n<\/ul>\n<p>\u8fd9\u6b63\u662f RAG \u64c5\u957f\u7684\u573a\u666f&#xff0c;\u4e00\u53e5\u8bdd\u6982\u62ec&#xff1a;<\/p>\n<p>RAG&#xff1a;\u4e0d\u6539\u6a21\u578b\u53c2\u6570&#xff0c;\u800c\u662f\u7ed9\u6a21\u578b\u63a5\u4e00\u4e2a\u300c\u5916\u90e8\u77e5\u8bc6\u5e93\u300d&#xff0c;\u8ba9\u5b83\u5148\u67e5\u518d\u7b54\u3002<\/p>\n<p>\u4ece\u5de5\u7a0b\u89c6\u89d2\u770b&#xff0c;\u76f8\u6bd4\u5fae\u8c03&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u6210\u672c\u66f4\u4f4e<\/p>\n<p>\u4e0d\u7528\u5927\u89c4\u6a21\u8bad\u7ec3&#xff0c;\u53ea\u9700\u505a\u5411\u91cf\u5316\u548c\u68c0\u7d22<\/p>\n<\/li>\n<li>\n<p>\u66f4\u65b0\u66f4\u5feb<\/p>\n<p>\u6587\u6863\u4e00\u6539\u3001\u5411\u91cf\u5e93\u91cd\u5efa \/ \u589e\u91cf\u66f4\u65b0&#xff0c;\u5f53\u5929\u5c31\u751f\u6548<\/p>\n<\/li>\n<li>\n<p>\u66f4\u5b89\u5168<\/p>\n<p>\u7406\u8bba\u4e0a\u77e5\u8bc6\u4e0d\u300c\u70e4\u8fdb\u300d\u6a21\u578b\u53c2\u6570&#xff0c;\u66f4\u65b9\u4fbf\u505a\u6743\u9650\u4e0e\u8131\u654f<\/p>\n<\/li>\n<li>\n<p>\u66f4\u53ef\u89e3\u91ca<\/p>\n<p>\u53ef\u4ee5\u628a\u5f15\u7528\u7684\u7247\u6bb5\u4e00\u8d77\u8fd4\u56de&#xff0c;\u65b9\u4fbf\u4eba\u5de5\u5ba1\u67e5<\/p>\n<\/li>\n<\/ul>\n<p>\u63a5\u4e0b\u6765\u6211\u4eec\u6309\u300c\u4e00\u4e2a\u5b8c\u6574\u9879\u76ee\u300d\u7684\u8def\u5f84\u6765\u62c6\u89e3 RAG\u3002<\/p>\n<hr \/>\n<h2>\u4e8c\u3001RAG \u7684\u4e94\u4e2a\u5173\u952e\u73af\u8282&#xff1a;\u4ece\u6587\u6863\u5230\u7b54\u6848\u7684\u6570\u636e\u6d41<\/h2>\n<hr \/>\n<p>\u5148\u7528\u4e00\u5f20\u300c\u6570\u636e\u6d41\u56fe\u300d\u5e2e\u4f60\u5efa\u7acb\u6574\u4f53\u5fc3\u667a\u6a21\u578b&#xff1a;<\/p>\n<p>\u539f\u59cb\u6587\u6863<br \/>\n\u2193 \u6587\u6863\u52a0\u8f7d&#xff08;Load&#xff09;<br \/>\n\u7eaf\u6587\u672c<br \/>\n\u2193 \u6587\u672c\u5207\u5206&#xff08;Chunking&#xff09;<br \/>\n\u8f83\u77ed\u7247\u6bb5<br \/>\n\u2193 \u5411\u91cf\u5316&#xff08;Embedding&#xff09;<br \/>\n\u5411\u91cf &#043; \u5143\u6570\u636e<br \/>\n\u2193 \u5411\u91cf\u5e93&#xff08;Vector Store&#xff09;<br \/>\n\u68c0\u7d22\u5230\u7684\u76f8\u5173\u7247\u6bb5<br \/>\n\u2193 \u63d0\u793a\u5de5\u7a0b &#043; LLM \u751f\u6210<br \/>\n\u6700\u7ec8\u56de\u7b54<\/p>\n<h4>1. \u6587\u6863\u52a0\u8f7d&#xff08;Load&#xff09;<\/h4>\n<ul>\n<li>\n<p>\u76ee\u6807&#xff1a;<\/p>\n<p>\u4ece\u5404\u79cd\u683c\u5f0f&#xff08;PDF\u3001Word\u3001Markdown\u3001\u7f51\u9875&#xff09;\u8bfb\u51fa\u7eaf\u6587\u672c &#043; \u5143\u6570\u636e<\/p>\n<\/li>\n<li>\n<p>\u5143\u6570\u636e\u5305\u62ec&#xff1a;<\/p>\n<\/li>\n<\/ul>\n<ul>\n<li>\u6765\u6e90\u6587\u4ef6\u540d<\/li>\n<li>\u9875\u7801 \/ \u7ae0\u8282<\/li>\n<li>\u521b\u5efa\u65f6\u95f4\u3001\u7248\u672c\u53f7\u7b49<\/li>\n<\/ul>\n<h4>2. \u6587\u672c\u5207\u5206&#xff08;Chunking&#xff09;<\/h4>\n<ul>\n<li>\u4e3a\u4ec0\u4e48\u8981\u5207&#xff1f;<\/li>\n<\/ul>\n<ul>\n<li>\u6587\u6863\u592a\u957f&#xff0c;\u6574\u7bc7\u653e\u8fdb context \u4f1a\u8d85 token \u9650\u5236<\/li>\n<li>\u68c0\u7d22\u65f6\u9700\u8981\u66f4\u7ec6\u7c92\u5ea6\u5339\u914d<\/li>\n<\/ul>\n<ul>\n<li>\u5e38\u89c1\u7b56\u7565&#xff1a;<\/li>\n<\/ul>\n<ul>\n<li>\u6309\u5b57\u7b26\u6570&#xff1a;\u6bd4\u5982\u6bcf 300\u2013800 \u5b57\u4e00\u7247<\/li>\n<li>\u5e26\u91cd\u53e0&#xff1a;\u6bcf\u7247\u4e4b\u95f4\u91cd\u53e0 50\u2013200 \u5b57&#xff0c;\u907f\u514d\u300c\u4e00\u53e5\u8bdd\u88ab\u5288\u5f00\u300d<\/li>\n<li>\u6309\u7ed3\u6784&#xff1a;\u6807\u9898\u3001\u6bb5\u843d\u3001\u4ee3\u7801\u5757\u4e3a\u5355\u4f4d<\/li>\n<\/ul>\n<h4>3. \u5411\u91cf\u5316&#xff08;Embedding&#xff09;<\/h4>\n<ul>\n<li>\u628a\u6bcf\u4e2a\u6587\u672c\u7247\u6bb5\u7f16\u7801\u6210\u4e00\u4e2a\u5411\u91cf&#xff08;\u9ad8\u7ef4\u6d6e\u70b9\u6570\u7ec4&#xff09;<\/li>\n<li>\u8ddd\u79bb \/ \u5939\u89d2\u8d8a\u5c0f&#xff0c;\u8bed\u4e49\u8d8a\u76f8\u8fd1<\/li>\n<li>\u672c\u8d28&#xff1a;\u7528\u4e00\u4e2a\u9884\u8bad\u7ec3\u7684 encoder \u6a21\u578b&#xff08;Embedding \u6a21\u578b&#xff09;<\/li>\n<\/ul>\n<h4>4. \u5411\u91cf\u5e93&#xff08;Vector Store&#xff09;<\/h4>\n<ul>\n<li>\u628a\u300c\u5411\u91cf &#043; \u539f\u59cb\u6587\u672c &#043; \u5143\u6570\u636e\u300d\u5b58\u8fdb\u53bb<\/li>\n<li>\u652f\u6301\u76f8\u4f3c\u5ea6\u68c0\u7d22&#xff1a;<\/li>\n<\/ul>\n<ul>\n<li>\u8f93\u5165\u4e00\u4e2a\u95ee\u9898 \u2192 \u7f16\u7801\u6210\u5411\u91cf \u2192 \u67e5\u6700\u8fd1\u7684 K \u4e2a\u7247\u6bb5<\/li>\n<\/ul>\n<ul>\n<li>\u5e38\u89c1\u5b9e\u73b0&#xff1a;<\/li>\n<\/ul>\n<ul>\n<li>FAISS&#xff08;\u8f7b\u91cf\u3001\u5355\u673a&#xff09;<\/li>\n<li>Chroma&#xff08;\u5f00\u6e90\u3001\u5e26\u7b80\u5355\u670d\u52a1&#xff09;<\/li>\n<li>Milvus \/ Pinecone&#xff08;\u4f01\u4e1a\u7ea7&#xff09;<\/li>\n<\/ul>\n<h4>5. \u68c0\u7d22 &#043; \u751f\u6210&#xff08;Retrieve &amp; Generate&#xff09;<\/h4>\n<ul>\n<li>\u7ed9\u5b9a\u7528\u6237\u95ee\u9898&#xff1a;<\/li>\n<\/ul>\n<li>\u7528 Embedding \u7f16\u7801\u95ee\u9898<\/li>\n<li>\u5728\u5411\u91cf\u5e93\u4e2d\u627e\u51fa\u6700\u76f8\u5173\u7684\u82e5\u5e72\u7247\u6bb5<\/li>\n<li>\u628a\u8fd9\u4e9b\u7247\u6bb5\u585e\u8fdb Prompt&#xff0c;\u8ba9 LLM \u57fa\u4e8e\u300c\u7ed9\u5b9a\u4e0a\u4e0b\u6587\u300d\u518d\u56de\u7b54<\/li>\n<hr \/>\n<h2>\u4e09\u3001RAG vs \u5fae\u8c03&#xff1a;\u5230\u5e95\u4ec0\u4e48\u65f6\u5019\u9009\u54ea\u4e2a&#xff1f;<\/h2>\n<hr \/>\n<p>\u4f60\u53ef\u4ee5\u7528\u4e0b\u9762\u8fd9\u5f20\u7b80\u5355\u5bf9\u6bd4\u6765\u8f85\u52a9\u51b3\u7b56&#xff1a;<\/p>\n<table>\n<tr>\u573a\u666f\u66f4\u9002\u5408\u5fae\u8c03\u66f4\u9002\u5408 RAG<\/tr>\n<tbody>\n<tr>\n<td>\u9700\u8981\u7edf\u4e00\u53e3\u543b \/ \u54c1\u724c\u98ce\u683c<\/td>\n<td>\u2705<\/td>\n<td>\u274c<\/td>\n<\/tr>\n<tr>\n<td>\u9700\u8981\u5b66\u4e60\u65b0\u4e1a\u52a1\u89c4\u5219 \/ \u8f93\u51fa\u683c\u5f0f<\/td>\n<td>\u2705<\/td>\n<td>\u2705&#xff08;Prompt &#043; \u6a21\u677f&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u77e5\u8bc6\u91cf\u5927\u4e14\u7ecf\u5e38\u53d8<\/td>\n<td>\u274c<\/td>\n<td>\u2705<\/td>\n<\/tr>\n<tr>\n<td>\u5bf9\u300c\u53ef\u89e3\u91ca\u6027\u300d\u8981\u6c42\u9ad8&#xff08;\u8981\u80fd\u770b\u5230\u5f15\u7528\u6587\u6863&#xff09;<\/td>\n<td>\u4e00\u822c<\/td>\n<td>\u2705<\/td>\n<\/tr>\n<tr>\n<td>\u6570\u636e\u6781\u96be\u8131\u654f&#xff08;\u4e0d\u80fd\u8fdb\u5165\u8bad\u7ec3\u96c6&#xff09;<\/td>\n<td>\u98ce\u9669\u8f83\u9ad8<\/td>\n<td>\u76f8\u5bf9\u5b89\u5168<\/td>\n<\/tr>\n<tr>\n<td>GPU \u8d44\u6e90\u6709\u9650<\/td>\n<td>\u5403\u529b<\/td>\n<td>\u53cb\u597d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5927\u90e8\u5206\u300c\u4f01\u4e1a\u77e5\u8bc6\u95ee\u7b54 \/ \u6587\u6863\u52a9\u624b \/ \u653f\u7b56\u89e3\u8bfb\u300d\u9879\u76ee&#xff0c;\u7b2c\u4e00\u6b65\u5e94\u8be5\u662f&#xff1a;<\/p>\n<p>\u5148\u7528 RAG \u505a\u8d77\u6765&#xff0c;\u6548\u679c\u786e\u5b9e\u4e0d\u591f\u3001\u518d\u8003\u8651\u914d\u5408\u5fae\u8c03\u3002<\/p>\n<hr \/>\n<h2>\u56db\u3001\u6280\u672f\u9009\u578b\u5efa\u8bae&#xff1a;Embedding\u3001\u5411\u91cf\u5e93\u3001LLM \u600e\u4e48\u9009&#xff1f;<\/h2>\n<hr \/>\n<h4>1. Embedding \u6a21\u578b<\/h4>\n<ul>\n<li>\u672c\u5730\u5f00\u6e90&#xff08;\u63a8\u8350\u5f00\u53d1\u73af\u5883\u4f7f\u7528&#xff09;&#xff1a;<\/li>\n<\/ul>\n<ul>\n<li>\n<p>sentence-transformers\/all-MiniLM-L6-v2<\/p>\n<p>\u4f53\u79ef\u5c0f\u3001\u6548\u679c\u4e0d\u9519\u3001\u975e\u5e38\u9002\u5408\u4f5c\u4e3a\u9ed8\u8ba4 Embedding \u6a21\u578b<\/p>\n<\/li>\n<\/ul>\n<ul>\n<li>\u4e91 API&#xff1a;<\/li>\n<\/ul>\n<ul>\n<li>OpenAI&#xff1a;text-embedding-3-small \/ text-embedding-3-large<\/li>\n<li>\u56fd\u4ea7&#xff1a;\u901a\u4e49\u3001\u667a\u8c31\u3001\u767e\u5ddd\u7b49\u4e5f\u6709\u5404\u81ea\u7684 embedding API<\/li>\n<\/ul>\n<p>\u5efa\u8bae&#xff1a;<\/p>\n<ul>\n<li>\u5f00\u53d1 \/ POC \u9636\u6bb5&#xff1a;\u4f18\u5148\u7528\u672c\u5730 MiniLM&#xff08;\u4e0d\u7528\u82b1\u94b1&#xff0c;\u4e0d\u53d7\u9650&#xff09;<\/li>\n<li>\u6b63\u5f0f\u73af\u5883&#xff1a;\u6309\u6210\u672c &#043; \u7cbe\u5ea6 &#043; \u5408\u89c4&#xff0c;\u7efc\u5408\u9009\u62e9\u4e91\u7aef\u6216\u81ea\u90e8\u7f72\u6a21\u578b<\/li>\n<\/ul>\n<h4>2. \u5411\u91cf\u5e93<\/h4>\n<ul>\n<li>\u5c0f\u56e2\u961f \/ \u5355\u673a&#xff1a;<\/li>\n<\/ul>\n<ul>\n<li>FAISS&#xff1a;\u65e0\u670d\u52a1\u4f9d\u8d56&#xff0c;\u5d4c\u5165\u4ee3\u7801\u91cc\u5c31\u884c<\/li>\n<li>Chroma&#xff1a;\u7b80\u5355\u6613\u7528&#xff0c;\u6301\u4e45\u5316\u65b9\u4fbf<\/li>\n<\/ul>\n<ul>\n<li>\u4f01\u4e1a\u7ea7&#xff1a;<\/li>\n<\/ul>\n<ul>\n<li>Milvus&#xff1a;\u56fd\u4ea7\u6210\u719f\u65b9\u6848&#xff0c;\u652f\u6301\u5206\u5e03\u5f0f<\/li>\n<li>Pinecone&#xff1a;SaaS&#xff0c;\u7b80\u5355\u4f46\u8d39\u7528\u8f83\u9ad8<\/li>\n<\/ul>\n<h4>3. LLM \u6a21\u578b<\/h4>\n<ul>\n<li>PoC \u9636\u6bb5<\/li>\n<\/ul>\n<ul>\n<li>GPT\u20114o \/ GPT\u20114o-mini&#xff1a;\u6548\u679c\u597d&#xff0c;\u96c6\u6210\u7b80\u5355<\/li>\n<\/ul>\n<ul>\n<li>\u5185\u90e8\u5e94\u7528<\/li>\n<\/ul>\n<ul>\n<li>\u901a\u4e49 Qwen\u3001\u667a\u8c31 GLM\u3001\u767e\u5ddd Baichuan \u7b49\u56fd\u4ea7\u6a21\u578b<\/li>\n<li>\u6216\u5f00\u6e90 LLaMA \/ Qwen \u5f00\u6e90\u7248\u672c\u5730\u90e8\u7f72<\/li>\n<\/ul>\n<p>\u4f60\u53ef\u4ee5\u628a\u300cEmbedding &#043; Vector Store\u300d\u8fd9\u5c42\u8bbe\u8ba1\u6210\u53ef\u63d2\u62d4&#xff0c;\u540e\u9762\u6362\u6a21\u578b\u65f6\u4ee3\u4ef7\u5c31\u5f88\u4f4e\u3002<\/p>\n<hr \/>\n<h2>\u4e94\u3001\u4ece 0 \u5230 1&#xff1a;\u7528 LangChain \u642d\u4e00\u4e2a\u4f01\u4e1a\u6587\u6863\u52a9\u624b<\/h2>\n<hr \/>\n<p>\u4e0b\u9762\u8fd9\u5957\u4ee3\u7801&#xff0c;\u4f60\u53ef\u4ee5\u7a0d\u505a\u8c03\u6574&#xff0c;\u5c31\u80fd\u53d8\u6210\u4f60\u4eec\u516c\u53f8\u7684\u300c\u77e5\u8bc6\u95ee\u7b54\u673a\u5668\u4eba\u300d\u3002<\/p>\n<h4>1. \u9879\u76ee\u76ee\u5f55\u5efa\u8bae<\/h4>\n<p>rag_demo\/<br \/>\n\u251c\u2500\u2500 docs\/                 # \u653e\u4f01\u4e1a\u6587\u6863&#xff08;pdf\/docx\/md\/txt&#xff09;<br \/>\n\u2502   \u251c\u2500\u2500 policy.md<br \/>\n\u2502   \u251c\u2500\u2500 tech_manual.pdf<br \/>\n\u2502   \u2514\u2500\u2500 code_guidelines.docx<br \/>\n\u251c\u2500\u2500 .env                  # API \u5bc6\u94a5\u914d\u7f6e<br \/>\n\u251c\u2500\u2500 rag_demo.py           # \u4e3b\u7a0b\u5e8f&#xff08;\u672c\u671f\u7ed9\u51fa\u7684\u793a\u4f8b&#xff09;<br \/>\n\u2514\u2500\u2500 requirements.txt<\/p>\n<p>requirements.txt \u5927\u81f4\u5305\u542b&#xff1a;<\/p>\n<p>langchain<br \/>\nlangchain-community<br \/>\nlangchain-openai<br \/>\nsentence-transformers<br \/>\nfaiss-cpu<br \/>\npython-dotenv<br \/>\ntqdm<\/p>\n<h4>2. .env \u793a\u4f8b&#xff08;\u4ee5 OpenAI \u4e3a\u4f8b&#xff09;<\/h4>\n<p>OPENAI_API_KEY&#061;sk-xxxxxx<\/p>\n<p>\u5982\u679c\u4f60\u7528\u56fd\u4ea7\u6a21\u578b \/ \u81ea\u90e8\u7f72 API&#xff0c;\u53ea\u8981\u5728 LangChain \u4e2d\u5207\u6362\u5bf9\u5e94\u7684 LLM \u7c7b &amp; base_url\/\u5bc6\u94a5\u5373\u53ef\u3002<\/p>\n<h4>3. \u6838\u5fc3\u4ee3\u7801\u7ed3\u6784\u8bf4\u660e (\u793a\u4f8b\u4ee3\u7801\u4e0d\u5728\u8fd9\u91cc\u7c98\u8d34&#xff0c;\u611f\u5174\u8da3\u7684\u8bdd\u53ef\u4ee5\u5728\u516c\u4f17\u53f7\u56de\u590d&#034;ragdemo&#034;\u83b7\u53d6)<\/h4>\n<p>\u4ee3\u7801\u4e3b\u8981\u5212\u5206\u4e3a 5 \u5757&#xff1a;<\/p>\n<li>\u52a0\u8f7d\u591a\u683c\u5f0f\u6587\u6863 \u2192 \u7edf\u4e00\u4e3a Document \u5217\u8868<\/li>\n<li>\u6587\u672c\u5207\u5206 \u2192 split_documents<\/li>\n<li>\u5efa Embedding \u6a21\u578b \u2192 get_embedding_model<\/li>\n<li>\u6784\u5efa\u5411\u91cf\u5e93 \u2192 build_vectorstore<\/li>\n<li>\u6784\u5efa RAG \u94fe \u2192 build_rag_chain&#xff08;\u68c0\u7d22 &#043; Prompt &#043; LLM&#xff09;<\/li>\n<p>\u6211\u5728\u793a\u4f8b\u91cc\u5df2\u7ecf\u7528 LangChain \u5199\u4e86\u4e00\u7248&#xff0c;\u4f60\u53ea\u9700\u8981&#xff1a;<\/p>\n<ul>\n<li>\u628a\u6587\u6863\u653e\u5230 docs\/<\/li>\n<li>\u586b\u597d .env<\/li>\n<li>\u8fd0\u884c python rag_demo.py<\/li>\n<\/ul>\n<p>\u5c31\u53ef\u4ee5\u5728\u7ec8\u7aef\u770b\u5230&#xff1a;<\/p>\n<ul>\n<li>AI \u56de\u7b54<\/li>\n<li>\u6a21\u578b\u5f15\u7528\u7684\u6587\u6863\u7247\u6bb5\u548c\u6765\u6e90\u6587\u4ef6\u540d&#xff08;\u65b9\u4fbf\u4f60\u9a8c\u8bc1&#xff09;<\/li>\n<\/ul>\n<hr \/>\n<h2>\u516d\u3001\u5982\u4f55\u628a\u8fd9\u4e2a Demo \u6539\u6210\u4f60\u81ea\u5df1\u7684\u300c\u4f01\u4e1a\u77e5\u8bc6\u52a9\u624b\u300d&#xff1f;<\/h2>\n<hr \/>\n<h4>1. \u6539 Prompt&#xff1a;\u8ba9\u5b83\u8bf4\u51fa\u4f60\u60f3\u8981\u7684\u98ce\u683c<\/h4>\n<p>\u5728 build_rag_chain \u91cc\u6709\u4e00\u6bb5\u6a21\u677f&#xff1a;<\/p>\n<p>template &#061; &#034;&#034;&#034;\u4f60\u662f\u4e00\u4e2a\u4f01\u4e1a\u6280\u672f\u6587\u6863\u52a9\u624b&#xff0c;\u8bf7\u6839\u636e\u4ee5\u4e0b\u4e0a\u4e0b\u6587\u56de\u7b54\u7528\u6237\u95ee\u9898\u3002<br \/>\n\u4e0a\u4e0b\u6587\u53ef\u80fd\u5305\u542b\u591a\u4e2a\u76f8\u5173\u7247\u6bb5&#xff0c;\u8bf7\u7efc\u5408\u6240\u6709\u4fe1\u606f\u7ed9\u51fa\u51c6\u786e\u3001\u7b80\u6d01\u7684\u56de\u7b54\u3002<br \/>\n\u5982\u679c\u4e0a\u4e0b\u6587\u4e0d\u8db3\u4ee5\u56de\u7b54&#xff0c;\u8bf7\u8bf4&#039;\u6211\u4e0d\u77e5\u9053&#039;\u3002<br \/>\n\u95ee\u9898: {question}<br \/>\n\u4e0a\u4e0b\u6587: {context}<br \/>\n\u4f60\u7684\u56de\u7b54:&#034;&#034;&#034;<\/p>\n<p>\u4f60\u53ef\u4ee5\u6539\u6210\u66f4\u8d34\u5408\u4f60\u4e1a\u52a1\u7684\u98ce\u683c&#xff0c;\u6bd4\u5982\u300c\u4e25\u8083\u6cd5\u5f8b\u987e\u95ee\u300d\u300c\u4e92\u8054\u7f51\u5ba2\u670d\u300d\u300c\u8d44\u6df1\u540e\u7aef\u67b6\u6784\u5e08\u300d\u7b49&#xff0c;\u5e76\u52a0\u5165\u4e00\u4e9b\u89c4\u5219&#xff1a;<\/p>\n<ul>\n<li>\u4e0d\u8981\u7f16\u9020\u653f\u7b56<\/li>\n<li>\u56de\u7b54\u4e2d\u5fc5\u987b\u9644\u4e0a\u51fa\u5904\u7ae0\u8282<\/li>\n<li>\u4e0d\u61c2\u5c31\u8bf4\u4e0d\u77e5\u9053&#xff0c;\u800c\u4e0d\u662f\u778e\u7f16<\/li>\n<\/ul>\n<h4>2. \u4f18\u5316 Chunk \u7b56\u7565<\/h4>\n<p>\u4e0d\u540c\u7c7b\u578b\u6587\u6863&#xff0c;\u7528\u4e0d\u540c\u5207\u5206\u65b9\u5f0f\u4f1a\u66f4\u597d&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u6280\u672f\u6587\u6863<\/p>\n<p>\u6309\u6807\u9898 \/ \u5c0f\u8282\u5206<\/p>\n<\/li>\n<li>\n<p>\u4ee3\u7801\u89c4\u8303<\/p>\n<p>\u6309\u300c\u7ae0\u8282 &#043; \u5c0f\u6807\u9898\u300d\u5207<\/p>\n<\/li>\n<li>\n<p>\u63a5\u53e3\u6587\u6863<\/p>\n<p>\u6309\u300c\u63a5\u53e3\u4e3a\u5355\u4f4d\u300d\u5207&#xff08;\u4e00\u4e2a\u63a5\u53e3\u4e00\u4e2a chunk&#xff09;<\/p>\n<\/li>\n<\/ul>\n<p>\u53ef\u4ee5\u901a\u8fc7\u8c03\u6574&#xff1a;<\/p>\n<ul>\n<li>chunk_size&#xff08;\u6bcf\u5757\u957f\u5ea6&#xff09;<\/li>\n<li>chunk_overlap&#xff08;\u91cd\u53e0\u90e8\u5206\u957f\u5ea6&#xff09;<\/li>\n<li>separators&#xff08;\u5207\u5206\u4f18\u5148\u7ea7&#xff09;<\/li>\n<\/ul>\n<p>\u9010\u6b65\u627e\u5230\u9002\u5408\u4f60\u6570\u636e\u7684\u7ec4\u5408\u3002<\/p>\n<h4>3. \u591a\u8f6e\u5bf9\u8bdd\u4e0e\u8bb0\u5fc6<\/h4>\n<p>\u5f53\u524d Demo \u662f\u300c\u5355\u95ee\u5355\u7b54\u300d&#xff0c;\u4f60\u53ef\u4ee5\u8fdb\u4e00\u6b65&#xff1a;<\/p>\n<ul>\n<li>\u628a\u5386\u53f2\u5bf9\u8bdd\u4f5c\u4e3a\u989d\u5916\u4e0a\u4e0b\u6587\u4f20\u5165<br \/>\n\u6216<\/li>\n<li>\u7528 LangChain \u7684 Memory \u7ec4\u4ef6\u7ef4\u62a4\u7b80\u5316\u7684\u5386\u53f2\u5bf9\u8bdd\u6458\u8981<\/li>\n<\/ul>\n<p>\u6ce8\u610f&#xff1a;\u5f53\u5386\u53f2\u8f83\u957f\u65f6&#xff0c;\u4ecd\u8981\u63a7\u5236 token \u6570&#xff0c;\u53ef\u4ee5\u8ba9 LLM \u5148\u4e3a\u5386\u53f2\u5bf9\u8bdd\u505a\u603b\u7ed3&#xff0c;\u518d\u5e26\u8fdb Prompt\u3002<\/p>\n<hr \/>\n<h2>\u4e03\u3001\u5e38\u89c1\u5751\u4e0e\u4f18\u5316\u5efa\u8bae<\/h2>\n<hr \/>\n<h4>1. \u300c\u6a21\u578b\u4e71\u56de\u7b54\u3001\u4e0d\u6309\u6587\u6863\u6765\u300d\u600e\u4e48\u529e&#xff1f;<\/h4>\n<ul>\n<li>\u5728 Prompt \u4e2d\u53cd\u590d\u5f3a\u8c03&#xff1a;<\/li>\n<\/ul>\n<ul>\n<li>\u5fc5\u987b\u4e25\u683c\u4f9d\u636e\u4e0a\u4e0b\u6587<\/li>\n<li>\u4e0d\u77e5\u9053\u5c31\u8bf4\u4e0d\u77e5\u9053<\/li>\n<li>\u4e0d\u8981\u51ed\u5e38\u8bc6\u7f16\u9020<\/li>\n<\/ul>\n<ul>\n<li>\u540c\u65f6&#xff1a;<\/li>\n<\/ul>\n<ul>\n<li>\u5c1d\u8bd5\u628a temperature \u8c03\u4f4e&#xff08;\u5982 0&#xff5e;0.3&#xff09;<\/li>\n<li>\u9002\u5f53\u589e\u52a0\u68c0\u7d22\u7247\u6bb5\u6570 k&#xff08;\u4f46\u4e0d\u8981\u592a\u5927&#xff0c;\u4ee5\u514d\u4e0a\u4e0b\u6587\u592a\u6742&#xff09;<\/li>\n<\/ul>\n<h4>2. \u300c\u68c0\u7d22\u4e0d\u51c6\u300d\u600e\u4e48\u529e&#xff1f;<\/h4>\n<p>\u53ef\u80fd\u539f\u56e0&#xff1a;<\/p>\n<li>\u6587\u672c\u5207\u5f97\u592a\u788e \/ \u592a\u6574&#xff1a;<\/li>\n<ul>\n<li>\u592a\u788e&#xff1a;\u5355\u4e2a chunk \u4fe1\u606f\u4e0d\u5b8c\u6574<\/li>\n<li>\u592a\u6574&#xff1a;\u5f88\u591a\u4e0d\u76f8\u5173\u5185\u5bb9\u6df7\u5728\u4e00\u8d77&#xff0c;\u5f71\u54cd\u5339\u914d<\/li>\n<\/ul>\n<li>Embedding \u6a21\u578b\u4e0d\u9002\u5408\u4f60\u7684\u8bed\u8a00 \/ \u9886\u57df<\/li>\n<li>\u68c0\u7d22\u53c2\u6570\u4e0d\u5408\u9002&#xff08;k \u592a\u5c0f\u6216\u592a\u5927&#xff09;<\/li>\n<p>\u4f18\u5316\u65b9\u5411&#xff1a;<\/p>\n<ul>\n<li>\u8c03\u6574 chunk_size&#xff08;\u4ece 300\u2013800 \u5b57\u8bd5\u8d77&#xff09;<\/li>\n<li>\u4f7f\u7528\u4e13\u95e8\u7684\u4e2d\u6587 Embedding \u6a21\u578b<\/li>\n<li>\u5c1d\u8bd5 MMR \u68c0\u7d22&#xff0c;\u51cf\u5c11\u5197\u4f59<\/li>\n<\/ul>\n<h4>3. \u6587\u6863\u9891\u7e41\u66f4\u65b0\u600e\u4e48\u529e&#xff1f;<\/h4>\n<ul>\n<li>\u5c0f\u89c4\u6a21&#xff1a;<\/li>\n<\/ul>\n<ul>\n<li>\u5b9a\u671f\u91cd\u65b0\u5411\u91cf\u5316 &amp; \u6784\u5efa\u5411\u91cf\u5e93<\/li>\n<\/ul>\n<ul>\n<li>\u4e2d\u5927\u578b&#xff1a;<\/li>\n<\/ul>\n<ul>\n<li>\u4e3a\u6bcf\u6761\u6587\u6863\u4fdd\u5b58\u552f\u4e00 ID<\/li>\n<li>\u5bf9\u53d8\u5316\u7684\u6587\u6863\u505a\u589e\u91cf\u66f4\u65b0&#xff08;\u5220\u9664\u65e7\u5411\u91cf\u3001\u63d2\u5165\u65b0\u5411\u91cf&#xff09;<\/li>\n<li>\u53ef\u4ee5\u914d\u5408\u7b80\u5355\u7684\u300c\u6587\u6863\u7248\u672c\u53f7\u300d\u7b56\u7565&#xff0c;\u907f\u514d\u9519\u7528\u65e7\u5185\u5bb9<\/li>\n<\/ul>\n<hr \/>\n<h2>\u516b\u3001\u7ed9\u4f60\u7684\u884c\u52a8\u5efa\u8bae<\/h2>\n<hr \/>\n<li>\u627e\u4e00\u6279\u4f60\u624b\u5934\u73b0\u6210\u7684\u6587\u6863<\/li>\n<ul>\n<li>\u6bd4\u5982&#xff1a;\u5165\u804c\u624b\u518c\u3001\u56e2\u961f\u9879\u76ee Wiki\u3001\u63a5\u53e3\u6587\u6863\u3001\u6280\u672f\u89c4\u8303<\/li>\n<li>\u81f3\u5c11\u51d1\u591f 10\u201320 \u4e2a\u6587\u6863\u6587\u4ef6&#xff0c;\u683c\u5f0f\u968f\u610f&#xff08;PDF\/Docx\/MD\/TXT&#xff09;<\/li>\n<\/ul>\n<li>\u7167\u7740\u672c\u671f\u4ee3\u7801\u642d\u4e00\u4e2a\u672c\u5730 RAG Demo<\/li>\n<ul>\n<li>\u5148\u53ea\u7528\u4e00\u4e2a LLM&#xff08;GPT \u6216\u4efb\u610f\u56fd\u4ea7 API&#xff09;<\/li>\n<li>\u5148\u8dd1\u901a\u300c\u80fd\u95ee\u80fd\u7b54\u300d&#xff0c;\u518d\u8c03 chunk \/ \u68c0\u7d22\u53c2\u6570<\/li>\n<\/ul>\n<li>\u62c9\u4e00\u4e2a\u540c\u4e8b\u4e00\u8d77\u5185\u6d4b<\/li>\n<ul>\n<li>\n<p>\u8ba9\u5bf9\u65b9\u7528\u81ea\u7136\u8bed\u8a00\u968f\u4fbf\u95ee&#xff0c;\u8bb0\u5f55\u54ea\u4e9b\u95ee\u9898\u7b54\u5f97\u4e0d\u597d<\/p>\n<\/li>\n<li>\n<p>\u5bf9\u6bcf\u4e2a\u300c\u5931\u8d25\u6848\u4f8b\u300d\u5224\u65ad\u662f&#xff1a;<\/p>\n<p>\u68c0\u7d22\u4e0d\u5230&#xff08;\u8bf4\u660e\u7d22\u5f15 \/ \u5207\u5206\u6709\u95ee\u9898&#xff09;&#xff0c;\u8fd8\u662f<\/p>\n<p>\u68c0\u7d22\u5230\u4e86\u4f46 LLM \u6ca1\u7528\u597d&#xff08;\u8bf4\u660e Prompt \/ LLM \u80fd\u529b\u4e0d\u8db3&#xff09;<\/p>\n<\/li>\n<\/ul>\n<h2>\u666e\u901a\u4eba\u5982\u4f55\u6293\u4f4fAI\u5927\u6a21\u578b\u7684\u98ce\u53e3&#xff1f;<\/h2>\n<p>\u9886\u53d6\u65b9\u5f0f\u5728\u6587\u672b<\/p>\n<h3>\u4e3a\u4ec0\u4e48\u8981\u5b66\u4e60\u5927\u6a21\u578b&#xff1f;<\/h3>\n<p>\u76ee\u524dAI\u5927\u6a21\u578b\u7684\u6280\u672f\u5c97\u4f4d\u4e0e\u80fd\u529b\u57f9\u517b\u968f\u7740\u4eba\u5de5\u667a\u80fd\u6280\u672f\u7684\u8fc5\u901f\u53d1\u5c55\u548c\u5e94\u7528 &#xff0c; \u5927\u6a21\u578b\u4f5c\u4e3a\u5176\u4e2d\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206 &#xff0c; \u6b63\u9010\u6e10\u6210\u4e3a\u63a8\u52a8\u4eba\u5de5\u667a\u80fd\u53d1\u5c55\u7684\u91cd\u8981\u5f15\u64ce \u3002\u5927\u6a21\u578b\u4ee5\u5176\u5f3a\u5927\u7684\u6570\u636e\u5904\u7406\u548c\u6a21\u5f0f\u8bc6\u522b\u80fd\u529b&#xff0c; \u5e7f\u6cdb\u5e94\u7528\u4e8e\u81ea\u7136\u8bed\u8a00\u5904\u7406 \u3001\u8ba1\u7b97\u673a\u89c6\u89c9 \u3001 \u667a\u80fd\u63a8\u8350\u7b49\u9886\u57df &#xff0c;\u4e3a\u5404\u884c\u5404\u4e1a\u5e26\u6765\u4e86\u9769\u547d\u6027\u7684\u6539\u53d8\u548c\u673a\u9047 \u3002<\/p>\n<p>\u76ee\u524d&#xff0c;\u5f00\u6e90\u4eba\u5de5\u667a\u80fd\u5927\u6a21\u578b\u5df2\u5e94\u7528\u4e8e\u533b\u7597\u3001\u653f\u52a1\u3001\u6cd5\u5f8b\u3001\u6c7d\u8f66\u3001\u5a31\u4e50\u3001\u91d1\u878d\u3001\u4e92\u8054\u7f51\u3001\u6559\u80b2\u3001\u5236\u9020\u4e1a\u3001\u4f01\u4e1a\u670d\u52a1\u7b49\u591a\u4e2a\u573a\u666f&#xff0c;\u5176\u4e2d&#xff0c;\u5e94\u7528\u4e8e\u91d1\u878d\u3001\u4f01\u4e1a\u670d\u52a1\u3001\u5236\u9020\u4e1a\u548c\u6cd5\u5f8b\u9886\u57df\u7684\u5927\u6a21\u578b\u5728\u672c\u6b21\u8c03\u7814\u4e2d\u5360\u6bd4\u8d85\u8fc7 30%\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260225030627-699e673396575.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u968f\u7740AI\u5927\u6a21\u578b\u6280\u672f\u7684\u8fc5\u901f\u53d1\u5c55&#xff0c;\u76f8\u5173\u5c97\u4f4d\u7684\u9700\u6c42\u4e5f\u65e5\u76ca\u589e\u52a0\u3002\u5927\u6a21\u578b\u4ea7\u4e1a\u94fe\u50ac\u751f\u4e86\u4e00\u6279\u9ad8\u85aa\u65b0\u804c\u4e1a&#xff1a;<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260225030627-699e6733da1a5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u4eba\u5de5\u667a\u80fd\u5927\u6f6e\u5df2\u6765&#xff0c;\u4e0d\u52a0\u5165\u5c31\u53ef\u80fd\u88ab\u6dd8\u6c70\u3002\u5982\u679c\u4f60\u662f\u6280\u672f\u4eba&#xff0c;\u5c24\u5176\u662f\u4e92\u8054\u7f51\u4ece\u4e1a\u8005&#xff0c;\u73b0\u5728\u5c31\u5f00\u59cb\u5b66\u4e60AI\u5927\u6a21\u578b\u6280\u672f&#xff0c;\u771f\u7684\u662f\u7ed9\u4f60\u7684\u4eba\u751f\u4e00\u4e2a\u91cd\u8981\u5efa\u8bae&#xff01;<\/p>\n<h2>\u6700\u540e<\/h2>\n<p>\u53ea\u8981\u4f60\u771f\u5fc3\u60f3\u5b66\u4e60AI\u5927\u6a21\u578b\u6280\u672f&#xff0c;\u8fd9\u4efd\u7cbe\u5fc3\u6574\u7406\u7684\u5b66\u4e60\u8d44\u6599\u6211\u613f\u610f\u65e0\u507f\u5206\u4eab\u7ed9\u4f60&#xff0c;\u4f46\u662f\u60f3\u5b66\u6280\u672f\u53bb\u4e71\u641e\u7684\u4eba\u522b\u6765\u627e\u6211&#xff01;<\/p>\n<p>\u5728\u5f53\u524d\u8fd9\u4e2a\u4eba\u5de5\u667a\u80fd\u9ad8\u901f\u53d1\u5c55\u7684\u65f6\u4ee3&#xff0c;AI\u5927\u6a21\u578b\u6b63\u5728\u6df1\u523b\u6539\u53d8\u5404\u884c\u5404\u4e1a\u3002\u6211\u56fd\u5bf9\u9ad8\u6c34\u5e73AI\u4eba\u624d\u7684\u9700\u6c42\u4e5f\u65e5\u76ca\u589e\u957f&#xff0c;\u771f\u6b63\u61c2\u6280\u672f\u3001\u80fd\u843d\u5730\u7684\u4eba\u624d\u4f9d\u65e7\u7d27\u7f3a\u3002\u6211\u4e5f\u5e0c\u671b\u901a\u8fc7\u8fd9\u4efd\u8d44\u6599&#xff0c;\u80fd\u591f\u5e2e\u52a9\u66f4\u591a\u6709\u5fd7\u4e8eAI\u9886\u57df\u7684\u670b\u53cb\u5165\u95e8\u5e76\u6df1\u5165\u5b66\u4e60\u3002<\/p>\n<p>\u771f\u8bda\u65e0\u507f\u5206\u4eab&#xff01;&#xff01;&#xff01;<br \/>\nvx\u626b\u63cf\u4e0b\u65b9\u4e8c\u7ef4\u7801\u5373\u53ef<br \/>\n\u52a0\u4e0a\u540e\u4f1a\u4e00\u4e2a\u4e2a\u7ed9\u5927\u5bb6\u53d1<br \/>\n\u3010\u9644\u8d60\u4e00\u8282\u514d\u8d39\u7684\u76f4\u64ad\u8bb2\u5ea7&#xff0c;\u6280\u672f\u5927\u4f6c\u5e26\u4f60\u5b66\u4e60\u5927\u6a21\u578b\u7684\u76f8\u5173\u77e5\u8bc6\u3001\u5b66\u4e60\u601d\u8def\u3001\u5c31\u4e1a\u524d\u666f\u4ee5\u53ca\u600e\u4e48\u7ed3\u5408\u5f53\u524d\u7684\u5de5\u4f5c\u53d1\u5c55\u65b9\u5411\u7b49&#xff0c;\u6b22\u8fce\u5927\u5bb6~\u3011<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260225030628-699e67341ce1a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u5927\u6a21\u578b\u5168\u5957\u5b66\u4e60\u8d44\u6599\u5c55\u793a<\/h3>\n<p>\u81ea\u6211\u4eec\u4e0eMoPaaS\u9b54\u6cca\u4e91\u5408\u4f5c\u4ee5\u6765&#xff0c;\u6211\u4eec\u4e0d\u65ad\u6253\u78e8\u8bfe\u7a0b\u4f53\u7cfb\u4e0e\u6280\u672f\u5185\u5bb9&#xff0c;\u5728\u7ec6\u8282\u4e0a\u7cbe\u76ca\u6c42\u7cbe&#xff0c;\u540c\u65f6\u5728\u6280\u672f\u5c42\u9762\u4e5f\u65b0\u589e\u4e86\u8bb8\u591a\u524d\u6cbf\u4e14\u5b9e\u7528\u7684\u5185\u5bb9&#xff0c;\u529b\u6c42\u4e3a\u5927\u5bb6\u5e26\u6765\u66f4\u7cfb\u7edf\u3001\u66f4\u5b9e\u6218\u3001\u66f4\u843d\u5730\u7684\u5927\u6a21\u578b\u5b66\u4e60\u4f53\u9a8c\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260225030629-699e67355cfa7.gif\" alt=\"\u56fe\u7247\" \/><\/p>\n<p>\u5e0c\u671b\u8fd9\u4efd\u7cfb\u7edf\u3001\u5b9e\u7528\u7684\u5927\u6a21\u578b\u5b66\u4e60\u8def\u5f84&#xff0c;\u80fd\u591f\u5e2e\u52a9\u4f60\u4ece\u96f6\u5165\u95e8&#xff0c;\u8fdb\u9636\u5230\u5b9e\u6218&#xff0c;\u771f\u6b63\u638c\u63e1AI\u65f6\u4ee3\u7684\u6838\u5fc3\u6280\u80fd&#xff01;<\/p>\n<h4>01 \u6559\u5b66\u5185\u5bb9<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260225030629-699e6735797ad.png\" alt=\"\u56fe\u7247\" \/><\/p>\n<ul>\n<li>\n<p>\u4ece\u96f6\u5230\u7cbe\u901a\u5b8c\u6574\u95ed\u73af&#xff1a;\u3010\u57fa\u7840\u7406\u8bba \u2192RAG\u5f00\u53d1 \u2192 Agent\u8bbe\u8ba1 \u2192  \u6a21\u578b\u5fae\u8c03\u4e0e\u79c1\u6709\u5316\u90e8\u7f72\u8c03\u2192\u70ed\u95e8\u6280\u672f\u30115\u5927\u6a21\u5757&#xff0c;\u5185\u5bb9\u6bd4\u4f20\u7edf\u6559\u6750\u66f4\u8d34\u8fd1\u4f01\u4e1a\u5b9e\u6218&#xff01;<\/p>\n<\/li>\n<li>\n<p>\u5927\u91cf\u771f\u5b9e\u9879\u76ee\u6848\u4f8b&#xff1a; \u5e26\u4f60\u4eb2\u81ea\u4e0a\u624b\u641e\u6570\u636e\u6e05\u6d17\u3001\u6a21\u578b\u8c03\u4f18\u8fd9\u4e9b\u786c\u6838\u64cd\u4f5c&#xff0c;\u628a\u8bfe\u672c\u77e5\u8bc6\u53d8\u6210\u771f\u672c\u4e8b\u200c&#xff01;<\/p>\n<\/li>\n<\/ul>\n<h4>02\u9002\u5b66\u4eba\u7fa4<\/h4>\n<p>\u5e94\u5c4a\u6bd5\u4e1a\u751f\u200c&#xff1a; \u65e0\u5de5\u4f5c\u7ecf\u9a8c\u4f46\u60f3\u8981\u7cfb\u7edf\u5b66\u4e60AI\u5927\u6a21\u578b\u6280\u672f&#xff0c;\u671f\u5f85\u901a\u8fc7\u5b9e\u6218\u9879\u76ee\u638c\u63e1\u6838\u5fc3\u6280\u672f\u3002<\/p>\n<p>\u96f6\u57fa\u7840\u8f6c\u578b\u200c&#xff1a; \u975e\u6280\u672f\u80cc\u666f\u4f46\u5173\u6ce8AI\u5e94\u7528\u573a\u666f&#xff0c;\u8ba1\u5212\u901a\u8fc7\u4f4e\u4ee3\u7801\u5de5\u5177\u5b9e\u73b0\u201cAI&#043;\u884c\u4e1a\u201d\u8de8\u754c\u200c\u3002<\/p>\n<p>\u4e1a\u52a1\u8d4b\u80fd\u7a81\u7834\u74f6\u9888&#xff1a; \u4f20\u7edf\u5f00\u53d1\u8005&#xff08;Java\/\u524d\u7aef\u7b49&#xff09;\u5b66\u4e60Transformer\u67b6\u6784\u4e0eLangChain\u6846\u67b6&#xff0c;\u5411AI\u5168\u6808\u5de5\u7a0b\u5e08\u8f6c\u578b\u200c\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260225030629-699e6735d5470.png\" alt=\"image.png\" \/><\/p>\n<p>vx\u626b\u63cf\u4e0b\u65b9\u4e8c\u7ef4\u7801\u5373\u53ef<br \/>\n\u3010\u9644\u8d60\u4e00\u8282\u514d\u8d39\u7684\u76f4\u64ad\u8bb2\u5ea7&#xff0c;\u6280\u672f\u5927\u4f6c\u5e26\u4f60\u5b66\u4e60\u5927\u6a21\u578b\u7684\u76f8\u5173\u77e5\u8bc6\u3001\u5b66\u4e60\u601d\u8def\u3001\u5c31\u4e1a\u524d\u666f\u4ee5\u53ca\u600e\u4e48\u7ed3\u5408\u5f53\u524d\u7684\u5de5\u4f5c\u53d1\u5c55\u65b9\u5411\u7b49&#xff0c;\u6b22\u8fce\u5927\u5bb6~\u3011<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260225030630-699e673615fa6.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u672c\u6559\u7a0b\u6bd4\u8f83\u73cd\u8d35&#xff0c;\u4ec5\u9650\u5927\u5bb6\u81ea\u884c\u5b66\u4e60&#xff0c;\u4e0d\u8981\u4f20\u64ad&#xff01;\u66f4\u4e25\u7981\u5546\u7528&#xff01;<\/p>\n<h4>03 \u5165\u95e8\u5230\u8fdb\u9636\u5b66\u4e60\u8def\u7ebf\u56fe<\/h4>\n<p>\u5927\u6a21\u578b\u5b66\u4e60\u8def\u7ebf\u56fe&#xff0c;\u6574\u4f53\u5206\u4e3a5\u4e2a\u5927\u7684\u9636\u6bb5&#xff1a;<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260225030631-699e67375ec28.png\" alt=\"\u56fe\u7247\" \/><\/p>\n<h4>04 \u89c6\u9891\u548c\u4e66\u7c4dPDF\u5408\u96c6<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260225030633-699e673929953.png\" alt=\"\u56fe\u7247\" \/><\/p>\n<p>\u4ece0\u5230\u638c\u63e1\u4e3b\u6d41\u5927\u6a21\u578b\u6280\u672f\u89c6\u9891\u6559\u7a0b&#xff08;\u6db5\u76d6\u6a21\u578b\u8bad\u7ec3\u3001\u5fae\u8c03\u3001RAG\u3001LangChain\u3001Agent\u5f00\u53d1\u7b49\u5b9e\u6218\u65b9\u5411&#xff09;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260225030633-699e673942149.png\" alt=\"\u56fe\u7247\" \/><\/p>\n<p>\u65b0\u624b\u5fc5\u5907\u7684\u5927\u6a21\u578b\u5b66\u4e60PDF\u4e66\u5355\u6765\u4e86&#xff01;\u5168\u662f\u786c\u6838\u77e5\u8bc6&#xff0c;\u5e2e\u4f60\u5c11\u8d70\u5f2f\u8def&#xff08;\u4e0d\u5439\u725b&#xff0c;\u771f\u6709\u7528&#xff09;<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260225030633-699e673979b2c.png\" alt=\"\u56fe\u7247\" \/><\/p>\n<h4>05 \u884c\u4e1a\u62a5\u544a&#043;\u767d\u76ae\u4e66\u5408\u96c6<\/h4>\n<p>\u6536\u96c670&#043;\u62a5\u544a\u4e0e\u767d\u76ae\u4e66&#xff0c;\u4e86\u89e3\u884c\u4e1a\u6700\u65b0\u52a8\u6001&#xff01;<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260225030633-699e6739a5451.png\" alt=\"\u56fe\u7247\" \/><\/p>\n<h4>06 90&#043;\u4efd\u9762\u8bd5\u9898\/\u7ecf\u9a8c<\/h4>\n<p>AI\u5927\u6a21\u578b\u5c97\u4f4d\u9762\u8bd5\u7ecf\u9a8c\u603b\u7ed3&#xff08;\u8c01\u5b66\u6280\u672f\u4e0d\u662f\u4e3a\u4e86\u8d5a$\u5462&#xff0c;\u627e\u4e2a\u597d\u7684\u5c97\u4f4d\u5f88\u91cd\u8981&#xff09;<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260225030633-699e6739e8c7d.gif\" alt=\"\u56fe\u7247\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260225030634-699e673a15b3c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>07 deepseek\u90e8\u7f72\u5305&#043;\u6280\u5de7\u5927\u5168<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260225030634-699e673aac842.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u7531\u4e8e\u7bc7\u5e45\u6709\u9650<\/p>\n<p>\u53ea\u5c55\u793a\u90e8\u5206\u8d44\u6599<\/p>\n<p>\u5e76\u4e14\u8fd8\u5728\u6301\u7eed\u66f4\u65b0\u4e2d\u2026<\/p>\n<p>\u771f\u8bda\u65e0\u507f\u5206\u4eab&#xff01;&#xff01;&#xff01;<br \/>\nvx\u626b\u63cf\u4e0b\u65b9\u4e8c\u7ef4\u7801\u5373\u53ef<br \/>\n\u52a0\u4e0a\u540e\u4f1a\u4e00\u4e2a\u4e2a\u7ed9\u5927\u5bb6\u53d1<br \/>\n\u3010\u9644\u8d60\u4e00\u8282\u514d\u8d39\u7684\u76f4\u64ad\u8bb2\u5ea7&#xff0c;\u6280\u672f\u5927\u4f6c\u5e26\u4f60\u5b66\u4e60\u5927\u6a21\u578b\u7684\u76f8\u5173\u77e5\u8bc6\u3001\u5b66\u4e60\u601d\u8def\u3001\u5c31\u4e1a\u524d\u666f\u4ee5\u53ca\u600e\u4e48\u7ed3\u5408\u5f53\u524d\u7684\u5de5\u4f5c\u53d1\u5c55\u65b9\u5411\u7b49&#xff0c;\u6b22\u8fce\u5927\u5bb6~\u3011<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260225030630-699e673615fa6.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9762\u5411\u60f3\u8f6c\u884c AI \u7684\u8f6f\u4ef6\u5de5\u7a0b\u5e08&#xff1a;\u8fd9\u4e00\u671f\u6211\u4eec\u805a\u7126\u300c\u68c0\u7d22\u589e\u5f3a\u751f\u6210\u300d&#xff08;RAG&#xff0c;Retrieval-Augmented Generation&#xff09;&#xff0c;\u4e3a\u4ec0\u4e48\u5b83\u6bd4\u5fae\u8c03\u66f4\u9002\u5408\u77e5\u8bc6\u95ee\u7b54\u573a\u666f&#xff0c;RAG \u7684\u5b8c\u6574\u6280\u672f\u94fe\u8def\u957f\u4ec0\u4e48\u6837&#xff0c;\u4ee5\u53ca\u5982\u4f55\u7528\u4e00\u4efd\u81ea\u5df1\u7684\u6587\u6863\u5728\u672c\u5730\u5feb\u901f\u642d\u4e00\u4e2a\u53ef\u7528\u3001\u53ef\u89e3\u91ca\u3001\u53ef\u6269\u5c55\u7684\u4f01\u4e1a\u77e5\u8bc6\u52a9\u624b\u3002\u4e00\u3001\u4e3a\u5565\u51e0\u4e4e\u6240\u6709\u300c\u4f01\u4e1a\u77e5\u8bc6\u95ee\u7b54\u300d\u73b0\u5728\u90fd\u5728\u7528 RAG&#xff1f;\u56de\u60f3\u8fd9\u4e24\u7c7b\u5178\u578b\u9700\u6c42&#xff1a;<br \/>\n\u300c<\/p>\n","protected":false},"author":2,"featured_media":77742,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[74,66,50,132,86,958,4847],"topic":[],"class_list":["post-77757","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-agent","tag-ai","tag-50","tag-132","tag-86","tag-958","tag-4847"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u5fc5\u5b66\u5e72\u8d27\u3011\u9762\u5411AI\u5c0f\u767d\u548c\u7a0b\u5e8f\u5458\uff1a\u4e00\u6587\u638c\u63e1RAG\u6280\u672f\uff0c\u624b\u628a\u624b\u6559\u4f60\u7528\u4e2a\u4eba\u6587\u6863\u642d\u5efa\u4f01\u4e1a\u7ea7\u77e5\u8bc6\u52a9\u624b\uff08\u5efa\u8bae\u6536\u85cf\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/77757.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u5fc5\u5b66\u5e72\u8d27\u3011\u9762\u5411AI\u5c0f\u767d\u548c\u7a0b\u5e8f\u5458\uff1a\u4e00\u6587\u638c\u63e1RAG\u6280\u672f\uff0c\u624b\u628a\u624b\u6559\u4f60\u7528\u4e2a\u4eba\u6587\u6863\u642d\u5efa\u4f01\u4e1a\u7ea7\u77e5\u8bc6\u52a9\u624b\uff08\u5efa\u8bae\u6536\u85cf\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u9762\u5411\u60f3\u8f6c\u884c AI \u7684\u8f6f\u4ef6\u5de5\u7a0b\u5e08&#xff1a;\u8fd9\u4e00\u671f\u6211\u4eec\u805a\u7126\u300c\u68c0\u7d22\u589e\u5f3a\u751f\u6210\u300d&#xff08;RAG&#xff0c;Retrieval-Augmented Generation&#xff09;&#xff0c;\u4e3a\u4ec0\u4e48\u5b83\u6bd4\u5fae\u8c03\u66f4\u9002\u5408\u77e5\u8bc6\u95ee\u7b54\u573a\u666f&#xff0c;RAG \u7684\u5b8c\u6574\u6280\u672f\u94fe\u8def\u957f\u4ec0\u4e48\u6837&#xff0c;\u4ee5\u53ca\u5982\u4f55\u7528\u4e00\u4efd\u81ea\u5df1\u7684\u6587\u6863\u5728\u672c\u5730\u5feb\u901f\u642d\u4e00\u4e2a\u53ef\u7528\u3001\u53ef\u89e3\u91ca\u3001\u53ef\u6269\u5c55\u7684\u4f01\u4e1a\u77e5\u8bc6\u52a9\u624b\u3002\u4e00\u3001\u4e3a\u5565\u51e0\u4e4e\u6240\u6709\u300c\u4f01\u4e1a\u77e5\u8bc6\u95ee\u7b54\u300d\u73b0\u5728\u90fd\u5728\u7528 RAG&#xff1f;\u56de\u60f3\u8fd9\u4e24\u7c7b\u5178\u578b\u9700\u6c42&#xff1a; \u300c\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/77757.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-25T03:06:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260225030627-699e673396575.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/77757.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/77757.html\",\"name\":\"\u3010\u5fc5\u5b66\u5e72\u8d27\u3011\u9762\u5411AI\u5c0f\u767d\u548c\u7a0b\u5e8f\u5458\uff1a\u4e00\u6587\u638c\u63e1RAG\u6280\u672f\uff0c\u624b\u628a\u624b\u6559\u4f60\u7528\u4e2a\u4eba\u6587\u6863\u642d\u5efa\u4f01\u4e1a\u7ea7\u77e5\u8bc6\u52a9\u624b\uff08\u5efa\u8bae\u6536\u85cf\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-25T03:06:35+00:00\",\"dateModified\":\"2026-02-25T03:06:35+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/77757.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/77757.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/77757.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u5fc5\u5b66\u5e72\u8d27\u3011\u9762\u5411AI\u5c0f\u767d\u548c\u7a0b\u5e8f\u5458\uff1a\u4e00\u6587\u638c\u63e1RAG\u6280\u672f\uff0c\u624b\u628a\u624b\u6559\u4f60\u7528\u4e2a\u4eba\u6587\u6863\u642d\u5efa\u4f01\u4e1a\u7ea7\u77e5\u8bc6\u52a9\u624b\uff08\u5efa\u8bae\u6536\u85cf\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010\u5fc5\u5b66\u5e72\u8d27\u3011\u9762\u5411AI\u5c0f\u767d\u548c\u7a0b\u5e8f\u5458\uff1a\u4e00\u6587\u638c\u63e1RAG\u6280\u672f\uff0c\u624b\u628a\u624b\u6559\u4f60\u7528\u4e2a\u4eba\u6587\u6863\u642d\u5efa\u4f01\u4e1a\u7ea7\u77e5\u8bc6\u52a9\u624b\uff08\u5efa\u8bae\u6536\u85cf\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/77757.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u5fc5\u5b66\u5e72\u8d27\u3011\u9762\u5411AI\u5c0f\u767d\u548c\u7a0b\u5e8f\u5458\uff1a\u4e00\u6587\u638c\u63e1RAG\u6280\u672f\uff0c\u624b\u628a\u624b\u6559\u4f60\u7528\u4e2a\u4eba\u6587\u6863\u642d\u5efa\u4f01\u4e1a\u7ea7\u77e5\u8bc6\u52a9\u624b\uff08\u5efa\u8bae\u6536\u85cf\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u9762\u5411\u60f3\u8f6c\u884c AI \u7684\u8f6f\u4ef6\u5de5\u7a0b\u5e08&#xff1a;\u8fd9\u4e00\u671f\u6211\u4eec\u805a\u7126\u300c\u68c0\u7d22\u589e\u5f3a\u751f\u6210\u300d&#xff08;RAG&#xff0c;Retrieval-Augmented Generation&#xff09;&#xff0c;\u4e3a\u4ec0\u4e48\u5b83\u6bd4\u5fae\u8c03\u66f4\u9002\u5408\u77e5\u8bc6\u95ee\u7b54\u573a\u666f&#xff0c;RAG \u7684\u5b8c\u6574\u6280\u672f\u94fe\u8def\u957f\u4ec0\u4e48\u6837&#xff0c;\u4ee5\u53ca\u5982\u4f55\u7528\u4e00\u4efd\u81ea\u5df1\u7684\u6587\u6863\u5728\u672c\u5730\u5feb\u901f\u642d\u4e00\u4e2a\u53ef\u7528\u3001\u53ef\u89e3\u91ca\u3001\u53ef\u6269\u5c55\u7684\u4f01\u4e1a\u77e5\u8bc6\u52a9\u624b\u3002\u4e00\u3001\u4e3a\u5565\u51e0\u4e4e\u6240\u6709\u300c\u4f01\u4e1a\u77e5\u8bc6\u95ee\u7b54\u300d\u73b0\u5728\u90fd\u5728\u7528 RAG&#xff1f;\u56de\u60f3\u8fd9\u4e24\u7c7b\u5178\u578b\u9700\u6c42&#xff1a; \u300c","og_url":"https:\/\/www.wsisp.com\/helps\/77757.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-25T03:06:35+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260225030627-699e673396575.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/77757.html","url":"https:\/\/www.wsisp.com\/helps\/77757.html","name":"\u3010\u5fc5\u5b66\u5e72\u8d27\u3011\u9762\u5411AI\u5c0f\u767d\u548c\u7a0b\u5e8f\u5458\uff1a\u4e00\u6587\u638c\u63e1RAG\u6280\u672f\uff0c\u624b\u628a\u624b\u6559\u4f60\u7528\u4e2a\u4eba\u6587\u6863\u642d\u5efa\u4f01\u4e1a\u7ea7\u77e5\u8bc6\u52a9\u624b\uff08\u5efa\u8bae\u6536\u85cf\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-25T03:06:35+00:00","dateModified":"2026-02-25T03:06:35+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/77757.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/77757.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/77757.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010\u5fc5\u5b66\u5e72\u8d27\u3011\u9762\u5411AI\u5c0f\u767d\u548c\u7a0b\u5e8f\u5458\uff1a\u4e00\u6587\u638c\u63e1RAG\u6280\u672f\uff0c\u624b\u628a\u624b\u6559\u4f60\u7528\u4e2a\u4eba\u6587\u6863\u642d\u5efa\u4f01\u4e1a\u7ea7\u77e5\u8bc6\u52a9\u624b\uff08\u5efa\u8bae\u6536\u85cf\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/77757","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=77757"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/77757\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/77742"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=77757"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=77757"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=77757"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=77757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}