{"id":80119,"date":"2026-03-04T12:09:46","date_gmt":"2026-03-04T04:09:46","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/80119.html"},"modified":"2026-03-04T12:09:46","modified_gmt":"2026-03-04T04:09:46","slug":"%e5%9f%ba%e4%ba%8e-langchain-%e5%90%91%e9%87%8f%e6%a3%80%e7%b4%a2%e7%9a%84-bilibili-rag%ef%bc%9a%e5%a6%82%e4%bd%95%e7%94%a8%e4%bb%a3%e7%a0%81%e6%a6%a8%e5%b9%b2%e6%b5%81%e5%aa%92%e4%bd%93%e7%9a%84","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/80119.html","title":{"rendered":"\u57fa\u4e8e LangChain + \u5411\u91cf\u68c0\u7d22\u7684 Bilibili-RAG\uff1a\u5982\u4f55\u7528\u4ee3\u7801\u69a8\u5e72\u6d41\u5a92\u4f53\u7684\u4fe1\u606f\u5bc6\u5ea6\uff1f"},"content":{"rendered":"<h2>\u57fa\u4e8e LangChain &#043; \u5411\u91cf\u68c0\u7d22\u7684 Bilibili-RAG&#xff1a;\u5982\u4f55\u7528\u4ee3\u7801\u69a8\u5e72\u6d41\u5a92\u4f53\u7684\u4fe1\u606f\u5bc6\u5ea6&#xff1f;<\/h2>\n<p>\u5f53\u4f60\u8fd8\u5728\u5bf9\u7740B\u7ad9\u201c\u7a0d\u540e\u518d\u770b\u201d\u5217\u8868\u91cc\u51e0\u767e\u4e2a\u89c6\u9891\u671b\u6d0b\u5174\u53f9\u65f6&#xff0c;Bilibili-RAG \u5df2\u7ecf\u6084\u6084\u628a\u5b83\u4eec\u53d8\u6210\u4e86\u968f\u65f6\u5f85\u547d\u7684\u79c1\u4eba\u667a\u5e93&#xff1a;\u201c\u4f60\u4e0a\u4e2a\u6708\u6536\u85cf\u7684\u90a3\u4e2a\u4e24\u5c0f\u65f6AI\u8bb2\u5ea7&#xff0c;\u6211\u5df2\u7ecf\u5e2e\u4f60\u63d0\u70bc\u51fa\u6838\u5fc3\u4ee3\u7801\u903b\u8f91\u4e86&#xff0c;\u8981\u770b\u770b\u5417&#xff1f;\u201d<\/p>\n<h3>\u4e00\u3001\u4e00\u573a\u8ba9B\u7ad9\u201c\u5403\u7070\u6536\u85cf\u5939\u201d\u91cd\u83b7\u65b0\u751f\u7684\u5f00\u6e90\u98ce\u66b4<\/h3>\n<p>\u79d1\u6280\u5708\u548c\u5b66\u4e60\u5708\u7684\u5e73\u9759\u6b63\u5728\u88ab\u4e00\u4e2a\u540d\u4e3a Bilibili-RAG \u7684\u5f00\u6e90\u9879\u76ee\u6253\u7834\u3002\u5982\u679c\u4f60\u4e5f\u66fe\u9677\u5165\u201c\u6536\u85cf\u4ece\u672a\u505c\u6b62&#xff0c;\u5b66\u4e60\u4ece\u672a\u5f00\u59cb\u201d\u7684\u6b7b\u5faa\u73af&#xff0c;\u8fd9\u4e2a\u9879\u76ee\u5c06\u662f\u4f60\u7684\u7ec8\u6781\u6551\u8d4e\u3002<\/p>\n<p>GitHub\u4e0a\u51fa\u73b0\u7684\u8fd9\u4e2a\u7531\u5f00\u53d1\u8005 via007 \u6253\u9020\u7684\u4ed3\u5e93&#xff0c;\u6b63\u4ee5\u6781\u5feb\u7684\u901f\u5ea6\u5728\u6781\u5ba2\u548c\u5b66\u4e60\u8005\u7fa4\u4f53\u4e2d\u53e3\u53e3\u76f8\u4f20\u3002\u5b83\u4e0d\u4ec5\u662f\u4e00\u4e2a\u5de5\u5177&#xff0c;\u66f4\u662f\u5bf9\u5f53\u4e0b\u201c\u788e\u7247\u5316\u4fe1\u606f\u7126\u8651\u201d\u7684\u4e00\u573a\u7cbe\u51c6\u53cd\u51fb\u3002<\/p>\n<p>\u8fd9\u4e0d\u662f\u666e\u901a\u7684\u97f3\u89c6\u9891\u4e0b\u8f7d\u5668&#xff0c;\u8fd9\u662f\u77e5\u8bc6\u7ba1\u7406\u7684\u201c\u8d28\u53d8\u201d&#xff1a;<\/p>\n<ul>\n<li>&#x1f4c8; \u76f4\u51fb\u75db\u70b9\u7684\u521a\u9700&#xff1a; \u65e0\u8bba\u662f\u957f\u8fbe\u6570\u5c0f\u65f6\u7684\u6280\u672f\u6f14\u8bb2\u3001\u6df1\u5ea6\u7684\u64ad\u5ba2\u5bf9\u8c08&#xff0c;\u8fd8\u662f\u786c\u6838\u7684\u516c\u5f00\u8bfe&#xff0c;\u5b83\u90fd\u80fd\u77ac\u95f4\u6d88\u5316\u3002<\/li>\n<li>&#x1f31f; \u6301\u7eed\u6500\u5347\u7684\u5173\u6ce8\u5ea6&#xff1a; \u8fc5\u901f\u79ef\u7d2f\u7684\u6570\u767e\u4e2a Stars \u8bc1\u660e\u4e86\u5929\u4e0b\u82e6\u201c\u89c6\u9891\u4fe1\u606f\u5bc6\u5ea6\u4f4e\u201d\u4e45\u77e3\u3002<\/li>\n<li>&#x1f4bb; \u81ea\u52a8\u5316\u6d41\u6c34\u7ebf&#xff1a; \u626b\u7801\u767b\u5f55\u3001\u81ea\u52a8\u62c9\u53d6\u3001\u8bed\u97f3\u8f6c\u5199\u3001\u5411\u91cf\u5316\u5b58\u50a8&#xff0c;\u4e00\u6761\u9f99\u670d\u52a1\u76f4\u63a5\u5c06\u6d41\u5a92\u4f53\u8f6c\u5316\u4e3a\u53ef\u968f\u65f6\u5bf9\u8bdd\u7684\u77e5\u8bc6\u56fe\u8c31\u3002<\/li>\n<\/ul>\n<p>\u4f46\u6bd4\u8fd9\u4e9b\u529f\u80fd\u66f4\u60ca\u4eba\u7684&#xff0c;\u662f\u5b83\u5e26\u6765\u7684\u884c\u4e3a\u6a21\u5f0f\u6539\u53d8&#xff1a;<\/p>\n<p>\u201c\u8fd9\u624d\u662fB\u7ad9\u6b63\u786e\u7684\u6253\u5f00\u65b9\u5f0f\u3002\u201d \u201c\u4ee5\u524d\u662f\u9a6c\u51ac\u6885&#xff0c;\u73b0\u5728\u662f\u968f\u53eb\u968f\u5230\u7684\u79c1\u4eba\u52a9\u6559\u3002\u201d \u201c\u6211\u7684\u6536\u85cf\u5939\u7ec8\u4e8e\u6d3b\u8fc7\u6765\u4e86&#xff01;\u201d<\/p>\n<p>Bilibili-RAG \u5230\u5e95\u662f\u4ec0\u4e48&#xff1f;\u4e3a\u4ec0\u4e48\u5b83\u80fd\u89e3\u51b3\u77e5\u8bc6\u7ba1\u7406\u7684\u6838\u5fc3\u75db\u70b9&#xff1f;\u66f4\u91cd\u8981\u7684\u662f\u2014\u2014\u5b83\u5c06\u5982\u4f55\u98a0\u8986\u4f60\u7684\u5b66\u4e60\u5de5\u4f5c\u6d41&#xff1f;<\/p>\n<h3>\u4e8c\u3001Bilibili-RAG\u7684\u672c\u8d28&#xff1a;\u4e0d\u53ea\u662f\u89c6\u9891\u4e0b\u8f7d\u5668<\/h3>\n<p>\u5982\u679c\u8bf4B\u7ad9\u81ea\u5e26\u7684\u5404\u79cdAI\u603b\u7ed3\u63d2\u4ef6\u662f\u5e2e\u4f60\u201c\u770b\u4e2a\u5927\u6982\u201d\u7684\u5feb\u9910&#xff0c;\u90a3\u4e48 Bilibili-RAG \u5c31\u662f\u90a3\u4e2a\u5e2e\u4f60\u628a\u6240\u6709\u770b\u8fc7\u7684\u4e66\u7cbe\u8bfb\u3001\u5206\u7c7b\u3001\u5e76\u5efa\u7acb\u4ea4\u53c9\u7d22\u5f15\u7684\u8d34\u8eab\u5b66\u672f\u79d8\u4e66\u3002<\/p>\n<h4>2.1 \u4e00\u53e5\u8bdd\u5b9a\u4e49<\/h4>\n<p>Bilibili-RAG \u4e0d\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u89c6\u9891\u89e3\u6790\u811a\u672c&#xff0c;\u5b83\u662f\u4e00\u4e2a\u8fd0\u884c\u5728\u672c\u5730\u7684\u3001\u57fa\u4e8e RAG&#xff08;\u68c0\u7d22\u589e\u5f3a\u751f\u6210&#xff09;\u67b6\u6784\u7684\u4e13\u5c5e B\u7ad9\u5185\u5bb9\u4ea4\u4e92\u77e5\u8bc6\u5e93\u3002<\/p>\n<p>\u5e02\u9762\u4e0a\u7684AI\u89c6\u9891\u603b\u7ed3\u5de5\u5177\u5927\u591a\u505c\u7559\u5728\u201c\u5355\u70b9\u201d\u5c42\u9762&#xff1a;\u4f60\u7ed9\u4e00\u4e2a\u94fe\u63a5&#xff0c;\u5b83\u5410\u51fa\u4e00\u7bc7\u6458\u8981\u3002\u800c Bilibili-RAG \u7684\u8bbe\u8ba1\u54f2\u5b66\u662f \u201c\u5168\u5c40\u77e5\u8bc6\u7ec7\u7f51\u201d\u3002\u6211\u4eec\u7528\u4e09\u4e2a\u6838\u5fc3\u7ef4\u5ea6\u6765\u91cd\u65b0\u4e08\u91cf Bilibili-RAG \u4e0e\u4f20\u7edfAI\u5de5\u5177\u7684\u533a\u522b&#xff1a;<\/p>\n<table>\n<tr>\u7ef4\u5ea6\u4f20\u7edfAI\u603b\u7ed3\u63d2\u4ef6Bilibili-RAG \u7684\u53d8\u9769\u6838\u5fc3\u4ef7\u503c<\/tr>\n<tbody>\n<tr>\n<td>\u6570\u636e\u8303\u56f4<\/td>\n<td>Single-Video \u6bcf\u6b21\u53ea\u80fd\u5904\u7406\u5f53\u524d\u6b63\u5728\u64ad\u653e\u7684\u5355\u4e2a\u89c6\u9891\u3002<\/td>\n<td>Collection-Based \u76f4\u63a5\u6253\u901a\u4f60\u7684\u4e2a\u4eba\u6536\u85cf\u5939&#xff0c;\u8bfb\u53d6\u6574\u4e2a\u5217\u8868\u7684\u5185\u5bb9\u3002<\/td>\n<td>\u5168\u5c40\u89c6\u91ce \u8de8\u8d8a\u591a\u4e2a\u89c6\u9891\u7684\u4ea4\u53c9\u68c0\u7d22\u4e0e\u95ee\u7b54\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u5b58\u50a8\u6a21\u5f0f<\/td>\n<td>Cloud-Ephemeral \u603b\u7ed3\u5b8c\u5373\u8d70&#xff0c;\u5173\u95ed\u7f51\u9875\u540e\u6570\u636e\u968f\u4e4b\u6d88\u6563\u3002<\/td>\n<td>Local-Vectorized \u97f3\u9891\u8f6c\u6587\u5b57\u540e&#xff0c;\u751f\u6210\u5411\u91cf\u5e76\u6301\u4e45\u5316\u5b58\u50a8\u5728\u672c\u5730\u3002<\/td>\n<td>\u6570\u5b57\u8d44\u4ea7 \u6253\u9020\u8d8a\u7528\u8d8a\u806a\u660e\u7684\u79c1\u4eba\u6c89\u6dc0\u667a\u5e93\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u4ea4\u4e92\u6df1\u5ea6<\/td>\n<td>One-way Summary \u53ea\u80fd\u5355\u5411\u8f93\u51fa\u56fa\u5b9a\u7684\u65f6\u95f4\u8f74\u548c\u6982\u89c8\u5927\u7eb2\u3002<\/td>\n<td>Conversational RAG \u57fa\u4e8e\u8bed\u4e49\u68c0\u7d22\u7684\u591a\u8f6e\u5bf9\u8bdd&#xff0c;\u652f\u6301\u4fe1\u606f\u6eaf\u6e90\u3002<\/td>\n<td>\u8ffd\u6839\u6eaf\u6e90 \u4e0d\u4ec5\u56de\u7b54\u201c\u662f\u4ec0\u4e48\u201d&#xff0c;\u8fd8\u544a\u8bc9\u4f60\u201c\u89c6\u9891\u54ea\u4e00\u5206\u54ea\u4e00\u79d2\u8bb2\u7684\u201d\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>2.2 \u67b6\u6784\u63ed\u79d8&#xff1a;\u6570\u636e\u6d41\u8f6c\u7684\u5de5\u4e1a\u7ea7\u8bbe\u8ba1<\/h4>\n<p>Bilibili-RAG \u4e4b\u6240\u4ee5\u80fd\u4f18\u96c5\u5730\u5904\u7406\u5e9e\u6742\u7684\u97f3\u89c6\u9891\u6570\u636e&#xff0c;\u5f52\u529f\u4e8e\u5176\u6781\u5176\u6e05\u6670\u7684\u6570\u636e\u5904\u7406\u6d41\u6c34\u7ebf&#xff08;Pipeline&#xff09;\u3002<\/p>\n<p>Bilibili \u6536\u85cf\u5939 <span class=\"token punctuation\">(<\/span>Cloud<span class=\"token punctuation\">)<\/span><br \/>\n        \u2502<br \/>\n        \u25bc<br \/>\n\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n\u2502     \u97f3\u9891\u63d0\u53d6\u4e0e ASR \u8f6c\u5199\u533a     \u2502  \u2190 FFMPEG &#043; DashScope <span class=\"token punctuation\">(<\/span>Qwen<span class=\"token punctuation\">)<\/span><br \/>\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<br \/>\n               \u2502<br \/>\n      \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n      \u25bc        \u25bc        \u25bc<br \/>\n SQLite <span class=\"token punctuation\">(<\/span>\u5143\u6570\u636e<span class=\"token punctuation\">)<\/span>   ChromaDB <span class=\"token punctuation\">(<\/span>\u5411\u91cf\u5e93<span class=\"token punctuation\">)<\/span><br \/>\n      \u2502                 \u2502<br \/>\n      \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<br \/>\n              \u25bc<br \/>\n       LangChain \u5927\u8111 <span class=\"token punctuation\">(<\/span>RAG<span class=\"token punctuation\">)<\/span><br \/>\n              \u2502<br \/>\n              \u25bc<br \/>\n        Next.js \u4ea4\u4e92\u7ec8\u7aef<\/p>\n<h5>\u6838\u5fc3\u7ec4\u4ef6\u89e3\u6790&#xff1a;<\/h5>\n<p>1. ASR \u5f15\u64ce&#xff1a;\u4e0d\u77e5\u75b2\u5026\u7684\u201c\u901f\u8bb0\u5458\u201d \u9762\u5bf9 B \u7ad9\u590d\u6742\u7684\u97f3\u9891\u7f51\u7edc\u73af\u5883&#xff0c;\u5b83\u5185\u7f6e\u4e86\u6781\u5176\u7a33\u5065\u7684\u515c\u5e95\u673a\u5236\u3002\u4e00\u65e6\u9047\u5230\u76f4\u94fe\u9274\u6743\u6216 403 \u62e6\u622a&#xff0c;\u5b83\u4f1a\u81ea\u52a8\u8c03\u7528\u5e26\u6709 Cookie \u7684\u672c\u5730\u4e0b\u8f7d\u6d41\u7a0b&#xff0c;\u5e76\u901a\u8fc7\u5e95\u5c42 ffmpeg \u5c06\u5176\u91cd\u91c7\u6837\u4e3a 16k \u5355\u58f0\u9053\u6807\u51c6\u97f3\u9891&#xff0c;\u518d\u9001\u5165\u5927\u6a21\u578b\u8fdb\u884c\u7cbe\u51c6\u8f6c\u5199\u3002<\/p>\n<p>2. \u5411\u91cf\u4e2d\u67a2&#xff1a;\u8de8\u6a21\u6001\u7684\u201c\u8bb0\u5fc6\u5bab\u6bbf\u201d \u63d0\u53d6\u7684\u6587\u5b57\u4e0d\u4f1a\u53d8\u6210\u6b7b\u677f\u7684 txt \u6587\u4ef6&#xff0c;\u800c\u662f\u901a\u8fc7 Embedding \u6a21\u578b\u8f6c\u5316\u4e3a\u9ad8\u7ef4\u5411\u91cf&#xff0c;\u5b58\u5165\u672c\u5730\u7684 ChromaDB\u3002\u8fd9\u610f\u5473\u7740\u5b83\u7406\u89e3\u7684\u662f\u201c\u8bed\u4e49\u201d\u800c\u975e\u6b7b\u677f\u7684\u201c\u5173\u952e\u8bcd\u201d\u3002<\/p>\n<p>3. \u5bf9\u8bdd\u5927\u8111&#xff1a;\u57fa\u4e8e\u4e8b\u5b9e\u7684\u201c\u7b54\u7591\u8005\u201d \u5229\u7528 LangChain \u4e32\u8054&#xff0c;\u6bcf\u4e00\u6b21\u63d0\u95ee\u90fd\u4f1a\u5148\u4ece ChromaDB \u4e2d\u53ec\u56de\u6700\u76f8\u5173\u7684\u89c6\u9891\u539f\u8bdd\u7247\u6bb5&#xff0c;\u518d\u8ba9 LLM&#xff08;\u5982 Qwen&#xff09;\u57fa\u4e8e\u8fd9\u4e9b\u7247\u6bb5\u751f\u6210\u7b54\u6848&#xff0c;\u5f7b\u5e95\u675c\u7edd\u4e86 AI \u7684\u201c\u5e7b\u89c9\u201d\u3002<\/p>\n<h4>2.3 \u67b6\u6784\u521b\u65b0&#xff1a;\u5de5\u4e1a\u7ea7 ASR \u515c\u5e95\u72b6\u6001\u673a (\u9ad8\u53ef\u7528\u6570\u636e\u7ba1\u9053)<\/h4>\n<p>\u6807\u7b7e&#xff1a;[\u5de5\u7a0b\u9c81\u68d2\u6027 \/ \u7834\u9664\u6570\u636e\u5b64\u5c9b]<\/p>\n<p>\u6df1\u5ea6\u89e3\u6790&#xff1a; \u4f20\u7edf\u7684\u89c6\u9891\u89e3\u6790\u5de5\u5177\u5f80\u5f80\u6781\u5ea6\u4f9d\u8d56\u5e73\u53f0\u7684\u5f00\u653e\u63a5\u53e3&#xff0c;\u4e00\u65e6\u9047\u5230 B \u7ad9\u4e25\u683c\u7684\u52a8\u6001\u9274\u6743\u6216\u9632\u76d7\u94fe\u673a\u5236&#xff08;\u5e38\u89e6\u53d1 403 \u9519\u8bef&#xff09;&#xff0c;\u7cfb\u7edf\u5c31\u4f1a\u76f4\u63a5\u5d29\u6e83\u3002Bilibili-RAG \u5f15\u5165\u4e86\u4e00\u5957\u9ad8\u53ef\u7528\u7684\u72b6\u6001\u673a\u8def\u7531\u673a\u5236&#xff0c;\u786e\u4fdd\u201c\u53ea\u8981\u89c6\u9891\u5728&#xff0c;\u6570\u636e\u5c31\u80fd\u62a0\u51fa\u6765\u201d\u3002<\/p>\n<ul>\n<li>\u52a8\u6001\u8def\u7531\u4e0e\u515c\u5e95 (Fallback Strategy)&#xff1a; \u7cfb\u7edf\u4f18\u5148\u5c1d\u8bd5\u4f4e\u6210\u672c\u7684\u516c\u7f51\u76f4\u8fde\u62c9\u53d6&#xff1b;\u82e5\u906d\u9047 403 \u62e6\u622a&#xff0c;\u5f15\u64ce\u4f1a\u81ea\u52a8\u65e0\u7f1d\u964d\u7ea7&#xff0c;\u6302\u8f7d\u672c\u5730 Cookie \u6a21\u62df\u771f\u5b9e\u7528\u6237\u8fdb\u884c\u5e95\u5c42\u4e0b\u8f7d\u3002<\/li>\n<li>\u6807\u51c6\u5316\u91cd\u91c7\u6837 (Audio Processing)&#xff1a; \u9762\u5bf9\u7f51\u7edc\u4e0a\u5343\u5947\u767e\u602a\u7684\u89c6\u9891\u5c01\u88c5\u683c\u5f0f&#xff08;\u591a\u8f68 mkv\u3001\u5947\u8469\u7f16\u7801 mp4&#xff09;&#xff0c;\u7cfb\u7edf\u5e76\u6ca1\u6709\u76f4\u63a5\u5c06\u539f\u59cb\u6587\u4ef6\u4e22\u7ed9\u5927\u6a21\u578b\u3002\u800c\u662f\u901a\u8fc7\u5e95\u5c42\u7684 ffmpeg \u8fdb\u884c\u5f3a\u5236\u5e72\u9884&#xff0c;\u7edf\u4e00\u91cd\u91c7\u6837\u5e76\u6df7\u97f3\u4e3a 16kHz \u7684\u5355\u58f0\u9053\u6807\u51c6\u97f3\u9891\u6d41\u3002\u8fd9\u79cd\u9884\u5904\u7406\u4e0d\u4ec5\u5c06\u7f51\u7edc IO \u538b\u529b\u964d\u5230\u6700\u4f4e&#xff0c;\u66f4\u8ba9\u540e\u7eed\u7684 ASR (\u8bed\u97f3\u8bc6\u522b) \u51c6\u786e\u7387\u8fbe\u5230\u4e86\u6781\u9ad8\u6c34\u5e73\u3002<\/li>\n<\/ul>\n<p>\u591a\u7ea7 ASR \u515c\u5e95\u63d0\u53d6\u6d41\u6811\u5f62\u56fe&#xff1a;<\/p>\n<p><span class=\"token punctuation\">[<\/span>Bilibili-RAG \u6570\u636e\u7ba1\u9053\u67b6\u6784<span class=\"token punctuation\">]<\/span><br \/>\n\u2502<br \/>\n\u251c\u2500\u2500 \u8f93\u5165\u6d41 <span class=\"token punctuation\">(<\/span>Input Target<span class=\"token punctuation\">)<\/span><br \/>\n\u2502   \u2514\u2500\u2500 \u5305\u542b\u590d\u6742\u97f3\u9891\u6d41\u7684 B\u7ad9\u4e24\u5c0f\u65f6\u786c\u6838\u516c\u5f00\u8bfe<br \/>\n\u2502<br \/>\n\u25bc<br \/>\n<span class=\"token punctuation\">[<\/span><span class=\"token number\">1<\/span>. \u9274\u6743\u4e0e\u6293\u53d6\u5c42 <span class=\"token punctuation\">(<\/span>Network Routing<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">]<\/span><br \/>\n\u2502   \u251c\u2500\u2500 \u7b56\u7565 A <span class=\"token punctuation\">(<\/span>\u516c\u7f51\u76f4\u8fde<span class=\"token punctuation\">)<\/span>: \u5c1d\u8bd5\u65e0\u611f\u62c9\u53d6 \u2500\u2500<span class=\"token operator\">&gt;<\/span> <span class=\"token punctuation\">[<\/span>\u89e6\u53d1 <span class=\"token number\">403<\/span> \u9632\u76d7\u94fe \u274c<span class=\"token punctuation\">]<\/span><br \/>\n\u2502   \u2502<br \/>\n\u2502   \u2514\u2500\u2500 \u2605 \u7b56\u7565 B <span class=\"token punctuation\">(<\/span>Cookie \u515c\u5e95<span class=\"token punctuation\">)<\/span>: \u6fc0\u6d3b\u672c\u5730\u51ed\u8bc1<br \/>\n\u2502       \u251c\u2500\u2500 \u52a8\u4f5c: \u6a21\u62df\u5168\u91cf\u4e0b\u8f7d\u8bf7\u6c42<br \/>\n\u2502       \u251c\u2500\u2500 \u6548\u679c: \u6210\u529f\u7ed5\u8fc7\u98ce\u63a7\u83b7\u53d6\u539f\u59cb\u5a92\u4f53\u6d41 \u2705<br \/>\n\u2502       \u2514\u2500\u2500 \u610f\u4e49: \u5f7b\u5e95\u6253\u7834\u5e73\u53f0\u6570\u636e\u5c01\u95ed<br \/>\n\u2502<br \/>\n\u25bc<br \/>\n<span class=\"token punctuation\">[<\/span><span class=\"token number\">2<\/span>. \u97f3\u9891\u9884\u5904\u7406\u5c42 <span class=\"token punctuation\">(<\/span>FFmpeg Pipeline<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">]<\/span><br \/>\n\u2502   \u251c\u2500\u2500 \u539f\u59cb\u6587\u4ef6: 2GB MP4 <span class=\"token punctuation\">(<\/span>48kHz, \u53cc\u58f0\u9053, \u5939\u6742\u73af\u5883\u5e95\u566a<span class=\"token punctuation\">)<\/span><br \/>\n\u2502   \u2502<br \/>\n\u2502   \u251c\u2500\u2500 \u5f3a\u5236\u964d\u7ef4 <span class=\"token punctuation\">(<\/span>Standardization<span class=\"token punctuation\">)<\/span><br \/>\n\u2502   \u2502   \u251c\u2500\u2500 \u52a8\u4f5c <span class=\"token number\">1<\/span>: \u5265\u79bb\u89c6\u9891\u8f68\u9053&#xff0c;\u63d0\u53d6\u7eaf\u97f3\u9891<br \/>\n\u2502   \u2502   \u251c\u2500\u2500 \u52a8\u4f5c <span class=\"token number\">2<\/span>: Downsample &#8211;<span class=\"token operator\">&gt;<\/span> 16kHz<br \/>\n\u2502   \u2502   \u2514\u2500\u2500 \u52a8\u4f5c <span class=\"token number\">3<\/span>: \u6df7\u97f3 &#8211;<span class=\"token operator\">&gt;<\/span> \u5355\u58f0\u9053 <span class=\"token punctuation\">(<\/span>Mono<span class=\"token punctuation\">)<\/span><br \/>\n\u2502   \u2502<br \/>\n\u2502   \u2514\u2500\u2500 \u8f93\u51fa: \u4ec5 50MB \u7684\u6781\u81f4\u7eaf\u51c0\u8bed\u97f3\u6d41&#xff0c;\u5b8c\u7f8e\u5951\u5408\u5927\u6a21\u578b\u8f93\u5165\u6807\u51c6<br \/>\n\u2502<br \/>\n\u25bc<br \/>\n\u8f93\u51fa <span class=\"token punctuation\">(<\/span>ASR Output<span class=\"token punctuation\">)<\/span><br \/>\n\u2514\u2500\u2500 \u6781\u5176\u7cbe\u51c6\u7684\u9010\u5b57\u7a3f\u6587\u672c <span class=\"token punctuation\">(<\/span>\u5e26\u65f6\u95f4\u8f74\u6620\u5c04<span class=\"token punctuation\">)<\/span><\/p>\n<h4>2. \u8de8\u6a21\u6001\u964d\u7ef4&#xff1a;\u53cc\u8f68\u5236\u672c\u5730\u5411\u91cf\u5f15\u64ce (Semantic Vectorization)<\/h4>\n<p>\u6807\u7b7e&#xff1a;[\u4fe1\u606f\u964d\u7ef4 \/ \u8bed\u4e49\u7a7a\u95f4\u6784\u5efa]<\/p>\n<p>\u6df1\u5ea6\u89e3\u6790&#xff1a; \u4f20\u7edf\u7b14\u8bb0\u5de5\u5177&#xff08;\u5982 Notion \u6216\u672c\u5730 Markdown&#xff09;\u53ea\u80fd\u8fdb\u884c\u5b57\u9762\u91cf&#xff08;\u5173\u952e\u8bcd&#xff09;\u5339\u914d\u3002\u5982\u679c\u4f60\u5fd8\u4e86\u5f53\u65f6\u7684\u7cbe\u51c6\u672f\u8bed&#xff0c;\u90a3\u6761\u7b14\u8bb0\u5c31\u6c38\u8fdc\u201c\u6c89\u6ca1\u201d\u4e86\u3002Bilibili-RAG \u901a\u8fc7 Embedding \u6280\u672f&#xff0c;\u5c06\u957f\u89c6\u9891\u964d\u7ef4\u6210\u4e86\u9ad8\u7ef4\u8bed\u4e49\u7a7a\u95f4\u4e2d\u7684\u5750\u6807\u70b9\u3002<\/p>\n<ul>\n<li>\u8f7b\u91cf\u5316\u53cc\u8f68\u5b58\u50a8&#xff1a; \u5b83\u629b\u5f03\u4e86\u7b28\u91cd\u7684\u4f20\u7edf\u6570\u636e\u5e93&#xff0c;\u91c7\u7528 SQLite \u7ba1\u7406\u7ed3\u6784\u5316\u5143\u6570\u636e&#xff08;UP\u4e3b\u3001\u53d1\u5e03\u65f6\u95f4\u3001\u89c6\u9891\u65f6\u957f&#xff09;&#xff0c;\u540c\u65f6\u5229\u7528\u672c\u5730 ChromaDB \u4e13\u804c\u8d1f\u8d23\u9ad8\u7ef4\u5411\u91cf\u7684\u8ba1\u7b97\u4e0e\u6700\u8fd1\u90bb\u68c0\u7d22&#xff08;ANN&#xff09;\u3002<\/li>\n<li>\u6f5c\u7a7a\u95f4\u6f2b\u6e38 (Latent Space)&#xff1a; \u6587\u672c\u88ab\u5927\u6a21\u578b\u8f6c\u5316\u4e3a\u5411\u91cf\u540e&#xff0c;\u673a\u5668\u7406\u89e3\u7684\u662f\u201c\u4e0a\u4e0b\u6587\u8bed\u4e49\u201d\u3002\u5f53\u4f60\u641c\u7d22\u4e00\u4e2a\u5177\u4f53\u7684\u67b6\u6784\u75db\u70b9\u65f6&#xff0c;\u5373\u4fbf\u89c6\u9891\u6807\u9898\u548c\u7b80\u4ecb\u91cc\u6839\u672c\u6ca1\u6709\u8fd9\u4e9b\u5b57\u773c&#xff0c;ChromaDB \u4f9d\u7136\u80fd\u5728\u5411\u91cf\u7a7a\u95f4\u4e2d\u9501\u5b9a\u8ddd\u79bb\u6700\u8fd1\u7684\u90a3\u4e2a\u89c6\u9891\u5207\u7247\u3002<\/li>\n<\/ul>\n<p>\u53cc\u8f68\u5411\u91cf\u5316\u5b58\u50a8\u903b\u8f91\u6811\u5f62\u56fe&#xff1a;<\/p>\n<p><span class=\"token punctuation\">[<\/span>\u8de8\u6a21\u6001\u5411\u91cf\u7a7a\u95f4\u8f6c\u6362<span class=\"token punctuation\">]<\/span><br \/>\n\u2502<br \/>\n\u251c\u2500\u2500 \u4f20\u7edf\u8def\u5f84: \u6536\u85cf\u5939 &#8211;<span class=\"token operator\">&gt;<\/span> <span class=\"token punctuation\">[<\/span>\u5403\u7070<span class=\"token punctuation\">]<\/span> \/ <span class=\"token punctuation\">[<\/span>\u53ea\u80fd\u901a\u8fc7\u6807\u9898\u641c\u5230<span class=\"token punctuation\">]<\/span><br \/>\n\u2502<br \/>\n\u251c\u2500\u2500 \u2605 Bilibili-RAG \u8def\u5f84: \u6d41\u5a92\u4f53\u8f6c\u7ed3\u6784\u5316\u77e5\u8bc6<br \/>\n\u2502   \u251c\u2500\u2500 <span class=\"token number\">1<\/span>. \u8bed\u6599\u5206\u5272 <span class=\"token punctuation\">(<\/span>Chunking<span class=\"token punctuation\">)<\/span><br \/>\n\u2502   \u2502   \u2514\u2500\u2500 \u5c06\u4e24\u5c0f\u65f6\u7684\u9010\u5b57\u7a3f&#xff0c;\u6309\u8bed\u4e49\u8fde\u8d2f\u6027\u5207\u5272\u6210 <span class=\"token number\">500<\/span> \u4e2a Chunk<br \/>\n\u2502   \u2502<br \/>\n\u2502   \u251c\u2500\u2500 <span class=\"token number\">2<\/span>. \u53cc\u8f68\u843d\u76d8 <span class=\"token punctuation\">(<\/span>Dual-Track Storage<span class=\"token punctuation\">)<\/span><br \/>\n\u2502   \u2502   \u251c\u2500\u2500 \u5173\u7cfb\u8f68\u9053 <span class=\"token punctuation\">(<\/span>SQLite<span class=\"token punctuation\">)<\/span>: \u8bb0\u5f55\u89c6\u9891\u57fa\u7840\u4fe1\u606f\u3001\u5206 P \u903b\u8f91<br \/>\n\u2502   \u2502   \u2502<br \/>\n\u2502   \u2502   \u2514\u2500\u2500 \u5411\u91cf\u8f68\u9053 <span class=\"token punctuation\">(<\/span>ChromaDB<span class=\"token punctuation\">)<\/span>: \u5c06 Chunk \u8f93\u5165 Embedding \u6a21\u578b<br \/>\n\u2502   \u2502       \u2514\u2500\u2500 \u8f6c\u5316\u4e3a <span class=\"token number\">1536<\/span> \u7ef4\u7684\u6d6e\u70b9\u6570\u6570\u7ec4 <span class=\"token punctuation\">(<\/span>Vector<span class=\"token punctuation\">)<\/span><br \/>\n\u2502   \u2502<br \/>\n\u2502   \u2514\u2500\u2500 <span class=\"token number\">3<\/span>. \u8bed\u4e49\u53ec\u56de <span class=\"token punctuation\">(<\/span>Semantic Search<span class=\"token punctuation\">)<\/span><br \/>\n\u2502       \u251c\u2500\u2500 \u7528\u6237 Query: <span class=\"token string\">&#034;\u600e\u4e48\u4f18\u5316\u5185\u5b58\u788e\u7247&#xff1f;&#034;<\/span><br \/>\n\u2502       \u2514\u2500\u2500 \u5411\u91cf\u78b0\u649e: \u8ba1\u7b97 Query \u5411\u91cf\u4e0e\u5e93\u4e2d\u5411\u91cf\u7684\u4f59\u5f26\u76f8\u4f3c\u5ea6<br \/>\n\u2502           \u2514\u2500\u2500 \u7cbe\u51c6\u547d\u4e2d\u89c6\u9891\u7b2c <span class=\"token number\">45<\/span>:12 \u5904\u7684\u67d0\u4e2a Chunk<\/p>\n<h4>3. \u79c1\u57df\u751f\u6210\u5f0f\u4ea4\u4e92&#xff1a;\u9ad8\u7f6e\u4fe1\u5ea6 RAG \u95ed\u73af (Conversational Matrix)<\/h4>\n<p>\u6807\u7b7e&#xff1a;[\u4ea4\u4e92\u91cd\u5851 \/ \u4e2a\u4eba\u5916\u8111]<\/p>\n<p>\u6df1\u5ea6\u89e3\u6790&#xff1a; \u8fd9\u662f\u9879\u76ee\u6700\u5177\u98a0\u8986\u6027\u7684\u7528\u6237\u5c42\u4f53\u9a8c\u3002\u76ee\u524d\u7684 AI \u603b\u7ed3\u63d2\u4ef6\u591a\u662f\u201c\u4e00\u6b21\u6027\u69a8\u6c41\u673a\u201d&#xff08;\u7ed9\u4e00\u4e2a\u89c6\u9891&#xff0c;\u5410\u4e00\u7bc7\u56fa\u5b9a\u6458\u8981&#xff09;\u3002Bilibili-RAG \u5229\u7528 LangChain \u5c06\u68c0\u7d22\u548c\u63a8\u7406\u5b8c\u7f8e\u7f1d\u5408&#xff0c;\u6784\u5efa\u4e86\u4e00\u4e2a\u968f\u53eb\u968f\u5230\u7684\u5bf9\u8bdd\u5f0f\u52a9\u6559\u3002<\/p>\n<ul>\n<li>\u7cbe\u51c6\u6eaf\u6e90 (Traceability)&#xff1a; \u5927\u8bed\u8a00\u6a21\u578b&#xff08;LLM&#xff09;\u6700\u5927\u7684\u7f3a\u9677\u662f\u201c\u5e7b\u89c9\u201d&#xff08;\u80e1\u8bf4\u516b\u9053&#xff09;\u3002\u4f46\u5728 RAG \u67b6\u6784\u4e0b&#xff0c;LLM \u88ab\u4e25\u683c\u9650\u5236\u5728 ChromaDB \u53ec\u56de\u7684\u4e0a\u4e0b\u6587\u4e2d\u8fdb\u884c\u4f5c\u7b54\u3002<\/li>\n<li>\u4e0a\u4e0b\u6587\u5ef6\u7eed&#xff1a; \u4e0d\u4ec5\u56de\u7b54\u4f60\u7684\u95ee\u9898&#xff0c;\u8fd8\u7cbe\u786e\u9644\u5e26\u539f\u59cb\u89c6\u9891\u7684\u4e0a\u4e0b\u6587\u548c\u65f6\u95f4\u5207\u7247\u3002\u8fd9\u5b9e\u73b0\u4e86\u4ece\u201c\u88ab\u52a8\u770b\u89c6\u9891\u201d\u5411\u201c\u4e3b\u52a8\u5ba1\u95ee\u77e5\u8bc6\u5e93\u201d\u7684\u8303\u5f0f\u8f6c\u79fb\u3002<\/li>\n<\/ul>\n<p>RAG \u95ed\u73af\u5de5\u4f5c\u6d41\u6811\u5f62\u56fe&#xff1a;<\/p>\n<p><span class=\"token punctuation\">[<\/span>\u751f\u6210\u5f0f\u5916\u8111\u6267\u884c\u6d41<span class=\"token punctuation\">]<\/span><br \/>\n\u2502<br \/>\n\u251c\u2500\u2500 \u7528\u6237\u63d0\u95ee: <span class=\"token string\">&#034;\u5e2e\u6211\u5bf9\u6bd4\u4e00\u4e0b\u8fd9\u51e0\u4e2a\u89c6\u9891\u91cc\u63d0\u5230\u7684\u67b6\u6784\u89e3\u8026\u65b9\u6848\u4f18\u7f3a\u70b9\u3002&#034;<\/span><br \/>\n\u2502<br \/>\n\u25bc<br \/>\n<span class=\"token punctuation\">[<\/span>\u68c0\u7d22\u5927\u8111 <span class=\"token punctuation\">(<\/span>Retriever<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">]<\/span><br \/>\n\u2502   \u251c\u2500\u2500 \u52a8\u4f5c: \u5c06\u63d0\u95ee\u5411\u91cf\u5316&#xff0c;\u53bb ChromaDB \u4e2d\u8fdb\u884c Top-K \u68c0\u7d22<br \/>\n\u2502   \u251c\u2500\u2500 \u53ec\u56de <span class=\"token number\">1<\/span>: \u89c6\u9891 A <span class=\"token punctuation\">(<\/span>01:15:00<span class=\"token punctuation\">)<\/span> \u63d0\u5230\u7684\u5fae\u670d\u52a1\u62c6\u5206<br \/>\n\u2502   \u251c\u2500\u2500 \u53ec\u56de <span class=\"token number\">2<\/span>: \u89c6\u9891 B <span class=\"token punctuation\">(<\/span>00:45:20<span class=\"token punctuation\">)<\/span> \u63d0\u5230\u7684\u4e8b\u4ef6\u9a71\u52a8<br \/>\n\u2502   \u2514\u2500\u2500 \u53ec\u56de <span class=\"token number\">3<\/span>: \u89c6\u9891 C <span class=\"token punctuation\">(<\/span>02:10:05<span class=\"token punctuation\">)<\/span> \u63d0\u5230\u7684\u9886\u57df\u9a71\u52a8\u8bbe\u8ba1<br \/>\n\u2502<br \/>\n\u25bc<br \/>\n<span class=\"token punctuation\">[<\/span>\u62fc\u88c5\u4e0e\u5bf9\u9f50 <span class=\"token punctuation\">(<\/span>Prompt Engineering<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&lt;<\/span>\u2605 \u6838\u5fc3\u7ea6\u675f<span class=\"token operator\">&gt;<\/span><br \/>\n\u2502   \u2502<br \/>\n\u2502   \u251c\u2500\u2500 \u7ec4\u88c5\u7cfb\u7edf\u63d0\u793a\u8bcd <span class=\"token punctuation\">(<\/span>System Prompt<span class=\"token punctuation\">)<\/span>:<br \/>\n\u2502   \u2502   <span class=\"token string\">&#034;\u4f60\u662f\u4e00\u4e2a\u4e25\u8c28\u7684\u5b66\u672f\u52a9\u624b&#xff0c;\u8bf7\u3010\u4e25\u683c\u4ec5\u6839\u636e\u4ee5\u4e0b\u89c6\u9891\u7247\u6bb5\u3011\u56de\u7b54\u7528\u6237\u95ee\u9898\u3002<br \/>\n\u2502   \u2502   \u7247\u6bb5 1: [\u5185\u5bb9&#8230;]<br \/>\n\u2502   \u2502   \u7247\u6bb5 2: [\u5185\u5bb9&#8230;]&#034;<\/span><br \/>\n\u2502   \u2502<br \/>\n\u2502   \u2514\u2500\u2500 \u675c\u7edd\u5e7b\u89c9: \u9501\u5b9a LLM \u7684\u53d1\u6563\u63a8\u7406\u8fb9\u754c<br \/>\n\u2502<br \/>\n\u25bc<br \/>\n<span class=\"token punctuation\">[<\/span>\u751f\u6210\u4e0e\u4ea4\u4ed8 <span class=\"token punctuation\">(<\/span>LLM Generation<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">]<\/span><br \/>\n\u2502   \u251c\u2500\u2500 \u6a21\u578b\u63a8\u7406: \u5206\u6790\u4e09\u4e2a\u7247\u6bb5\u7684\u903b\u8f91\u5173\u8054<br \/>\n\u2502   \u2514\u2500\u2500 \u8f93\u51fa\u7b54\u6848: \u5305\u542b\u4f18\u7f3a\u70b9\u5bf9\u6bd4\u8868\u683c&#xff0c;\u4e14\u6bcf\u53e5\u8bdd\u672b\u5c3e\u5e26\u4e0a\u6eaf\u6e90\u89d2\u6807 <span class=\"token punctuation\">[<\/span>\u89c6\u9891A 01:15:00<span class=\"token punctuation\">]<\/span><\/p>\n<h4>\u603b\u7ed3&#xff1a;\u4e09\u5927\u521b\u65b0\u70b9\u7684\u534f\u540c\u6548\u5e94<\/h4>\n<p>\u8fd9\u4e09\u4e2a\u6838\u5fc3\u8bbe\u8ba1\u73af\u73af\u76f8\u6263&#xff1a; \u5f3a\u5927\u7684 ASR \u515c\u5e95\u5f15\u64ce \u548c\u5e95\u5c42\u7684\u97f3\u9891\u5904\u7406\u673a\u5236&#xff0c;\u786e\u4fdd\u4e86\u65e0\u8bba\u5916\u754c\u7f51\u7edc\u73af\u5883\u591a\u6076\u52a3&#xff0c;\u7c97\u7cd9\u7684\u591a\u5a92\u4f53\u6d41\u90fd\u80fd\u88ab\u6e05\u6d17\u4e3a\u9ad8\u8d28\u91cf\u7684\u6587\u672c\u3002\u53cc\u8f68\u5411\u91cf\u5f15\u64ce \u5c06\u8fd9\u4e9b\u6d77\u91cf\u6587\u672c\u964d\u7ef4\u6210\u673a\u5668\u80fd\u79d2\u7ea7\u7406\u89e3\u7684\u8bed\u4e49\u7a7a\u95f4&#xff0c;\u89e3\u51b3\u4e86\u5b58\u50a8\u548c\u68c0\u7d22\u7684\u6027\u80fd\u74f6\u9888\u3002\u6700\u7ec8&#xff0c;RAG \u95ed\u73af \u5229\u7528\u8fd9\u79cd\u5e95\u5c42\u652f\u6491&#xff0c;\u5728\u524d\u7aef\u5177\u8c61\u5316\u4e3a\u4e00\u4e2a\u9ad8\u667a\u5546\u3001\u4e0d\u6492\u8c0e\u4e14\u61c2\u4f60\u6240\u6709\u6536\u85cf\u7684\u201c\u8d5b\u535a\u5bfc\u5e08\u201d\u3002<\/p>\n<hr \/>\n<h3>\u4e09\u3001\u6838\u5fc3\u529f\u80fd&#xff1a;\u4e3a\u4ec0\u4e48\u8bf4\u5b83\u80fd\u8ba9\u201c\u6536\u85cf\u4e0d\u518d\u5403\u7070\u201d<\/h3>\n<p>Bilibili-RAG \u4e4b\u6240\u4ee5\u80fd\u88ab\u79f0\u4e3a\u201c\u91cd\u6784\u4e2a\u4eba\u77e5\u8bc6\u5e93\u7684\u795e\u5668\u201d&#xff0c;\u662f\u56e0\u4e3a\u5b83\u5f7b\u5e95\u6253\u7834\u4e86\u4f20\u7edf\u89c6\u9891\u5b66\u4e60\u7684\u4e09\u5927\u7981\u9522&#xff1a;\u4fe1\u606f\u5b64\u5c9b\u3001\u7ebf\u6027\u65f6\u95f4\u7a0e\u3001\u4ee5\u53ca\u68c0\u7d22\u762b\u75ea\u3002\u5b83\u5c06\u4e0d\u53ef\u89e6\u78b0\u7684\u201c\u6d41\u5a92\u4f53\u201d&#xff0c;\u786c\u751f\u751f\u8f6c\u5316\u4e3a\u4e86\u4f60\u53ef\u4ee5\u968f\u610f\u63c9\u634f\u7684\u201c\u7ed3\u6784\u5316\u6570\u636e\u201d\u3002<\/p>\n<h4>3.1 \u626b\u7801\u76f4\u8fde&#xff0c;\u65e0\u7f1d\u805a\u5408&#xff1a;\u8ba9\u6570\u636e\u4e3b\u52a8\u627e\u4f60<\/h4>\n<p>\u522b\u518d\u4e3a\u4e86\u63d0\u53d6\u4e00\u4e2a\u89c6\u9891\u7684\u5b57\u5e55&#xff0c;\u800c\u53bb\u7e41\u7410\u5730\u590d\u5236 URL\u3001\u6253\u5f00\u7b2c\u4e09\u65b9\u5de5\u5177\u3001\u7c98\u8d34\u3001\u7b49\u5f85\u4e0b\u8f7d\u4e86\u3002Bilibili-RAG \u7684\u54f2\u5b66\u662f \u201c\u4f60\u5728\u54ea\u6536\u85cf&#xff0c;\u6211\u5c31\u5728\u54ea\u63d0\u53d6\u201d\u3002<\/p>\n<p>\u5b83\u901a\u8fc7\u7edf\u4e00\u7684\u8d26\u53f7\u7f51\u5173\u63a5\u7ba1\u4e86\u4f60\u7684 B \u7ad9\u5b66\u4e60\u6d41\u3002\u5b83\u4e0d\u662f\u4e00\u4e2a\u88ab\u52a8\u7684\u4e0b\u8f7d\u5668&#xff0c;\u5b83\u662f\u4f60\u8d26\u53f7\u80cc\u540e\u7684\u201c\u5e7d\u7075\u7ba1\u5bb6\u201d\u3002<\/p>\n<p>Bilibili-RAG \u652f\u6301\u5bf9\u4f60\u8d26\u53f7\u5185\u6838\u5fc3\u8d44\u4ea7\u7684\u5168\u9762\u63a5\u7ba1&#xff1a;<\/p>\n<table>\n<tr>\u8d44\u4ea7\u7c7b\u578b\u72b6\u6001\u6838\u5fc3\u4ef7\u503c<\/tr>\n<tbody>\n<tr>\n<td>\u7a0d\u540e\u518d\u770b (Watch Later)<\/td>\n<td>\u7a33\u5b9a<\/td>\n<td>\u81ea\u52a8\u6d88\u5316\u65e5\u5e38\u788e\u7247\u5316\u53d1\u73b0\u7684\u9ad8\u4ef7\u503c\u89c6\u9891<\/td>\n<\/tr>\n<tr>\n<td>\u81ea\u5b9a\u4e49\u6536\u85cf\u5939 (Favorites)<\/td>\n<td>\u7a33\u5b9a<\/td>\n<td>\u6309\u4e3b\u9898&#xff08;\u5982&#xff1a;\u524d\u7aef\u5f00\u53d1\u3001\u6295\u8d44\u3001\u82f1\u8bed&#xff09;\u5206\u7c7b\u805a\u5408\u77e5\u8bc6<\/td>\n<\/tr>\n<tr>\n<td>\u5386\u53f2\u64ad\u653e (History)<\/td>\n<td>\u89c4\u5212\u4e2d<\/td>\n<td>\u627e\u56de\u90a3\u4e9b\u201c\u968f\u624b\u5212\u8fc7\u4f46\u7a81\u7136\u60f3\u67e5\u201d\u7684\u77e5\u8bc6\u76f2\u533a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table>\n<tr>\u573a\u666f\u4f20\u7edf\u4f53\u9a8cBilibili-RAG \u7684\u4f53\u9a8c<\/tr>\n<tbody>\n<tr>\n<td>\u788e\u7247\u5316\u8f93\u5165<\/td>\n<td>\u5730\u94c1\u4e0a\u770b\u5230\u597d\u89c6\u9891&#xff0c;\u70b9\u4e2a\u6536\u85cf&#xff0c;\u7136\u540e\u6c38\u8fdc\u5fd8\u8bb0\u5b83\u3002<\/td>\n<td>\u5730\u94c1\u4e0a\u70b9\u4e2a\u6536\u85cf\u3002\u665a\u4e0a\u56de\u5230\u5bb6&#xff0c;Bilibili-RAG \u5df2\u7ecf\u81ea\u52a8\u628a\u5b83\u8f6c\u5f55\u3001\u5207\u7247\u5e76\u5165\u5e93\u4e86\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u7cfb\u5217\u8bfe\u7a0b\u5b66\u4e60<\/td>\n<td>\u9762\u5bf9\u4e00\u4e2a 50P \u7684\u786c\u6838\u6559\u7a0b&#xff0c;\u770b\u4e86\u4e00\u534a\u653e\u5f03&#xff0c;\u4e0b\u6b21\u8fde\u770b\u5230\u54ea\u90fd\u5fd8\u4e86\u3002<\/td>\n<td>\u6574\u4e2a\u8bfe\u7a0b\u7684\u6587\u7a3f\u5df2\u5168\u90e8\u5728\u672c\u5730&#xff0c;\u4f60\u53ef\u4ee5\u76f4\u63a5\u5bf9\u6574\u4e2a\u7cfb\u5217\u63d0\u95ee&#xff1a;\u201c\u8fd9\u95e8\u8bfe\u524d 10 \u8bb2\u7684\u6838\u5fc3\u903b\u8f91\u662f\u4ec0\u4e48&#xff1f;\u201d<\/td>\n<\/tr>\n<tr>\n<td>\u64ad\u5ba2\u4e0e\u957f\u5bf9\u8c08<\/td>\n<td>\u8fb9\u542c\u8fb9\u7528\u5907\u5fd8\u5f55\u8bb0\u7b14\u8bb0&#xff0c;\u8bb0\u4e0d\u4f4f\u539f\u8bdd&#xff0c;\u4e0a\u4e0b\u6587\u65ad\u88c2\u3002<\/td>\n<td>\u4e13\u5fc3\u542c\u3002\u9700\u8981\u590d\u76d8\u65f6\u76f4\u63a5\u641c&#xff0c;\u8fde\u539f\u8bdd\u5e26\u65f6\u95f4\u8f74\u4e00\u79d2\u5b9a\u4f4d\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8fd9\u610f\u5473\u7740\u4ec0\u4e48&#xff1f;<\/p>\n<p>\u4f60\u53ea\u9700\u8981\u7ef4\u6301\u4f60\u539f\u6709\u7684\u4e60\u60ef\u2014\u2014\u5728\u624b\u673a B \u7ad9 App \u4e0a\u987a\u624b\u70b9\u4e2a\u201c\u6536\u85cf\u201d\u3002\u5269\u4e0b\u7684\u6240\u6709\u810f\u6d3b\u7d2f\u6d3b&#xff0c;\u4f60\u7684\u672c\u5730\u670d\u52a1\u5668\u90fd\u4f1a\u5168\u81ea\u52a8\u5e2e\u4f60\u641e\u5b9a\u3002<\/p>\n<h4>3.2 \u7a33\u5982\u8001\u72d7\u7684 ASR \u515c\u5e95\u7b56\u7565&#xff1a;\u69a8\u5e72\u6bcf\u4e00\u6ef4\u4fe1\u606f<\/h4>\n<p>\u9762\u5bf9 B \u7ad9\u65e5\u76ca\u4e25\u683c\u7684\u9632\u76d7\u94fe&#xff08;403 Forbidden&#xff09;\u548c\u52a8\u6001\u9274\u6743\u673a\u5236&#xff0c;\u5e02\u9762\u4e0a 90% \u7684\u89c6\u9891\u89e3\u6790\u5de5\u5177\u90fd\u4f1a\u95f4\u6b47\u6027\u201c\u7f62\u5de5\u201d\u3002\u4f46 Bilibili-RAG \u5c55\u73b0\u51fa\u4e86\u6781\u9ad8\u7684\u5de5\u7a0b\u9c81\u68d2\u6027\u2014\u2014\u53ea\u8981\u89c6\u9891\u6ca1\u88ab\u5220&#xff0c;\u5b83\u5c31\u80fd\u628a\u5e72\u8d27\u201c\u62a0\u201d\u51fa\u6765\u3002<\/p>\n<p>\u5b83\u5185\u7f6e\u4e86\u4e00\u5957\u5de5\u4e1a\u7ea7\u7684\u72b6\u6001\u673a\u5904\u7406\u6d41&#xff0c;\u8ba9 Agent \u771f\u6b63\u62e5\u6709\u4e86\u5e94\u5bf9\u590d\u6742\u7f51\u7edc\u73af\u5883\u7684&#034;\u624b\u811a&#034;&#xff1a;<\/p>\n<ul>\n<li>&#x1f680; Fast Path&#xff08;\u516c\u7f51\u76f4\u8fde\u62c9\u53d6&#xff09;&#xff1a; \u5bf9\u4e8e\u5f00\u653e\u6743\u9650\u7684\u89c6\u9891&#xff0c;\u76f4\u63a5\u8d70\u516c\u7f51\u6d41&#xff0c;\u8ffd\u6c42\u6781\u81f4\u7684\u8f6c\u5f55\u901f\u5ea6\u3002<\/li>\n<li>&#x1f6e1;\ufe0f Hardcore Fallback&#xff08;\u786c\u6838\u515c\u5e95\u6d41&#xff09;&#xff1a; \u4e00\u65e6\u906d\u9047 403 \u62e6\u622a&#xff0c;\u77ac\u95f4\u5207\u6362\u7b56\u7565\u3002\u81ea\u52a8\u643a\u5e26\u4f60\u7684\u672c\u5730 Cookie&#xff0c;\u6a21\u62df\u771f\u5b9e\u7528\u6237\u8fdb\u884c\u4e0b\u8f7d&#xff0c;\u5f7b\u5e95\u7ed5\u8fc7\u98ce\u63a7\u3002<\/li>\n<li>&#x1f39b;\ufe0f FFmpeg \u5f3a\u5236\u964d\u7ef4&#xff1a; \u65e0\u8bba\u539f\u89c6\u9891\u662f 4K HDR \u8fd8\u662f\u591a\u8f68 MKV&#xff0c;\u5b83\u90fd\u4f1a\u65e0\u60c5\u5730\u5265\u79bb\u753b\u9762&#xff0c;\u5c06\u97f3\u9891\u7edf\u4e00\u91cd\u91c7\u6837\u4e3a 16kHz \u5355\u58f0\u9053 (Mono)\u3002\u8fd9\u4e0d\u4ec5\u7701\u7a7a\u95f4&#xff0c;\u66f4\u8ba9\u5bf9\u63a5 DashScope \u7b49 ASR&#xff08;\u8bed\u97f3\u8bc6\u522b&#xff09;\u5927\u6a21\u578b\u7684\u51c6\u786e\u7387\u98d9\u5347\u3002<\/li>\n<li>&#x1f9f9; \u81ea\u52a8\u6e05\u7406\u4e0e\u5165\u5e93&#xff1a; \u8f6c\u5f55\u5b8c\u6210\u540e&#xff0c;\u5e9e\u5927\u7684\u97f3\u9891\u6587\u4ef6\u4f1a\u88ab\u81ea\u52a8\u9500\u6bc1&#xff0c;\u53ea\u7559\u4e0b\u63d0\u7eaf\u540e\u7684\u5411\u91cf\u6570\u636e\u3002<\/li>\n<\/ul>\n<h4>3.3 \u8bed\u4e49\u7ea7\u68c0\u7d22&#xff1a;\u5b83\u771f\u7684\u61c2\u4f60\u5728\u627e\u4ec0\u4e48<\/h4>\n<p>\u4f20\u7edf AI \u52a9\u624b\u6216\u7b14\u8bb0\u8f6f\u4ef6\u7684\u75db\u70b9\u662f\u5b57\u9762\u91cf\u5339\u914d\u2014\u2014\u5982\u679c\u4f60\u641c\u7d22\u201c\u5ef6\u8fdf\u201d&#xff0c;\u4f46\u89c6\u9891\u8bb2\u8005\u7528\u7684\u662f\u201cLatency\u201d\u6216\u201c\u54cd\u5e94\u6162\u201d&#xff0c;\u4f60\u5c31\u6c38\u8fdc\u641c\u4e0d\u5230\u3002<\/p>\n<p>Bilibili-RAG \u5f15\u5165\u4e86 ChromaDB \u672c\u5730\u5411\u91cf\u5f15\u64ce\u3002\u8fd9\u88ab\u79f0\u4e3a \u201c\u6f5c\u7a7a\u95f4\u68c0\u7d22\u201d (Latent Space Retrieval)\u3002\u4f60\u4e0d\u9700\u8981\u8bb0\u4f4f\u539f\u8bdd&#xff0c;\u4f60\u53ea\u9700\u8981\u63cf\u8ff0\u201c\u90a3\u4e2a\u610f\u601d\u201d\u3002<\/p>\n<p>\u793a\u4f8b\u573a\u666f&#xff1a;<\/p>\n<p>\u4f60&#xff1a;\u201c\u90a3\u4e2a\u89c6\u9891\u91cc\u63d0\u5230\u7684&#xff0c;\u5173\u4e8e\u600e\u4e48\u8ba9\u5927\u6a21\u578b\u5410\u5b57\u66f4\u5feb\u7684\u6280\u672f\u65b9\u6848\u662f\u4ec0\u4e48&#xff1f;\u201d<\/p>\n<p>Bilibili-RAG&#xff1a;&#xff08;\u901a\u8fc7\u8ba1\u7b97\u8bed\u4e49\u5411\u91cf\u7684\u4f59\u5f26\u76f8\u4f3c\u5ea6&#xff0c;\u77ac\u95f4\u5b9a\u4f4d&#xff09;<\/p>\n<p>\u201c\u4f60\u627e\u7684\u5e94\u8be5\u662f\u300a2025 AI \u67b6\u6784\u6f14\u8fdb\u8def\u7ebf\u300b\u8fd9\u4e2a\u89c6\u9891\u3002\u8bb2\u8005\u5728 01:12:05 \u5904\u63d0\u5230\u4e86 \u2018KV Cache \u4f18\u5316\u4e0e\u6d41\u5f0f\u8f93\u51fa (Streaming)\u2019\u3002\u4ed6\u6307\u51fa\u2026\u2026\u201d<\/p>\n<p>\u6838\u5fc3\u7a81\u7834&#xff1a;<\/p>\n<ul>\n<li>\u8de8\u8d8a\u8bed\u8a00\u969c\u788d&#xff1a; \u7528\u4e2d\u6587\u641c\u7d22\u82f1\u6587\u53d1\u97f3\u7684\u4e13\u4e1a\u672f\u8bed&#xff0c;\u4f9d\u7136\u80fd\u7cbe\u51c6\u547d\u4e2d\u3002<\/li>\n<li>\u6a21\u7cca\u8bb0\u5fc6\u8865\u5168&#xff1a; \u53ea\u8bb0\u5f97\u4e00\u4e2a\u6bd4\u55bb\u6216\u9690\u55bb&#xff0c;\u5411\u91cf\u68c0\u7d22\u4e5f\u80fd\u5e2e\u4f60\u628a\u539f\u51fa\u5904\u201c\u635e\u201d\u51fa\u6765\u3002<\/li>\n<li>\u65f6\u95f4\u8f74\u7a7f\u68ad&#xff1a; \u6240\u6709\u7684\u641c\u7d22\u7ed3\u679c\u90fd\u4f1a\u9644\u5e26\u7cbe\u786e\u5230\u79d2\u7684\u65f6\u95f4\u6233&#xff0c;\u70b9\u51fb\u5373\u53ef\u56de\u6eaf\u539f\u6587\u3002<\/li>\n<\/ul>\n<h4>3.4 \u7eaf\u6b63\u7684 RAG \u5bf9\u8bdd\u4f53\u9a8c&#xff1a;\u4ece\u201c\u641c\u201d\u5230\u201c\u804a\u201d<\/h4>\n<p>\u8fd9\u662f Bilibili-RAG \u6700\u8ba9\u4eba\u5174\u594b\u7684\u5730\u65b9\u3002\u5b83\u4e0d\u4ec5\u4ec5\u662f\u4e00\u4e2a\u806a\u660e\u7684\u641c\u7d22\u5f15\u64ce&#xff0c;\u5b83\u662f\u4e00\u4e2a\u57fa\u4e8e\u4f60\u79c1\u4eba\u8bed\u6599\u5e93\u7684\u4e13\u5c5e\u52a9\u6559\u3002<\/p>\n<p>\u5728 Bilibili-RAG \u91cc&#xff0c;\u6240\u6709\u7684\u5bf9\u8bdd\u751f\u6210&#xff08;Generation&#xff09;\u90fd\u88ab\u4e25\u683c\u9650\u5236\u5728\u4f60\u6536\u85cf\u5939\u7684\u4e0a\u4e0b\u6587&#xff08;Retrieval&#xff09;\u4e2d&#xff0c;\u5f7b\u5e95\u675c\u7edd\u4e86 AI \u7684\u201c\u5e7b\u89c9\u201d\u3002<\/p>\n<p>\u4f60\u53ef\u4ee5\u901a\u8fc7\u6781\u5176\u590d\u6742\u7684 Prompt&#xff08;\u63d0\u793a\u8bcd&#xff09;\u6765\u69a8\u5e72\u89c6\u9891\u7684\u4ef7\u503c&#xff1a;<\/p>\n<p># \u5178\u578b\u7684\u9ad8\u9636\u63d0\u95ee\u6307\u4ee4<\/p>\n<p>\u4f60\u73b0\u5728\u662f\u6211\u7684\u6280\u672f\u67b6\u6784\u5bfc\u5e08\u3002\u8bf7\u9488\u5bf9\u6211\u6536\u85cf\u7684\u300a\u7cfb\u7edf\u8bbe\u8ba1\u6df1\u5ea6\u89e3\u6790\u300b\u516c\u5f00\u8bfe&#xff0c;\u5b8c\u6210\u4ee5\u4e0b\u4efb\u52a1&#xff1a;<br \/>\n1. \u63d0\u53d6\u524d\u4e24\u7ae0\u5173\u4e8e\u201c\u5fae\u670d\u52a1\u62c6\u5206\u201d\u7684\u6838\u5fc3\u6982\u5ff5\u3002<br \/>\n2. \u5bf9\u6bd4\u8bb2\u8005\u63d0\u5230\u7684\u201c\u9886\u57df\u9a71\u52a8\u8bbe\u8ba1(DDD)\u201d\u4e0e\u201c\u6570\u636e\u9a71\u52a8\u8bbe\u8ba1\u201d\u7684\u4f18\u7f3a\u70b9&#xff0c;\u4f7f\u7528 Markdown \u8868\u683c\u5448\u73b0\u3002<br \/>\n3. \u5fc5\u987b\u5728\u6bcf\u4e2a\u89c2\u70b9\u7684\u672b\u5c3e&#xff0c;\u6807\u6ce8\u8be5\u89c2\u70b9\u5728\u89c6\u9891\u4e2d\u7684\u5177\u4f53\u65f6\u95f4&#xff08;\u5982 [45:12]&#xff09;\u3002<\/p>\n<p>\u5c31\u8fd9\u4e48\u7b80\u5355\u3002\u8f93\u5165\u8fd9\u6bb5\u8bdd&#xff0c;\u5b83\u5c31\u4f1a\u4e25\u683c\u6309\u7167\u4f60\u7684\u6307\u4ee4&#xff0c;\u5c06\u4e09\u5c0f\u65f6\u7684\u89c6\u9891\u6d53\u7f29\u4e3a\u4f60\u9700\u8981\u7684\u9ad8\u4ef7\u503c\u8d44\u4ea7\u3002<\/p>\n<p>\u5b66\u4e60\u8005\u521b\u9020\u529b\u5927\u7206\u53d1&#xff1a; \u5728\u65e5\u5e38\u4f7f\u7528\u4e2d&#xff0c;\u8fd9\u79cd\u80fd\u529b\u884d\u751f\u51fa\u4e86\u65e0\u6570\u9ad8\u9636\u73a9\u6cd5&#xff1a;<\/p>\n<ul>\n<li>&#x1f4dd; \u81ea\u52a8\u5927\u7eb2\u751f\u6210 (Auto-Outliner)&#xff1a; \u76f4\u63a5\u6254\u7ed9\u5b83\u4e00\u4e2a\u957f\u89c6\u9891&#xff0c;\u547d\u4ee4\u5b83&#xff1a;\u201c\u7528\u91d1\u5b57\u5854\u539f\u7406\u5e2e\u6211\u68b3\u7406\u8fd9\u4e2a\u8bb2\u5ea7\u7684\u601d\u7ef4\u5bfc\u56fe\u5927\u7eb2\u3002\u201d<\/li>\n<li>\u2696\ufe0f \u8de8\u89c6\u9891\u89c2\u70b9\u5bf9\u649e (Cross-Video Debate)&#xff1a; \u201c\u5173\u4e8e React \u548c Vue \u7684\u672a\u6765&#xff0c;\u6211\u7684\u6536\u85cf\u5939\u91cc\u6709\u4e09\u4e2a\u4e0d\u540c\u7684 UP \u4e3b&#xff0c;\u8bf7\u5e2e\u6211\u603b\u7ed3\u4ed6\u4eec\u89c2\u70b9\u7684\u5206\u6b67\u70b9\u5728\u54ea\u91cc\u3002\u201d<\/li>\n<li>\u2753 \u8003\u524d\u6a21\u62df\u5668 (Quiz Master)&#xff1a; \u9488\u5bf9\u4f60\u6536\u85cf\u7684\u8003\u7814\u653f\u6cbb\/\u9ad8\u6570\u7f51\u8bfe&#xff0c;\u5bf9\u5b83\u8bf4&#xff1a;\u201c\u6839\u636e\u8fd9\u4e2a\u89c6\u9891\u7b2c\u4e00\u8282\u7684\u77e5\u8bc6\u70b9&#xff0c;\u7ed9\u6211\u51fa 5 \u9053\u9009\u62e9\u9898\u5e76\u9644\u5e26\u89e3\u6790\u3002\u201d<\/li>\n<\/ul>\n<hr \/>\n<h3>\u56db\u3001\u5b9e\u9645\u4f7f\u7528\u573a\u666f&#xff1a;\u5b83\u5982\u4f55\u6539\u53d8\u4f60\u7684\u5b66\u4e60\u5de5\u4f5c\u6d41<\/h3>\n<p>\u522b\u518d\u628a\u89c6\u9891\u653e\u5230\u6536\u85cf\u5939\u91cc\u201c\u4f9b\u8d77\u6765\u201d\u7136\u540e\u5047\u88c5\u81ea\u5df1\u5b66\u8fc7\u4e86\u3002\u8bf7\u60f3\u8c61\u4f60\u96c7\u4f63\u4e86\u4e00\u4e2a\u62e5\u6709\u8fc7\u76ee\u4e0d\u5fd8\u80fd\u529b\u7684\u8d85\u7ea7\u5b66\u672f\u52a9\u7406&#xff0c;\u5b83\u4f4f\u5728\u4f60\u7684\u672c\u5730\u786c\u76d8\u91cc&#xff0c;24\u5c0f\u65f6\u4e0d\u7761\u89c9&#xff0c;\u968f\u65f6\u80fd\u4ece\u51e0\u767e\u4e2a\u5c0f\u65f6\u7684\u89c6\u9891\u4e2d\u7cbe\u51c6\u63ea\u51fa\u4f60\u9700\u8981\u7684\u90a3\u53e5\u8bdd&#xff0c;\u751a\u81f3\u8fd8\u80fd\u966a\u4f60\u505a\u786c\u6838\u7684\u6280\u672f\u63a8\u6f14\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f Bilibili-RAG \u7528\u6237\u771f\u5b9e\u7684\u65e5\u5e38\u5b66\u4e60\u5de5\u4f5c\u6d41&#xff1a;<\/p>\n<h4>\u573a\u666f 1&#xff1a;The Deep Dive&#xff08;\u786c\u6838\u6280\u672f\u590d\u76d8\u4e0e\u7ed3\u5bf9\u63a8\u6f14&#xff09;<\/h4>\n<p>\u274c \u4ee5\u524d\u7684\u6323\u624e&#xff1a; \u4e3a\u4e86\u8dd1\u901a\u4e00\u4e2a\u9879\u76ee&#xff0c;\u4f60\u770b\u5b8c\u4e86\u4e00\u4e2a\u957f\u8fbe\u4e24\u5c0f\u65f6\u7684 RK3588 \u90e8\u7f72\u6559\u7a0b\u3002\u8ddf\u7740\u6572\u4e86\u70b9\u96f6\u6563\u7684\u7b14\u8bb0\u3002\u4e09\u5929\u540e&#xff0c;\u4f60\u5728\u5199 C&#043;&#043; \u4ee3\u7801\u65f6\u9047\u5230\u4e86\u4e00\u4e2a\u5185\u5b58\u6cc4\u6f0f\u7684 Core Dump&#xff0c;\u6b7b\u6d3b\u60f3\u4e0d\u8d77\u6559\u7a0b\u91cc\u662f\u600e\u4e48\u89c4\u907f\u7684\u3002\u4f60\u53ea\u80fd\u7edd\u671b\u5730\u5728\u89c6\u9891\u8fdb\u5ea6\u6761\u4e0a\u75af\u72c2\u62d6\u62fd&#xff0c;\u542c\u7740 2 \u500d\u901f\u7684\u58f0\u97f3\u5bfb\u627e\u7ebf\u7d22\u3002<\/p>\n<p>\u2705 Bilibili-RAG \u7684\u4f53\u9a8c&#xff1a; \u4f60\u76f4\u63a5\u5728\u804a\u5929\u6846\u91cc\u968f\u624b\u6572\u4e00\u884c\u5b57&#xff0c;\u5c31\u50cf\u5728\u95ee\u90a3\u4e2a\u521a\u7ed9\u4f60\u505a\u8fc7\u5206\u4eab\u7684\u8d44\u6df1\u67b6\u6784\u5e08\u3002<\/p>\n<p>\u4f60&#xff1a;\u201c\u6211\u8bb0\u5f97\u90a3\u4e2a\u64ad\u653e\u91cf\u5f88\u9ad8\u7684 RK3588 \u6559\u7a0b\u91cc&#xff0c;\u8bb2\u8fc7 NPU \u5185\u5b58\u6cc4\u6f0f\u7684\u95ee\u9898&#xff0c;\u5177\u4f53\u662f\u600e\u4e48\u89c4\u907f\u6765\u7740&#xff1f;\u662f\u7528\u54ea\u4e2a\u51fd\u6570\u91ca\u653e&#xff1f;\u201d<\/p>\n<p>Bilibili-RAG&#xff1a;\u201c(\u4e24\u79d2\u540e) \u5b9a\u4f4d\u5230\u300aRK3588\u4ece\u5165\u95e8\u5230\u7cbe\u901a\u300b\u89c6\u9891\u3002\u6de1\u5b9a&#xff0c;\u8bb2\u8005\u5728 01:12:05 \u5904\u91cd\u70b9\u5f3a\u8c03\u4e86\u8fd9\u4e2a\u95ee\u9898&#xff1a;<\/p>\n<p>&#x1f6a8; \u95ee\u9898\u6839\u6e90&#xff1a;\u4ed6\u6307\u51fa\u5343\u4e07\u4e0d\u8981\u5728\u6bcf\u6b21\u63a8\u7406\u7684\u5faa\u73af\u91cc\u53cd\u590d\u8c03\u7528 rknn_inputs_set&#xff0c;\u8fd9\u4f1a\u5bfc\u81f4\u663e\u5b58\u788e\u7247\u5316\u3002<\/p>\n<p>&#x1f4a1; \u89e3\u51b3\u65b9\u6848&#xff1a;\u4ed6\u5efa\u8bae\u5728\u521d\u59cb\u5316\u9636\u6bb5&#xff0c;\u4e00\u6b21\u6027\u5206\u914d\u597d Zero-Copy \u5185\u5b58\u3002\u89c6\u9891\u4e2d\u4ed6\u5c55\u793a\u7684\u793a\u4f8b\u4ee3\u7801\u4f7f\u7528\u4e86\u5e95\u5c42 dma_buf \u673a\u5236\u6765\u7ba1\u7406\u751f\u547d\u5468\u671f\u3002<\/p>\n<p>*\u9700\u8981\u6211\u6839\u636e\u4ed6\u7684\u8fd9\u51e0\u5206\u949f\u53e3\u8ff0&#xff0c;\u76f4\u63a5\u4e3a\u4f60\u751f\u6210\u4fee\u590d\u8fd9\u6bb5\u5185\u5b58\u6cc4\u6f0f\u7684 C&#043;&#043; \u4f2a\u4ee3\u7801\u5417&#xff1f;*&#xff08;\u51fa\u5904\u70b9\u51fb\u76f4\u8fbe&#xff1a;[01:12:05-01:14:20]&#xff09;\u201d<\/p>\n<hr \/>\n<h4>\u573a\u666f 2&#xff1a;Podcast Harvester&#xff08;\u957f\u8bbf\u8c08\u4e0e\u64ad\u5ba2\u77e5\u8bc6\u69a8\u6c41\u673a&#xff09;<\/h4>\n<p>\u274c \u4ee5\u524d&#xff1a; \u901a\u52e4\u8def\u4e0a\u542c\u5b8c\u4e00\u671f\u4fe1\u606f\u5bc6\u5ea6\u6781\u9ad8\u7684 AI \u884c\u4e1a\u5bf9\u8c08\u64ad\u5ba2&#xff0c;\u4f60\u9891\u9891\u70b9\u5934&#xff0c;\u89c9\u5f97\u918d\u9190\u704c\u9876\u3002\u4f46\u5f53\u4f60\u5750\u5230\u7535\u8111\u524d&#xff0c;\u51c6\u5907\u5199\u4e00\u7bc7\u6280\u672f\u535a\u5ba2\u8bb0\u5f55\u7075\u611f\u65f6&#xff0c;\u5927\u8111\u5374\u4e00\u7247\u7a7a\u767d&#xff0c;\u8fde\u4e00\u53e5\u5b8c\u6574\u7684\u91d1\u53e5\u90fd\u590d\u8ff0\u4e0d\u51fa\u6765\u3002<\/p>\n<p>\u2705 Bilibili-RAG \u7684\u4f53\u9a8c&#xff1a; \u638f\u51fa\u624b\u673a\u70b9\u4e2a\u6536\u85cf&#xff0c;\u7136\u540e\u628a\u63d0\u70bc\u7684\u5de5\u4f5c\u4e22\u7ed9\u4f60\u7684\u672c\u5730\u5927\u8111\u3002<\/p>\n<p>\u4f60&#xff1a;\u201c\u5e2e\u6211\u63d0\u70bc\u4e00\u4e0b\u6211\u4eca\u5929\u65e9\u4e0a\u653e\u8fdb\u6536\u85cf\u5939\u7684\u90a3\u671f\u5173\u4e8e\u5927\u6a21\u578b\u5546\u4e1a\u5316\u7684\u64ad\u5ba2\u3002\u627e\u51fa\u5176\u4e2d\u6700\u53cd\u5e38\u8bc6\u7684\u4e09\u4e2a\u89c2\u70b9&#xff0c;\u6211\u8981\u5199\u7bc7\u535a\u5ba2\u3002\u201d<\/p>\n<p>Bilibili-RAG&#xff1a;\u201c\u5df2\u626b\u63cf\u300aAI \u65f6\u4ee3\u751f\u5b58\u6307\u5357\u300b\u957f\u8fbe 110 \u5206\u949f\u7684\u97f3\u9891\u3002\u8df3\u8fc7\u5bd2\u6684\u4e0e\u5e9f\u8bdd&#xff0c;\u4e3a\u4f60\u63d0\u53d6\u51fa\u4ee5\u4e0b\u4e09\u4e2a\u53cd\u5171\u8bc6\u5e72\u8d27&#xff1a;<\/p>\n<p>1\ufe0f\u20e3 \u7b97\u529b\u4e0d\u662f\u62a4\u57ce\u6cb3&#xff0c;\u6570\u636e\u95ed\u73af\u624d\u662f&#xff1a;\u5609\u5bbe\u5728 \u63d0\u5230&#xff0c;\u5355\u7eaf\u62fc\u7b97\u529b\u6700\u7ec8\u4f1a\u9677\u5165\u540c\u8d28\u5316\u4ef7\u683c\u6218&#xff0c;\u62e5\u6709\u5782\u76f4\u573a\u666f\u7684\u4e13\u6709\u6570\u636e\u6d41\u624d\u80fd\u6d3b\u4e0b\u6765\u3002<\/p>\n<p>2\ufe0f\u20e3 Agent \u7684\u7ec8\u5c40\u4e0d\u662f\u53d6\u4ee3\u4eba&#xff0c;\u800c\u662f\u4ea7\u751f\u65b0\u5de5\u79cd&#xff1a;[45:30] \u5904\u8bb2\u8005\u9884\u6d4b&#xff0c;\u672a\u6765\u4f1a\u51fa\u73b0 \u2018AI \u7267\u7f8a\u4eba\u2019&#xff08;\u8d1f\u8d23\u7f16\u6392\u591a\u4e2a Agent \u534f\u4f5c&#xff09;\u8fd9\u79cd\u65b0\u5c97\u4f4d\u3002<\/p>\n<p>3\ufe0f\u20e3 \u5f00\u6e90\u6a21\u578b\u7684\u76c8\u5229\u51fa\u8def\u5728\u4e8e\u5356\u670d\u52a1&#xff1a;[01:15:20] \u5609\u5bbe\u4e3e\u4e86 RedHat \u516c\u53f8\u7684\u7ecf\u5178\u6848\u4f8b\u3002<\/p>\n<p>*\u6211\u5df2\u7ecf\u4e3a\u4f60\u5c06\u8fd9\u4e9b\u89c2\u70b9\u6574\u7406\u6210\u4e86\u9002\u5408\u5199\u535a\u5ba2\u7684 Markdown \u5927\u7eb2\u3002\u8981\u987a\u4fbf\u5e2e\u4f60\u62df\u5b9a\u51e0\u4e2a\u5438\u5f15\u4eba\u7684\u535a\u5ba2\u6807\u9898\u5417&#xff1f;*\u201d<\/p>\n<hr \/>\n<h4>\u573a\u666f 3&#xff1a;The Interview \/ Exam Prep&#xff08;\u6c42\u804c\u7a81\u51fb\u4e0e\u9762\u8bd5\u6a21\u62df&#xff09;<\/h4>\n<p>\u274c \u4ee5\u524d&#xff1a; \u4e34\u8fd1\u9762\u8bd5\u6216\u671f\u672b\u8003&#xff0c;\u4f60\u628a\u4e00\u5806\u201c\u516b\u80a1\u6587\u7a81\u51fb\u201d\u3001\u201cTop 100 \u7b97\u6cd5\u9762\u8bd5\u9898\u201d\u585e\u8fdb\u6536\u85cf\u5939\u3002\u7136\u540e\u5f00\u542f\u75db\u82e6\u7684 2 \u500d\u901f\u91cd\u6e29&#xff0c;\u867d\u7136\u770b\u5b8c\u4e86&#xff0c;\u4f46\u5230\u4e86\u8003\u573a\u4e0a\u4f9d\u7136\u8111\u5b50\u77ed\u8def&#xff0c;\u56e0\u4e3a\u4f60\u770b\u89c6\u9891\u65f6\u662f\u201c\u88ab\u52a8\u63a5\u53d7\u201d&#xff0c;\u800c\u4e0d\u662f\u201c\u4e3b\u52a8\u8f93\u51fa\u201d\u3002<\/p>\n<p>\u2705 Bilibili-RAG \u7684\u4f53\u9a8c&#xff1a; \u628a\u4e00\u6574\u4e2a\u7cfb\u5217\u7684\u7f51\u8bfe\u585e\u7ed9\u5b83&#xff0c;\u8ba9\u5b83\u5728\u4e00\u591c\u4e4b\u95f4\u6784\u5efa\u51fa\u77e5\u8bc6\u56fe\u8c31&#xff0c;\u7136\u540e\u53cd\u5411\u5bf9\u4f60\u8fdb\u884c\u201c\u7075\u9b42\u62f7\u95ee\u201d\u3002<\/p>\n<p>\u4f60&#xff1a;\u201c\u4e0b\u5468\u6211\u8981\u9762\u4e00\u5bb6 AI \u516c\u53f8\u7684\u7b97\u6cd5\u5c97\u3002\u628a\u6211\u90a3\u4e2a\u547d\u540d\u4e3a\u2019\u9762\u8bd5\u7a81\u51fb\u2019\u7684\u6536\u85cf\u5939\u626b\u4e00\u904d&#xff0c;\u91cd\u70b9\u62bd\u67e5\u6211\u5173\u4e8e Transformer \u5e95\u5c42\u903b\u8f91\u7684\u7406\u89e3\u3002\u201d<\/p>\n<p>Bilibili-RAG&#xff1a;\u201c\u5df2\u52a0\u8f7d\u8be5\u6536\u85cf\u5939\u4e0b\u7684 24 \u4e2a\u9ad8\u5206\u8bb2\u5ea7\u3002\u73b0\u5728\u5f00\u542f\u9762\u8bd5\u6a21\u62df\u6a21\u5f0f&#xff1a;<\/p>\n<p>&#x1f3af; \u7b2c\u4e00\u9898&#xff08;\u6765\u81ea\u300a\u6df1\u5165\u6d45\u51fa Transformer\u300b[34:10]&#xff09;&#xff1a;\u8bb2\u8005\u5f53\u65f6\u63d0\u5230\u4e86 Self-Attention \u7684\u65f6\u95f4\u590d\u6742\u5ea6\u662f<br \/>\n<span class=\"katex--display\"><span class=\"katex-display\"><span class=\"katex\"><span class=\"katex-mathml\">O(N2)<br \/>\nO(N^2)<br \/>\n<\/span><span class=\"katex-html\"><span class=\"base\"><span class=\"strut\" style=\"height: 1.1141em;vertical-align: -0.25em\"><\/span><span class=\"mord mathnormal\" style=\"margin-right: 0.0278em\">O<\/span><span class=\"mopen\">(<\/span><span class=\"mord\"><span class=\"mord mathnormal\" style=\"margin-right: 0.109em\">N<\/span><span class=\"msupsub\"><span class=\"vlist-t\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height: 0.8641em\"><span class=\"\" style=\"top: -3.113em;margin-right: 0.05em\"><span class=\"pstrut\" style=\"height: 2.7em\"><\/span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\">2<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span><\/span><\/span><br \/>\n\u3002\u5982\u679c\u6211\u4eec\u7684\u8f93\u5165\u5e8f\u5217\u957f\u5ea6\u7ffb\u500d&#xff0c;\u663e\u5b58\u5360\u7528\u4f1a\u53d1\u751f\u4ec0\u4e48\u53d8\u5316&#xff1f;\u5f53\u65f6\u7684\u89c6\u9891\u91cc\u63d0\u5230\u4e86\u54ea\u4e24\u79cd\u4e3b\u6d41\u7684\u5de5\u7a0b\u4f18\u5316\u65b9\u6848&#xff1f;<\/p>\n<p>&#xff08;\u4f60\u56de\u590d\u4f60\u7684\u7b54\u6848\u540e\u2026&#xff09;<\/p>\n<p>&#x1f4dd; RAG \u7684\u70b9\u8bc4&#xff1a;\u601d\u8def\u5927\u4f53\u6b63\u786e&#xff01;\u4e0d\u8fc7\u4f60\u6f0f\u6389\u4e86\u89c6\u9891\u91cc \u63d0\u5230\u7684 FlashAttention \u673a\u5236\u3002\u8bb2\u8005\u7684\u539f\u8bdd\u662f&#xff1a;\u2018FlashAttention \u901a\u8fc7 tiling \u7b56\u7565\u51cf\u5c11\u4e86 HBM \u7684\u8bfb\u5199\u6b21\u6570&#xff0c;\u4ece IO \u5c42\u9762\u7a81\u7834\u4e86\u74f6\u9888\u2019\u3002*\u9700\u8981\u6211\u628a\u8fd9\u90e8\u5206\u7684\u9010\u5b57\u7a3f\u5b8c\u6574\u8c03\u51fa\u6765\u7ed9\u4f60\u590d\u4e60\u4e00\u4e0b\u5417&#xff1f;*\u201d<\/p>\n<hr \/>\n<h4>\u6838\u5fc3\u5dee\u5f02\u70b9\u603b\u7ed3&#xff1a;<\/h4>\n<ul>\n<li>\u4e0d\u4ec5\u4ec5\u662f\u201c\u68c0\u7d22\u201d\u5173\u952e\u5b57&#xff0c;\u800c\u662f\u201c\u7406\u89e3\u201d\u77e5\u8bc6\u70b9&#xff08;\u76f4\u63a5\u56de\u7b54\u5e95\u5c42\u903b\u8f91&#xff0c;\u800c\u4e0d\u662f\u544a\u8bc9\u4f60\u89c6\u9891\u91cc\u63d0\u5230\u4e86\u8fd9\u4e2a\u8bcd&#xff09;\u3002<\/li>\n<li>\u4e0d\u4ec5\u4ec5\u662f\u201c\u88ab\u52a8\u201d\u9605\u8bfb&#xff0c;\u800c\u662f\u201c\u4e3b\u52a8\u201d\u8f93\u51fa&#xff08;\u80fd\u53cd\u5411\u63d0\u95ee\u3001\u51fa\u9898\u6a21\u62df&#xff0c;\u9a8c\u8bc1\u4f60\u7684\u5b66\u4e60\u6548\u679c&#xff09;\u3002<\/li>\n<li>\u8de8\u8d8a\u89c6\u9891\u8fb9\u754c&#xff1a;\u4e0d\u518d\u53d7\u9650\u4e8e\u5355\u96c6\u89c6\u9891\u7684\u8fdb\u5ea6\u6761&#xff0c;\u800c\u662f\u5728\u6570\u767e\u4e2a\u89c6\u9891\u6784\u5efa\u7684\u5168\u5c40\u77e5\u8bc6\u7f51\u7edc\u4e2d\u8fdb\u884c\u4ea4\u53c9\u6bd4\u5bf9\u548c\u603b\u7ed3\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>\u4e94\u3001\u6280\u672f\u6df1\u5ea6&#xff1a;\u4ece\u89c6\u9891\u6d41\u5230\u4e13\u5c5e\u77e5\u8bc6\u5e93\u7684\u9b54\u6cd5<\/h3>\n<p>\u5c06 B \u7ad9\u51e0\u5341\u4e2a\u5c0f\u65f6\u7684\u6d41\u5a92\u4f53\u89c6\u9891\u8f6c\u5316\u4e3a\u53ef\u4ee5\u79d2\u7ea7\u68c0\u7d22\u7684\u672c\u5730\u77e5\u8bc6\u5e93&#xff0c;\u7edd\u975e\u5199\u4e24\u884c API \u8c03\u7528\u90a3\u4e48\u7b80\u5355\u3002\u5728\u6df1\u6316 Bilibili-RAG \u7684\u5e95\u5c42\u67b6\u6784\u65f6&#xff0c;\u4f60\u4f1a\u53d1\u73b0\u8fd9\u662f\u4e00\u5957\u6781\u5176\u7cbe\u5bc6\u7684\u5de5\u7a0b\u7ec4\u5408\u62f3\u3002\u5904\u7406\u590d\u6742\u591a\u5a92\u4f53\u6570\u636e\u4e0e AI \u6a21\u578b\u8c03\u5ea6&#xff0c;\u6781\u5ea6\u8003\u9a8c\u7cfb\u7edf\u5bf9\u8fb9\u754c\u60c5\u51b5\u7684\u5904\u7406\u80fd\u529b\u548c\u67b6\u6784\u7684\u89e3\u8026\u8bbe\u8ba1\u3002<\/p>\n<h4>5.1 \u5f02\u6b65\u9a71\u52a8\u7684\u73b0\u4ee3\u8303\u5f0f&#xff1a;FastAPI &#043; Next.js<\/h4>\n<p>\u4f20\u7edf\u7684\u540c\u6b65 Web \u6846\u67b6\u5728\u9762\u5bf9\u5927\u6a21\u578b&#xff08;LLM&#xff09;\u65f6\u5e38\u5e38\u663e\u5f97\u529b\u4e0d\u4ece\u5fc3&#xff0c;\u56e0\u4e3a\u5927\u6a21\u578b\u7684\u63a8\u7406\u548c\u6d41\u5f0f\u8f93\u51fa\u662f\u5178\u578b\u7684\u91cd IO \u963b\u585e\u4efb\u52a1\u3002\u9879\u76ee\u91c7\u7528\u4e86\u6781\u5176\u7eaf\u7cb9\u4e14\u73b0\u4ee3\u7684\u524d\u540e\u7aef\u5206\u79bb\u67b6\u6784&#xff0c;\u5c06\u6027\u80fd\u538b\u69a8\u5230\u4e86\u6781\u81f4\u3002<\/p>\n<h5>\u26a1 \u6838\u5fc3\u7ec4\u4ef6\u89e3\u6784&#xff1a;<\/h5>\n<ul>\n<li>\u2699\ufe0f \u540e\u7aef\u4e2d\u67a2 (FastAPI &#043; Python)&#xff1a;\n<ul>\n<li>\u5f02\u6b65\u5e76\u53d1&#xff1a;\u5f97\u76ca\u4e8e FastAPI \u539f\u751f\u7684 async\/await \u652f\u6301&#xff0c;\u7cfb\u7edf\u5728\u5904\u7406\u52a8\u8f84\u6570\u5341\u5146\u7684\u97f3\u9891\u4e0b\u8f7d\u3001\u8f6c\u7801\u4ee5\u53ca\u5927\u6a21\u578b\u957f\u6587\u672c\u7684\u6d41\u5f0f\u751f\u6210&#xff08;Streaming&#xff09;\u65f6&#xff0c;\u4e3b\u7ebf\u7a0b\u5b8c\u5168\u4e0d\u4f1a\u88ab\u963b\u585e\u3002<\/li>\n<li>AI \u751f\u6001\u65e0\u7f1d\u63a5\u5165&#xff1a;Python \u4f5c\u4e3a AI \u9886\u57df\u7684\u7b2c\u4e00\u8bed\u8a00&#xff0c;\u8ba9\u540e\u7aef\u80fd\u6781\u5176\u4f18\u96c5\u5730\u96c6\u6210 LangChain\u3001DashScope (\u901a\u4e49\u5343\u95ee) \u7b49\u57fa\u7840\u8bbe\u65bd\u3002<\/li>\n<\/ul>\n<\/li>\n<li>&#x1f3a8; \u4ea4\u4e92\u7ec8\u7aef (Next.js &#043; Tailwind CSS)&#xff1a;\n<ul>\n<li>\u54cd\u5e94\u5f0f\u6d41\u5f0f\u6e32\u67d3&#xff1a;\u524d\u7aef\u65e0\u9700\u7b49\u5f85\u957f\u7bc7\u5927\u8bba\u5168\u90e8\u751f\u6210\u5b8c\u6bd5&#xff0c;\u800c\u662f\u50cf ChatGPT \u4e00\u6837&#xff0c;\u5b9e\u73b0\u6beb\u79d2\u7ea7\u7684\u6253\u5b57\u673a\u6548\u679c\u8f93\u51fa\u3002<\/li>\n<li>\u6781\u7b80\u7ec4\u4ef6\u6001&#xff1a;\u629b\u5f03\u4e86\u5197\u4f59\u7684 UI \u5e93&#xff0c;\u901a\u8fc7 Tailwind \u5b9e\u73b0\u4e86\u6781\u5ba2\u98ce\u683c\u7684\u6781\u7b80\u804a\u5929\u4ea4\u4e92\u754c\u9762\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u6838\u5fc3\u4ee3\u7801\u5b9e\u5f55&#xff1a;\u6d41\u5f0f\u54cd\u5e94\u7684\u4f18\u96c5\u5b9e\u73b0<\/p>\n<p><span class=\"token comment\"># app\/api\/chat.py<\/span><br \/>\n<span class=\"token decorator annotation punctuation\">&#064;app<span class=\"token punctuation\">.<\/span>post<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\/chat\/stream&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">async<\/span> <span class=\"token keyword\">def<\/span> <span class=\"token function\">chat_stream<\/span><span class=\"token punctuation\">(<\/span>request<span class=\"token punctuation\">:<\/span> ChatQuery<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token comment\"># \u5f02\u6b65\u751f\u6210\u5668&#xff0c;\u786e\u4fdd RAG \u68c0\u7d22\u548c LLM \u63a8\u7406\u7684\u975e\u963b\u585e\u6d41\u5f0f\u8f93\u51fa<\/span><br \/>\n    <span class=\"token keyword\">async<\/span> <span class=\"token keyword\">def<\/span> <span class=\"token function\">generate<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token keyword\">async<\/span> <span class=\"token keyword\">for<\/span> chunk <span class=\"token keyword\">in<\/span> rag_chain<span class=\"token punctuation\">.<\/span>astream<span class=\"token punctuation\">(<\/span>request<span class=\"token punctuation\">.<\/span>query<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n            <span class=\"token keyword\">yield<\/span> <span class=\"token string-interpolation\"><span class=\"token string\">f&#034;data: <\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span>chunk<span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\">\\\\n\\\\n&#034;<\/span><\/span><\/p>\n<p>    <span class=\"token keyword\">return<\/span> StreamingResponse<span class=\"token punctuation\">(<\/span>generate<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> media_type<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;text\/event-stream&#034;<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>\u6280\u672f\u4ef7\u503c&#xff1a; \u8fd9\u610f\u5473\u7740\u5373\u4f7f\u4f60\u5728\u4e00\u53f0\u6027\u80fd\u6709\u9650\u7684\u8f7b\u91cf\u7ea7\u4e91\u4e3b\u673a\u6216\u8001\u65e7\u7b14\u8bb0\u672c\u4e0a\u90e8\u7f72 Bilibili-RAG&#xff0c;\u5b83\u4f9d\u7136\u80fd\u4ece\u5bb9\u5e94\u5bf9\u591a\u8f6e\u957f\u6587\u672c\u5bf9\u8bdd&#xff0c;\u4e0d\u4f1a\u51fa\u73b0\u201c\u8f6c\u5708\u5361\u6b7b\u201d\u7684\u5d29\u6e83\u4f53\u9a8c\u3002<\/p>\n<hr \/>\n<h4>5.2 \u97f3\u9891\u5904\u7406\u7684\u201c\u6697\u529f\u592b\u201d&#xff1a;\u66b4\u529b\u964d\u7ef4\u4e0e\u89c4\u8303\u5316<\/h4>\n<p>\u4efb\u4f55\u771f\u6b63\u5728\u4e00\u7ebf\u6572\u8fc7\u4ee3\u7801\u3001\u5904\u7406\u8fc7\u97f3\u9891\u94fe\u8def\u7684\u5f00\u53d1\u8005\u90fd\u6df1\u6709\u4f53\u4f1a&#xff1a;\u97f3\u89c6\u9891\u683c\u5f0f\u7684\u4e0d\u7edf\u4e00&#xff0c;\u662f\u6240\u6709\u5669\u68a6\u7684\u5f00\u59cb\u3002Bilibili-RAG \u5e76\u6ca1\u6709\u5c06\u539f\u59cb\u89c6\u9891\u76f4\u63a5\u6254\u7ed9 ASR&#xff08;\u8bed\u97f3\u8bc6\u522b&#xff09;\u63a5\u53e3&#xff0c;\u800c\u662f\u5f15\u5165\u4e86\u4e00\u9053\u6781\u5176\u5f3a\u786c\u7684\u89c4\u8303\u5316\u7f51\u5173\u3002<\/p>\n<h5>&#x1f3a7; FFmpeg \u5f3a\u5236\u6e05\u6d17\u6d41<\/h5>\n<p>\u7cfb\u7edf\u5728\u62c9\u53d6\u5230\u5a92\u4f53\u6587\u4ef6\u540e&#xff0c;\u4f1a\u65e0\u60c5\u5730\u901a\u8fc7\u5e95\u5c42 ffmpeg \u6267\u884c\u201c\u53bb\u58f3\u4e0e\u964d\u7ef4\u201d\u6253\u51fb\u3002\u65e0\u8bba\u6e90\u89c6\u9891\u662f\u5e9e\u5927\u7684\u591a\u8f68 MKV&#xff0c;\u8fd8\u662f\u5947\u8469\u7f16\u7801\u7684 MP4&#xff0c;\u90fd\u4f1a\u88ab\u5f3a\u5236\u6807\u51c6\u5316&#xff1a;<\/p>\n<li>\u89c6\u9891\u5265\u79bb (Demuxing)&#xff1a;\u629b\u5f03\u6240\u6709\u89c6\u89c9\u5e27&#xff0c;\u53ea\u7559\u58f0\u97f3&#xff0c;\u5c06\u51e0\u4e2a GB \u7684\u6587\u4ef6\u77ac\u95f4\u7f29\u51cf 90%\u3002<\/li>\n<li>\u5f3a\u5236\u964d\u91c7\u6837 (Downsampling)&#xff1a;\u5c06\u4e3b\u6d41\u7684 44.1kHz \u6216 48kHz \u97f3\u9891&#xff0c;\u91cd\u91c7\u6837\u4e3a 16kHz\u3002<\/li>\n<li>\u58f0\u9053\u5408\u5e76 (Mono Conversion)&#xff1a;\u5c06\u7acb\u4f53\u58f0&#xff08;\u751a\u81f3 5.1 \u73af\u7ed5\u58f0&#xff09;\u5f3a\u5236\u6df7\u6d41\u4e3a\u5355\u58f0\u9053\u3002<\/li>\n<p>\u5e95\u5c42\u5904\u7406\u903b\u8f91\u89e3\u6790&#xff1a;<\/p>\n<p><span class=\"token comment\"># Bilibili-RAG \u5185\u90e8\u89e6\u53d1\u7684\u5178\u578b ffmpeg \u964d\u7ef4\u6307\u4ee4<\/span><br \/>\nffmpeg <span class=\"token parameter variable\">-i<\/span> <span class=\"token string\">&#034;bilibili_source_video.mp4&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-vn<\/span> <span class=\"token punctuation\">\\\\<\/span>                        <span class=\"token comment\"># \u5265\u79bb\u89c6\u9891\u753b\u9762<\/span><br \/>\n  <span class=\"token parameter variable\">-acodec<\/span> pcm_s16le <span class=\"token punctuation\">\\\\<\/span>          <span class=\"token comment\"># \u5f3a\u5236\u8f6c\u6362\u4e3a 16-bit PCM \u7f16\u7801<\/span><br \/>\n  <span class=\"token parameter variable\">-ar<\/span> <span class=\"token number\">16000<\/span> <span class=\"token punctuation\">\\\\<\/span>                  <span class=\"token comment\"># \u91cd\u91c7\u6837\u81f3 16000 Hz<\/span><br \/>\n  <span class=\"token parameter variable\">-ac<\/span> <span class=\"token number\">1<\/span> <span class=\"token punctuation\">\\\\<\/span>                      <span class=\"token comment\"># \u5f3a\u5236\u6df7\u6d41\u4e3a\u5355\u58f0\u9053 (1 channel)<\/span><br \/>\n  <span class=\"token string\">&#034;normalized_audio.wav&#034;<\/span><\/p>\n<p>\u4e3a\u4ec0\u4e48\u5fc5\u987b\u662f 16kHz \u5355\u58f0\u9053&#xff1f; \u76ee\u524d\u5e02\u9762\u4e0a\u9876\u7ea7\u7684 ASR \u5927\u6a21\u578b&#xff08;\u5982 Whisper, DashScope \u8bed\u97f3\u6a21\u578b&#xff09;&#xff0c;\u5176\u5e95\u5c42\u8bad\u7ec3\u6570\u636e\u7edd\u5927\u591a\u6570\u662f\u57fa\u4e8e 16kHz \u7684\u5355\u58f0\u9053\u8bed\u97f3\u3002\u5f3a\u884c\u5582\u7ed9\u5b83\u4eec 48kHz \u7684\u7acb\u4f53\u58f0\u4e0d\u4ec5\u6beb\u65e0\u610f\u4e49&#xff0c;\u8fd8\u4f1a\u5bfc\u81f4 Token \u6d88\u8017\u7ffb\u500d\u3001\u7f51\u7edc\u4f20\u8f93\u6781\u901f\u6076\u5316&#xff0c;\u751a\u81f3\u589e\u52a0\u6a21\u578b\u7684\u8bc6\u522b\u566a\u97f3\u3002\u8fd9\u9053\u201c\u6697\u529f\u592b\u201d\u76f4\u63a5\u5c06\u8bed\u97f3\u8bc6\u522b\u7684\u51c6\u786e\u7387\u62c9\u5347\u4e86\u4e00\u4e2a\u53f0\u9636\u3002<\/p>\n<hr \/>\n<h4>5.3 \u6570\u636e\u5e93\u53cc\u8f68\u5236&#xff1a;\u8f7b\u91cf\u4e0e\u9ad8\u6548\u7684\u5b8c\u7f8e\u5e73\u8861<\/h4>\n<p>\u5982\u679c\u628a\u4f20\u7edf\u7684 MySQL \u642c\u8fdb\u6765&#xff0c;\u8fd9\u4e2a\u9879\u76ee\u5bf9\u4e2a\u4eba\u5f00\u53d1\u8005\u6765\u8bf4\u5c31\u663e\u5f97\u592a\u91cd\u4e86\u3002\u4e3a\u4e86\u4fdd\u8bc1\u5728\u672c\u5730\u5f00\u53d1\u673a\u4e0a\u7684\u987a\u6ed1\u4f53\u9a8c&#xff0c;Bilibili-RAG \u8bbe\u8ba1\u4e86\u4e00\u5957\u975e\u5e38\u7cbe\u5999\u7684\u53cc\u8f68\u6570\u636e\u8def\u7531\u673a\u5236&#xff0c;\u5bf9\u6570\u636e\u7684\u201c\u5173\u7cfb\u201d\u4e0e\u201c\u8bed\u4e49\u201d\u8fdb\u884c\u4e86\u89e3\u8026\u3002<\/p>\n<h5>&#x1f5c4;\ufe0f \u7ed3\u6784\u5316\u4e0e\u9ad8\u7ef4\u5ea6\u7684\u5206\u6cbb\u7b56\u7565<\/h5>\n<p>\u7cfb\u7edf\u5c06\u6570\u636e\u5b58\u50a8\u5f7b\u5e95\u5288\u6210\u4e86\u4e24\u534a&#xff0c;\u5404\u53f8\u5176\u804c&#xff1a;<\/p>\n<ul>\n<li>&#x1f4d8; \u5173\u7cfb\u8f68\u9053 (SQLite) \u2014\u2014 \u201c\u8bb0\u4e8b\u672c\u201d\n<ul>\n<li>\u804c\u8d23&#xff1a;\u7ba1\u7406\u786e\u5b9a\u7684\u3001\u7ed3\u6784\u5316\u7684\u5143\u6570\u636e\u3002<\/li>\n<li>\u5b58\u50a8\u5185\u5bb9&#xff1a;\u7528\u6237\u7684\u6536\u85cf\u5939\u5217\u8868\u3001\u89c6\u9891\u7684 BV \u53f7\u3001UP \u4e3b\u4fe1\u606f\u3001\u89c6\u9891\u5206 P \u7ed3\u6784\u3001\u4ee5\u53ca\u5386\u53f2\u5bf9\u8bdd Session\u3002<\/li>\n<li>\u4f18\u52bf&#xff1a;\u5355\u6587\u4ef6\u5b58\u50a8&#xff0c;\u96f6\u914d\u7f6e\u542f\u52a8&#xff0c;\u8bfb\u5199\u6781\u5feb&#xff0c;\u5b8c\u7f8e\u5951\u5408\u672c\u5730\u5316\u90e8\u7f72\u3002<\/li>\n<\/ul>\n<\/li>\n<li>&#x1f30c; \u5411\u91cf\u8f68\u9053 (ChromaDB) \u2014\u2014 \u201c\u6f5c\u610f\u8bc6\u6d77\u201d\n<ul>\n<li>\u804c\u8d23&#xff1a;\u4e13\u804c\u8d1f\u8d23\u9ad8\u7ef4\u5411\u91cf\u7684\u8ba1\u7b97\u4e0e\u8fd1\u4f3c\u6700\u8fd1\u90bb\u68c0\u7d22&#xff08;ANN&#xff09;\u3002<\/li>\n<li>\u5b58\u50a8\u5185\u5bb9&#xff1a;\u88ab\u5927\u6a21\u578b\u5207\u5272&#xff08;Chunking&#xff09;\u5e76 Embedding \u540e\u7684\u89c6\u9891\u9010\u5b57\u7a3f\u5411\u91cf\u6570\u7ec4&#xff08;\u5982 1536 \u7ef4\u7684\u6d6e\u70b9\u6570&#xff09;\u3002<\/li>\n<li>\u4f18\u52bf&#xff1a;\u5b83\u662f\u4e13\u4e3a AI \u65f6\u4ee3\u6253\u9020\u7684\u5411\u91cf\u4e2d\u67a2&#xff0c;\u5141\u8bb8\u7cfb\u7edf\u5728\u51e0\u6beb\u79d2\u5185&#xff0c;\u901a\u8fc7\u4e00\u6bb5\u6a21\u7cca\u7684\u81ea\u7136\u8bed\u8a00&#xff0c;\u4ece\u51e0\u767e\u4e07\u5b57\u7684\u8bed\u6599\u4e2d\u201c\u649e\u201d\u51fa\u8bed\u4e49\u6700\u63a5\u8fd1\u7684\u89c6\u9891\u7247\u6bb5\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u53cc\u8f68\u67e5\u8be2\u5b9e\u5f55&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u5f53\u4f60\u63d0\u95ee\u65f6&#xff0c;\u7cfb\u7edf\u5185\u90e8\u53d1\u751f\u7684\u53cc\u8f68\u534f\u540c\u903b\u8f91<\/span><br \/>\n<span class=\"token comment\"># 1. \u5148\u4ece SQLite \u83b7\u53d6\u4f60\u5f53\u524d\u9009\u4e2d\u7684\u6536\u85cf\u5939 ID \u5305\u542b\u7684\u6240\u6709\u89c6\u9891<\/span><br \/>\nvideo_ids <span class=\"token operator\">&#061;<\/span> sqlite_db<span class=\"token punctuation\">.<\/span>get_videos_by_favorite<span class=\"token punctuation\">(<\/span>fav_id<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;12345&#034;<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># 2. \u5c06\u8fd9\u4e9b ID \u4f5c\u4e3a\u8fc7\u6ee4\u6761\u4ef6&#xff08;Metadata Filter&#xff09;&#xff0c;\u53bb ChromaDB \u8fdb\u884c\u9ad8\u7ef4\u8bed\u4e49\u68c0\u7d22<\/span><br \/>\nretrieved_chunks <span class=\"token operator\">&#061;<\/span> chroma_db<span class=\"token punctuation\">.<\/span>similarity_search<span class=\"token punctuation\">(<\/span><br \/>\n    query<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;\u6a21\u578b\u63a8\u7406\u5ef6\u8fdf\u4f18\u5316\u6280\u5de7&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token builtin\">filter<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token punctuation\">{<\/span><span class=\"token string\">&#034;video_id&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token string\">&#034;$in&#034;<\/span><span class=\"token punctuation\">:<\/span> video_ids<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token comment\"># \u9501\u5b9a\u641c\u7d22\u8303\u56f4<\/span><br \/>\n    k<span class=\"token operator\">&#061;<\/span><span class=\"token number\">3<\/span> <span class=\"token comment\"># \u53ec\u56de\u6700\u76f8\u5173\u7684 3 \u4e2a\u7247\u6bb5<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><\/p>\n<p>\u8fd9\u610f\u5473\u7740\u4ec0\u4e48&#xff1f; \u8fd9\u79cd\u4f18\u96c5\u7684\u89e3\u8026&#xff0c;\u8ba9\u4f60\u65e2\u4eab\u53d7\u5230\u4e86\u5173\u7cfb\u578b\u6570\u636e\u5e93\u5728\u7ba1\u7406\u83dc\u5355\u548c\u5386\u53f2\u8bb0\u5f55\u65f6\u7684\u201c\u7edd\u5bf9\u786e\u5b9a\u6027\u201d&#xff0c;\u53c8\u83b7\u5f97\u4e86\u5411\u91cf\u6570\u636e\u5e93\u5728\u8fdb\u884c\u77e5\u8bc6\u6316\u6398\u65f6\u7684\u201c\u8d85\u5f3a\u76f4\u89c9\u201d\u3002\u6700\u91cd\u8981\u7684\u662f&#xff0c;\u6574\u4e2a\u7cfb\u7edf\u4e0d\u9700\u8981\u4f60\u989d\u5916\u90e8\u7f72\u4efb\u4f55\u5e9e\u5927\u7684\u6570\u636e\u5e93\u670d\u52a1&#xff0c;\u4e00\u4e2a pip install \u5c31\u80fd\u628a\u6574\u4e2a\u5927\u8111\u8dd1\u8d77\u6765\u3002<\/p>\n<hr \/>\n<h3>\u516d\u3001\u7ec8\u6781\u5bf9\u51b3&#xff1a;Bilibili-RAG \u4e0e\u4f20\u7edf\u7b14\u8bb0\u5de5\u5177\u7684\u8def\u7ebf\u4e4b\u4e89<\/h3>\n<p>Bilibili-RAG \u7684\u51fa\u73b0&#xff0c;\u4e0d\u4ec5\u4ec5\u662f\u591a\u4e86\u4e00\u4e2a\u89c6\u9891\u4e0b\u8f7d\u5de5\u5177&#xff0c;\u800c\u662f\u4ee3\u8868\u4e86\u4e2a\u4eba\u77e5\u8bc6\u7ba1\u7406&#xff08;PKM&#xff09;\u7684\u4e00\u573a\u8def\u7ebf\u9769\u547d\u3002<\/p>\n<p>\u5982\u679c\u8981\u7528\u4e00\u53e5\u8bdd\u603b\u7ed3\u5b83\u4e0e Notion\u3001Obsidian \u6216\u5e02\u9762\u4e0a\u5404\u79cd\u201cAI \u89c6\u9891\u603b\u7ed3\u63d2\u4ef6\u201d\u7684\u533a\u522b&#xff0c;\u90a3\u5c31\u662f&#xff1a;\u5b83\u4eec\u662f\u4f60\u7528\u6765\u624b\u52a8\u8bb0\u8d26\u7684\u201c\u6570\u5b57\u7b14\u8bb0\u672c\u201d&#xff0c;\u800c Bilibili-RAG \u662f\u81ea\u5e26\u5927\u8111\u300124\u5c0f\u65f6\u66ff\u4f60\u8bfb\u4e66\u7684\u201c\u5168\u81ea\u52a8\u5370\u949e\u673a\u201d\u3002<\/p>\n<h4>6.1 \u7ef4\u5ea6\u6253\u51fb&#xff1a;\u4e0d\u4ec5\u4ec5\u662f\u529f\u80fd\u5217\u8868<\/h4>\n<p>\u8ba9\u6211\u4eec\u8df3\u51fa\u7b80\u5355\u7684\u201c\u80fd\u4e0d\u80fd\u5bfc\u51fa\u6587\u5b57\u201d\u7684\u529f\u80fd\u5bf9\u6bd4&#xff0c;\u4ece\u66f4\u6df1\u5c42\u7684\u4fe1\u606f\u83b7\u53d6\u3001\u68c0\u7d22\u7ef4\u5ea6\u3001\u4e3b\u6743\u5f52\u5c5e\u4e0e\u6f14\u8fdb\u5f62\u6001\u56db\u4e2a\u7ef4\u5ea6\u6765\u770b\u8fd9\u573a\u535a\u5f08&#xff1a;<\/p>\n<table>\n<tr>\u6838\u5fc3\u7ef4\u5ea6&#x1f9e0; Bilibili-RAG (The AI Brain)&#x1f4dd; Notion \/ Obsidian (The Classic)\u26a1 Bilibili \u603b\u7ed3\u63d2\u4ef6 (The Fast Food)<\/tr>\n<tbody>\n<tr>\n<td>\u4fe1\u606f\u83b7\u53d6<\/td>\n<td>\u5168\u81ea\u52a8\u6d41\u6c34\u7ebf  \u4e22\u5165\u6536\u85cf\u5939\u5373\u5b8c\u6210\u62c9\u53d6\u3001\u8f6c\u5199\u3001\u5165\u5e93&#xff0c;\u5168\u7a0b\u65e0\u611f\u3002<\/td>\n<td>\u7eaf\u624b\u5de5\u8f93\u5165  \u6781\u5ea6\u4f9d\u8d56\u4e2a\u4eba\u7684\u52e4\u594b\u5ea6\u3001\u5f52\u7eb3\u80fd\u529b\u548c\u8010\u5fc3\u3002<\/td>\n<td>\u96f6\u6563\u62fc\u51d1  \u53ea\u80fd\u5355\u6b21\u83b7\u53d6\u5f53\u524d\u89c6\u9891\u522b\u4eba\u56bc\u8fc7\u7684\u6458\u8981\u6e23\u6ed3\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u68c0\u7d22\u7ef4\u5ea6<\/td>\n<td>\u9ad8\u7ef4\u8bed\u4e49\u6620\u5c04  \u627e\u7684\u662f\u201c\u610f\u601d\u201d\u3002\u54ea\u6015\u5fd8\u4e86\u4e13\u6709\u540d\u8bcd\u4e5f\u80fd\u9760\u6a21\u7cca\u63cf\u8ff0\u201c\u649e\u201d\u51fa\u6765\u3002<\/td>\n<td>\u5173\u952e\u8bcd\u5339\u914d  \u627e\u7684\u662f\u201c\u5b57\u9762\u201d\u3002\u9519\u4e00\u4e2a\u5b57\u90fd\u641c\u4e0d\u5230\u3002<\/td>\n<td>Ctrl&#043;F \/ \u65e0\u6cd5\u68c0\u7d22  \u6781\u5176\u53d7\u9650\u7684\u5355\u9875\u641c\u7d22&#xff0c;\u5173\u4e86\u7f51\u9875\u5c31\u6ca1\u4e86\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u4e3b\u6743\u5f52\u5c5e<\/td>\n<td>\u6570\u5b57\u8d44\u4ea7\u79c1\u6709  \u672c\u5730\u8fd0\u884c&#xff0c;ChromaDB \u5c31\u5728\u4f60\u7684\u786c\u76d8\u91cc\u3002\u539f\u89c6\u9891\u88ab\u5220\u4f60\u4f9d\u7136\u6709\u8bb0\u5f55\u3002<\/td>\n<td>\u4e91\u7aef\u6258\u7ba1 \/ \u683c\u5f0f\u9501\u5b9a  \u6570\u636e\u5728\u5de8\u5934\u7684\u670d\u52a1\u5668\u4e0a&#xff0c;\u6216\u8005\u9762\u4e34\u6392\u7248\u683c\u5f0f\u7684\u8fc1\u79fb\u6210\u672c\u3002<\/td>\n<td>\u5e73\u53f0\u5f3a\u5236\u7ed1\u5b9a  \u539f\u89c6\u9891\u4e00\u65e6 404 \u6216\u88ab UP \u4e3b\u8bbe\u4e3a\u79c1\u5bc6&#xff0c;\u4e00\u5207\u6e05\u96f6\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u6f14\u8fdb\u5f62\u6001<\/td>\n<td>\u751f\u6210\u5f0f\u4ea4\u4e92 (RAG)  \u77e5\u8bc6\u662f\u6d3b\u7684&#xff0c;\u4f60\u53ef\u4ee5\u968f\u65f6\u5411\u5b83\u63d0\u95ee\u3001\u8ba9\u5b83\u5bf9\u6bd4\u89c2\u70b9\u3001\u51fa\u9898\u3002<\/td>\n<td>\u9759\u6001\u5b58\u6863  \u77e5\u8bc6\u662f\u6b7b\u7684&#xff0c;\u5199\u4e0b\u6765\u662f\u4ec0\u4e48\u6837&#xff0c;\u4e09\u5e74\u540e\u8fd8\u662f\u4ec0\u4e48\u6837\u3002<\/td>\n<td>\u9605\u540e\u5373\u711a  \u770b\u5b8c\u5c31\u8d70&#xff0c;\u65e0\u6cd5\u5f62\u6210\u8de8\u89c6\u9891\u7684\u77e5\u8bc6\u7f51\u7edc\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>6.2 Bilibili-RAG \u7684\u6838\u5fc3\u62a4\u57ce\u6cb3&#xff1a;\u4e3a\u4f55\u5b83\u4e0d\u53ef\u66ff\u4ee3&#xff1f;<\/h4>\n<h5>1. \u77e5\u8bc6\u4e3b\u6743&#xff1a;\u5bf9\u6297\u201c\u8d5b\u535a\u9057\u5fd8\u201d\u4e0e\u201c404\u201d<\/h5>\n<p>\u5728\u6d41\u5a92\u4f53\u65f6\u4ee3&#xff0c;\u6211\u4eec\u5e76\u6ca1\u6709\u771f\u6b63\u62e5\u6709\u77e5\u8bc6&#xff0c;\u6211\u4eec\u53ea\u662f\u5728\u5411\u5e73\u53f0\u201c\u79df\u501f\u201d\u89c2\u770b\u6743\u3002Bilibili \u4e0a\u7684\u786c\u6838\u8bb2\u5ea7\u53ef\u80fd\u4f1a\u56e0\u4e3a\u7248\u6743\u3001UP \u4e3b\u9000\u7f51\u7b49\u539f\u56e0\u968f\u65f6\u53d8\u6210\u201c\u89c6\u9891\u5df2\u5931\u6548\u201d\u3002<\/p>\n<p>\u4f7f\u7528 Bilibili-RAG \u5c31\u50cf\u662f\u6253\u9020\u79c1\u4eba\u6570\u5b57\u672b\u65e5\u5730\u5821\u3002\u53ea\u8981\u89c6\u9891\u8fdb\u8fc7\u4f60\u7684\u6536\u85cf\u5939&#xff0c;\u5b83\u5c31\u4f1a\u88ab\u6c38\u4e45\u56fa\u5316\u5728\u672c\u5730\u7684 ChromaDB \u4e2d\u3002\u5373\u4f7f\u539f\u89c6\u9891\u88ab\u5168\u7f51\u5c01\u6740&#xff0c;\u4f60\u7684 AI \u4f9d\u7136\u80fd\u51c6\u786e\u590d\u8ff0\u51fa\u8bb2\u8005\u5728\u7b2c 45 \u5206\u949f\u8bf4\u7684\u6bcf\u4e00\u53e5\u8bdd\u3002\u5bf9\u4e8e\u6e34\u671b\u5efa\u7acb\u6c38\u4e45\u77e5\u8bc6\u5e93\u7684\u5b66\u4e60\u8005\u6765\u8bf4&#xff0c;\u8fd9\u662f\u552f\u4e00\u7684\u6297\u8106\u5f31\u65b9\u6848\u3002<\/p>\n<h5>2. \u771f\u6b63\u7684\u81ea\u52a8\u5316&#xff1a;\u8de8\u8d8a\u201c\u6536\u85cf\u201d\u4e0e\u201c\u5b66\u4e60\u201d\u7684\u9e3f\u6c9f<\/h5>\n<p>\u6211\u4eec\u90fd\u6709\u8fc7\u8fd9\u6837\u7684\u7ecf\u5386&#xff1a;\u5728 Notion \u91cc\u5efa\u4e86\u4e00\u4e2a\u6781\u5176\u7cbe\u7f8e\u7684\u201c\u5b66\u4e60\u6570\u636e\u5e93\u201d&#xff0c;\u4f46\u56e0\u4e3a\u6bcf\u6b21\u770b\u89c6\u9891\u90fd\u9700\u8981\u624b\u52a8\u6253\u5b57\u8bb0\u7b14\u8bb0&#xff0c;\u6700\u7ec8\u8fd9\u4e2a\u6570\u636e\u5e93\u53d8\u6210\u4e86\u7a7a\u58f3\u3002<\/p>\n<p>Bilibili-RAG \u5f00\u542f\u4e86**\u201c\u65e0\u611f\u6c89\u6dc0\u201d**\u9636\u6bb5\u3002<\/p>\n<ul>\n<li>\u65e7\u6a21\u5f0f&#xff1a;\u4f60 -&gt; \u770b\u89c6\u9891 -&gt; \u6682\u505c -&gt; \u5207\u6362\u5230 Obsidian -&gt; \u7ede\u5c3d\u8111\u6c41\u603b\u7ed3 -&gt; \u6253\u5b57 -&gt; \u7ee7\u7eed\u770b\u3002<\/li>\n<li>Bilibili-RAG \u6a21\u5f0f&#xff1a;\u4f60 -&gt; \u624b\u673a\u4e0a\u70b9\u4e00\u4e0b\u6536\u85cf -&gt; \u5173\u6389\u624b\u673a\u53bb\u7761\u89c9 -&gt; \u672c\u5730\u670d\u52a1\u5668\u81ea\u52a8\u4e0b\u8f7d -&gt; \u81ea\u52a8\u8f6c\u5f55 -&gt; \u81ea\u52a8\u5207\u7247 -&gt; \u81ea\u52a8\u5411\u91cf\u5316\u3002 \u7b2c\u4e8c\u5929\u9192\u6765&#xff0c;\u77e5\u8bc6\u5df2\u7ecf\u5c31\u7eea\u3002<\/li>\n<\/ul>\n<h5>3. \u5347\u7ef4\u68c0\u7d22&#xff1a;\u544a\u522b Ctrl&#043;F \u65f6\u4ee3<\/h5>\n<p>\u4eba\u7c7b\u7684\u8bb0\u5fc6\u662f\u6a21\u7cca\u7684\u3001\u7f51\u72b6\u7684&#xff0c;\u800c\u4f20\u7edf\u7b14\u8bb0\u7684\u68c0\u7d22\u662f\u7ebf\u6027\u7684\u3001\u6b7b\u677f\u7684\u3002<\/p>\n<p>Bilibili-RAG \u7684\u6838\u5fc3\u62a4\u57ce\u6cb3\u5728\u4e8e&#xff1a;\u5c06\u4e0d\u53ef\u88ab\u68c0\u7d22\u7684\u201c\u6697\u6570\u636e&#xff08;\u97f3\u89c6\u9891\u6d41&#xff09;\u201d&#xff0c;\u4f4e\u6210\u672c\u4e14\u81ea\u52a8\u5316\u5730\u8f6c\u5316\u4e3a\u4e86\u53ef\u88ab\u65e0\u6781\u68c0\u7d22\u7684\u201c\u660e\u6570\u636e&#xff08;\u5411\u91cf\u6587\u672c&#xff09;\u201d\u3002 \u5b83\u4e0d\u4ec5\u80fd\u627e\u5230\u90a3\u53e5\u8bdd&#xff0c;\u8fd8\u80fd\u5e26\u4f60\u7a7f\u8d8a\u56de\u90a3\u4e2a\u7279\u5b9a\u7684\u65f6\u95f4\u70b9&#xff0c;\u542c\u8bb2\u8005\u5f53\u65f6\u7684\u8bed\u6c14\u3002\u8fd9\u79cd\u201c\u4e0a\u4e0b\u6587\u8fd8\u539f\u201d\u80fd\u529b\u662f\u4efb\u4f55\u6587\u672c\u7b14\u8bb0\u90fd\u65e0\u6cd5\u4f01\u53ca\u7684\u3002<\/p>\n<hr \/>\n<h4>6.3 \u786c\u5e01\u7684\u80cc\u9762&#xff1a;Bilibili-RAG \u9002\u5408\u4f60\u5417&#xff1f;<\/h4>\n<p>\u6211\u4eec\u5fc5\u987b\u8bda\u5b9e\u5730\u6307\u51fa&#xff0c;\u9ad8\u9636\u7684\u6548\u7387\u662f\u6709\u4ee3\u4ef7\u7684\u3002Bilibili-RAG \u5e76\u4e0d\u662f\u4e3a\u6240\u6709\u4eba\u51c6\u5907\u7684\u3002<\/p>\n<h5>\u26a0\ufe0f \u95e8\u69db 1&#xff1a;\u8fd9\u5c31\u4e0d\u662f\u7ed9\u201c\u5c0f\u767d\u201d\u7528\u7684<\/h5>\n<p>Bilibili-RAG \u6ca1\u6709\u4e00\u952e\u5b89\u88c5\u7684 App&#xff0c;\u4e5f\u6ca1\u6709\u5ba2\u670d\u624b\u628a\u624b\u6559\u4f60\u3002<\/p>\n<p>\u4f60\u9700\u8981\u61c2\u4e00\u70b9\u7ec8\u7aef&#xff08;Terminal&#xff09;&#xff0c;\u77e5\u9053\u600e\u4e48\u914d\u7f6e Python \u73af\u5883&#xff08;Conda&#xff09;&#xff0c;\u8fd8\u8981\u5904\u7406 ffmpeg \u7684\u7cfb\u7edf\u8def\u5f84\u3002\u5982\u679c\u770b\u5230\u9ed1\u6846\u6846\u91cc\u7684\u62a5\u9519\u4fe1\u606f\u4f1a\u8ba9\u4f60\u611f\u5230\u60ca\u614c\u5931\u63aa&#xff0c;\u90a3\u4e48 Bilibili-RAG \u76ee\u524d\u53ef\u80fd\u4f1a\u8ba9\u4f60\u975e\u5e38\u632b\u8d25\u3002<\/p>\n<h5>\u26a0\ufe0f \u95e8\u69db 2&#xff1a;Token \u4e0d\u662f\u514d\u8d39\u7684&#xff08;API \u6210\u672c\u9677\u9631&#xff09;<\/h5>\n<p>\u867d\u7136\u9879\u76ee\u662f\u5f00\u6e90\u7684&#xff0c;\u4f46\u5b83\u80cc\u540e\u4f9d\u8d56\u7684\u5927\u6a21\u578b&#xff08;\u5982\u7528\u4e8e ASR \u8f6c\u5199\u548c RAG \u63a8\u7406\u7684 DashScope\/\u901a\u4e49\u5343\u95ee&#xff09;\u662f\u8ba1\u8d39\u7684\u3002<\/p>\n<p>\u5982\u679c\u4f60\u6beb\u65e0\u8282\u5236\u5730\u628a\u51e0\u767e\u4e2a\u957f\u8fbe\u51e0\u5c0f\u65f6\u7684\u6e38\u620f\u5b9e\u51b5\u5f55\u50cf\u6254\u8fdb\u53bb\u8f6c\u5f55&#xff0c;\u4f60\u7684 API \u8d26\u5355\u53ef\u80fd\u4f1a\u7ed9\u4f60\u4e00\u4e2a\u201c\u60ca\u559c\u201d\u3002\u4f60\u9700\u8981\u5177\u5907\u57fa\u672c\u7684\u6210\u672c\u610f\u8bc6&#xff0c;\u53ea\u628a\u771f\u6b63\u6709\u4ef7\u503c\u7684\u201c\u786c\u6838\u77e5\u8bc6\u201d\u5582\u7ed9\u5b83\u3002<\/p>\n<h5>\u26a0\ufe0f \u95e8\u69db 3&#xff1a;\u732b\u9f20\u6e38\u620f\u7684\u7ef4\u62a4\u6210\u672c<\/h5>\n<p>\u53ea\u8981\u4f60\u662f\u4ece\u522b\u4eba\u5bb6\u7684\u5730\u76d8&#xff08;B \u7ad9&#xff09;\u722c\u53d6\u6570\u636e&#xff0c;\u5c31\u5fc5\u7136\u9762\u4e34\u5e73\u53f0\u7684\u9632\u722c\u866b\u7b56\u7565\u66f4\u65b0\u3002<\/p>\n<p>B \u7ad9\u7684\u9274\u6743\u673a\u5236\u3001API \u63a5\u53e3\u53ef\u80fd\u4f1a\u53d1\u751f\u53d8\u52a8&#xff0c;\u5bfc\u81f4\u4f60\u7684\u515c\u5e95\u7b56\u7565\u5931\u6548\u3002\u4f60\u9700\u8981\u5173\u6ce8\u9879\u76ee\u7684 GitHub \u4ed3\u5e93&#xff0c;\u5b9a\u671f git pull \u66f4\u65b0\u4ee3\u7801\u3002\u5bf9\u4e8e\u6781\u5ba2\u6765\u8bf4&#xff0c;\u8fd9\u662f\u201c\u6298\u817e\u201d\u7684\u4e50\u8da3&#xff1b;\u4f46\u5bf9\u4e8e\u53ea\u60f3\u8981\u201c\u6c38\u8fdc\u4e0d\u51fa\u9519\u201d\u7684\u7528\u6237\u6765\u8bf4&#xff0c;\u8fd9\u5c31\u662f\u7eaf\u7cb9\u7684\u8d1f\u62c5\u3002<\/p>\n<hr \/>\n<p>\u4e00\u53e5\u8bdd\u603b\u7ed3&#xff1a;<\/p>\n<p>\u5982\u679c\u4f60\u4eab\u53d7\u624b\u5de5\u6392\u7248\u5e26\u6765\u7684\u638c\u63a7\u611f&#xff0c;\u9700\u8981\u4e00\u4e2a\u6c38\u8fdc\u4e0d\u4f1a\u56e0\u4e3a\u7f51\u7edc\u62a5\u9519\u800c\u5b95\u673a\u7684\u7cbe\u7f8e\u7b14\u8bb0\u672c&#xff0c;\u8bf7\u7ee7\u7eed\u4f7f\u7528 Notion \u6216 Obsidian\u3002<\/p>\n<p>\u5982\u679c\u4f60\u9700\u8981\u4e00\u4e2a\u80fd\u69a8\u5e72\u6d41\u5a92\u4f53\u4fe1\u606f\u5bc6\u5ea6\u3001\u62e5\u6709\u65e0\u9650\u4e0a\u4e0b\u6587\u8bb0\u5fc6\u3001\u4e14\u80fd\u968f\u65f6\u548c\u4f60\u8fdb\u884c\u786c\u6838\u5b66\u672f\u8fa9\u8bba\u7684\u201c\u6570\u5b57\u5916\u8111\u201d&#xff0c;Bilibili-RAG \u662f\u4f60\u76ee\u524d\u6700\u503c\u5f97\u6295\u8d44\u7684\u5f00\u6e90\u65b9\u6848\u3002<\/p>\n<hr \/>\n<h3>\u4e03\u3001\u5b9e\u6218\u90e8\u7f72&#xff1a;\u4e09\u6b65\u6784\u5efa\u4f60\u7684B\u7ad9\u79c1\u4eba\u667a\u5e93<\/h3>\n<p>\u662f\u65f6\u5019\u5f04\u810f\u53cc\u624b\u4e86\u3002\u65e0\u8bba\u4f60\u662f\u60f3\u5728\u5de5\u4f5c\u7ad9\u4e0a\u5feb\u901f\u5c1d\u9c9c&#xff0c;\u8fd8\u662f\u60f3\u628a\u5b83\u53d8\u6210\u65e5\u5e38\u5b66\u4e60\u6d41\u7684\u4e00\u90e8\u5206&#xff0c;Bilibili-RAG \u7684\u67b6\u6784\u8bbe\u8ba1\u90fd\u4fdd\u8bc1\u4e86\u90e8\u7f72\u7684\u6781\u7b80\u6027\u3002\u867d\u7136\u5b83\u662f\u524d\u540e\u7aef\u5206\u79bb\u7684\u67b6\u6784&#xff0c;\u4f46\u8dd1\u8d77\u6765\u53ea\u9700\u5341\u5206\u949f\u3002<\/p>\n<h4>7.1 \u524d\u7f6e\u8981\u6c42&#xff1a;\u4e3a\u7cfb\u7edf\u6ce8\u5165\u201c\u7075\u9b42\u201d<\/h4>\n<p>\u5728\u514b\u9686\u4ee3\u7801\u4e4b\u524d&#xff0c;\u4f60\u5fc5\u987b\u641e\u5b9a\u73af\u5883\u3002\u8fd9\u4e2a\u9879\u76ee\u91cd\u5ea6\u4f9d\u8d56\u97f3\u9891\u5904\u7406&#xff0c;\u56e0\u6b64 ffmpeg \u662f\u7edd\u5bf9\u7684\u6838\u5fc3\u3002<\/p>\n<p>\u524d\u7f6e\u73af\u5883\u6e05\u5355&#xff1a;<\/p>\n<ul>\n<li>Python 3.10&#043; (\u5efa\u8bae\u4f7f\u7528 Conda \u6216 venv \u8fdb\u884c\u73af\u5883\u9694\u79bb)<\/li>\n<li>Node.js v18&#043; (\u7528\u4e8e\u8fd0\u884c Next.js \u524d\u7aef)<\/li>\n<li>FFmpeg (&#x1f525; \u6838\u5fc3\u4f9d\u8d56&#xff0c;\u5fc5\u987b\u52a0\u5165\u7cfb\u7edf PATH)<\/li>\n<\/ul>\n<p>\u5b89\u88c5 FFmpeg (The Magic Step)&#xff1a;<\/p>\n<p><span class=\"token comment\"># macOS \u7528\u6237 (\u6700\u7b80\u5355)<\/span><br \/>\nbrew <span class=\"token function\">install<\/span> ffmpeg<\/p>\n<p><span class=\"token comment\"># Linux (Ubuntu\/Debian)<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> ffmpeg<\/p>\n<p><span class=\"token comment\"># Windows \u7528\u6237<\/span><br \/>\n<span class=\"token comment\"># \u8bf7\u524d\u5f80\u5b98\u7f51\u4e0b\u8f7d\u7f16\u8bd1\u597d\u7684\u4e8c\u8fdb\u5236\u5305&#xff0c;\u89e3\u538b\u540e\u52a1\u5fc5\u5c06 &#096;bin&#096; \u76ee\u5f55\u8def\u5f84\u6dfb\u52a0\u5230\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf PATH \u4e2d\u3002<\/span><\/p>\n<h4>7.2 \u540e\u7aef\u70b9\u706b&#xff1a;\u62c9\u8d77\u5927\u6a21\u578b\u4e0e\u5411\u91cf\u5f15\u64ce<\/h4>\n<p>\u540e\u7aef\u662f\u6574\u4e2a\u7cfb\u7edf\u7684\u5927\u8111&#xff0c;\u8d1f\u8d23\u89c6\u9891\u4e0b\u8f7d\u3001\u97f3\u9891\u964d\u7ef4\u3001ASR \u8f6c\u5199\u4ee5\u53ca RAG \u68c0\u7d22\u63a8\u7406\u3002<\/p>\n<p><span class=\"token comment\"># 1. \u514b\u9686\u5e76\u8fdb\u5165\u9879\u76ee\u76ee\u5f55<\/span><br \/>\n<span class=\"token function\">git<\/span> clone https:\/\/github.com\/via007\/bilibili-rag.git<br \/>\n<span class=\"token builtin class-name\">cd<\/span> bilibili-rag<\/p>\n<p><span class=\"token comment\"># 2. \u9694\u79bb\u5e76\u5b89\u88c5\u4f9d\u8d56<\/span><br \/>\nconda create <span class=\"token parameter variable\">-n<\/span> bilibili-rag <span class=\"token assign-left variable\">python<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">3.10<\/span><br \/>\nconda activate bilibili-rag<br \/>\npip <span class=\"token function\">install<\/span> <span class=\"token parameter variable\">-r<\/span> requirements.txt<\/p>\n<p><span class=\"token comment\"># 3. \u6838\u5fc3\u914d\u7f6e&#xff1a;\u5524\u9192\u4f60\u7684\u5927\u6a21\u578b<\/span><br \/>\n<span class=\"token function\">cp<\/span> .env.example .env<br \/>\n<span class=\"token comment\"># \u26a0\ufe0f \u4f7f\u7528\u4f60\u559c\u6b22\u7684\u7f16\u8f91\u5668\u6253\u5f00 .env \u6587\u4ef6&#xff0c;\u586b\u5165\u4f60\u7684 DashScope API Key<\/span><\/p>\n<p><span class=\"token comment\"># 4. \u542f\u52a8 FastAPI \u670d\u52a1<\/span><br \/>\npython <span class=\"token parameter variable\">-m<\/span> uvicorn app.main:app <span class=\"token parameter variable\">&#8211;reload<\/span><\/p>\n<p>&#x1f4a1; Pro Tip: \u542f\u52a8\u6210\u529f\u540e&#xff0c;\u6253\u5f00\u6d4f\u89c8\u5668\u8bbf\u95ee http:\/\/localhost:8000\/docs\u3002\u4f60\u4f1a\u770b\u5230\u4e00\u4e2a\u6781\u5176\u6e05\u723d\u7684 Swagger UI API \u6587\u6863&#xff0c;\u8fd9\u79cd\u6240\u89c1\u5373\u6240\u5f97\u7684\u900f\u660e\u5ea6\u975e\u5e38\u6cbb\u6108&#xff0c;\u4f60\u751a\u81f3\u53ef\u4ee5\u5728\u8fd9\u91cc\u76f4\u63a5\u6d4b\u8bd5\u540e\u7aef\u7684\u7eaf\u51c0\u63a5\u53e3\u3002<\/p>\n<h4>7.3 \u524d\u7aef\u5524\u9192&#xff1a;\u70b9\u4eae\u4ea4\u4e92\u5f0f\u7ec8\u7aef<\/h4>\n<p>\u6709\u4e86\u5f3a\u608d\u7684\u5927\u8111&#xff0c;\u6211\u4eec\u8fd8\u9700\u8981\u4e00\u4e2a\u4f18\u96c5\u7684\u63a7\u5236\u53f0\u3002\u8fdb\u5165 Next.js \u9a71\u52a8\u7684\u524d\u7aef\u9886\u5730\u3002<\/p>\n<p><span class=\"token comment\"># 1. \u53e6\u8d77\u4e00\u4e2a\u7ec8\u7aef&#xff0c;\u8fdb\u5165\u524d\u7aef\u76ee\u5f55<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> frontend<\/p>\n<p><span class=\"token comment\"># 2. \u5b89\u88c5\u524d\u7aef\u4f9d\u8d56<\/span><br \/>\n<span class=\"token function\">npm<\/span> <span class=\"token function\">install<\/span><\/p>\n<p><span class=\"token comment\"># 3. \u542f\u52a8\u5f00\u53d1\u8005\u6a21\u5f0f<\/span><br \/>\n<span class=\"token function\">npm<\/span> run dev<\/p>\n<p>\u89c1\u8bc1\u5947\u8ff9\u7684\u65f6\u523b&#xff1a;\u6253\u5f00\u6d4f\u89c8\u5668\u8bbf\u95ee http:\/\/localhost:3000&#xff0c;\u4f60\u7684\u4e13\u5c5e\u667a\u5e93\u5df2\u6b63\u5f0f\u4e0a\u7ebf&#xff01;\u73b0\u5728&#xff0c;\u626b\u7801\u767b\u5f55\u4f60\u7684 B \u7ad9\u8d26\u53f7&#xff0c;\u5c3d\u60c5\u8c03\u9063\u4f60\u7684 AI \u4e66\u7ae5\u5427\u3002<\/p>\n<h4>7.4 \u6a21\u578b\u9009\u578b\u4e0e\u8d39\u7528\u89e3\u5bc6&#xff1a;\u7ed9\u5b83\u4e00\u9897\u4ec0\u4e48&#034;\u5fc3&#034;&#xff1f;<\/h4>\n<p>Bilibili-RAG \u9ed8\u8ba4\u96c6\u6210\u4e86\u963f\u91cc\u4e91\u7684 DashScope (\u901a\u4e49\u5343\u95ee) \u751f\u6001\u3002\u56e0\u4e3a\u5b83\u662f\u76ee\u524d\u56fd\u5185\u5728\u201c\u957f\u6587\u672c\u5904\u7406\u201d\u548c\u201c\u97f3\u9891\u8f6c\u5199\u201d\u4e0a\u6027\u4ef7\u6bd4\u6700\u9ad8\u7684\u65b9\u6848\u4e4b\u4e00\u3002<\/p>\n<p>\u5728 .env \u6587\u4ef6\u4e2d&#xff0c;\u4f60\u53ef\u4ee5\u914d\u7f6e\u5e95\u5c42\u8c03\u7528\u7684\u6a21\u578b\u8d44\u6e90&#xff1a;<\/p>\n<table>\n<tr>\u6a21\u5757\u63a8\u8350\u6a21\u578b \/ \u65b9\u6848\u9002\u7528\u573a\u666f\u6210\u672c\u4f30\u7b97 (DashScope)<\/tr>\n<tbody>\n<tr>\n<td>&#x1f9e0; LLM \u5bf9\u8bdd<\/td>\n<td>qwen-plus \/ qwen-max<\/td>\n<td>\u8d1f\u8d23 RAG \u7684\u6700\u7ec8\u751f\u6210\u4e0e\u603b\u7ed3\u3002plus \u591f\u7528&#xff0c;max \u903b\u8f91\u6700\u5f3a\u3002<\/td>\n<td>\u6309 Token \u8ba1\u8d39&#xff0c;\u65b0\u7528\u6237\u901a\u5e38\u6709\u6d77\u91cf\u514d\u8d39\u989d\u5ea6\u3002<\/td>\n<\/tr>\n<tr>\n<td>&#x1f30c; Embedding<\/td>\n<td>text-embedding-v2<\/td>\n<td>\u5c06\u6587\u672c\u8f6c\u4e3a\u5411\u91cf\u5b58\u5165 ChromaDB\u3002<\/td>\n<td>\u6309 Token \u8ba1\u8d39&#xff0c;\u6781\u4f4e\u3002<\/td>\n<\/tr>\n<tr>\n<td>&#x1f3a7; ASR \u8f6c\u5199<\/td>\n<td>paraformer-mtl-v1<\/td>\n<td>\u8d1f\u8d23\u5c06 16kHz \u97f3\u9891\u8f6c\u5316\u4e3a\u7cbe\u51c6\u9010\u5b57\u7a3f\u3002<\/td>\n<td>\u6309\u65f6\u957f\u8ba1\u8d39\u3002\u90e8\u7f72\u6d4b\u8bd5\u671f\u5efa\u8bae\u5148\u7528 10 \u5206\u949f\u4ee5\u5185\u7684\u77ed\u89c6\u9891\u9a8c\u8bc1\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u672a\u6765\u6269\u5c55\u6027&#xff1a;\u5f97\u76ca\u4e8e\u540e\u7aef LangChain \u7684\u7075\u6d3b\u67b6\u6784&#xff0c;\u5982\u679c\u4f60\u662f\u4e2a\u6781\u5ba2&#xff0c;\u4f60\u5b8c\u5168\u53ef\u4ee5\u4fee\u6539 app\/ \u76ee\u5f55\u4e0b\u7684\u76f8\u5173\u903b\u8f91&#xff0c;\u5c06\u5927\u6a21\u578b\u66ff\u6362\u4e3a\u672c\u5730\u90e8\u7f72\u7684 Ollama (Llama-3 \/ Qwen-2)&#xff0c;\u5b9e\u73b0\u6781\u81f4\u7684 0 \u6210\u672c\u548c 100% \u9690\u79c1\u5b89\u5168\u3002<\/p>\n<h4>7.5 \u26a0\ufe0f \u907f\u5751\u6307\u5357&#xff1a;\u7ed9\u9996\u6b21\u90e8\u7f72\u8005\u7684\u5fe0\u544a<\/h4>\n<li>\u201cFFmpeg not found\u201d \u62a5\u9519&#xff1a;\u8fd9\u662f\u65b0\u624b\u6700\u5bb9\u6613\u8e29\u7684\u5751\u3002\u5982\u679c\u5728\u62c9\u53d6\u89c6\u9891\u5e76\u63d0\u53d6\u97f3\u9891\u65f6\u62a5\u9519&#xff0c;99% \u7684\u539f\u56e0\u662f\u4f60\u6ca1\u6709\u5c06 ffmpeg \u6dfb\u52a0\u5230\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u4e2d\u3002\u8bf7\u786e\u4fdd\u5728\u7ec8\u7aef\u4e2d\u4efb\u610f\u4f4d\u7f6e\u8f93\u5165 ffmpeg -version \u90fd\u80fd\u6b63\u5e38\u8f93\u51fa\u4fe1\u606f\u3002<\/li>\n<li>\u4e0b\u8f7d\u5361\u6b7b\u4e0e\u7f51\u7edc\u95ee\u9898&#xff1a;\u90e8\u5206 B \u7ad9\u97f3\u9891 URL \u53ef\u80fd\u8fd4\u56de 403 \u9519\u8bef&#xff08;\u76f4\u94fe\u4e0d\u53ef\u62c9\u53d6&#xff09;\u3002\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6267\u884c\u5e26 Cookie \u7684\u672c\u5730\u4e0b\u8f7d\u515c\u5e95\u6d41\u7a0b\u3002\u8bf7\u786e\u4fdd\u4f60\u7684\u90e8\u7f72\u673a\u5668\u62e5\u6709\u7545\u901a\u7684\u516c\u7f51\u73af\u5883\u3002<\/li>\n<li>\u6d4b\u8bd5\u8bca\u65ad\u811a\u672c&#xff1a;\u5982\u679c\u8fd0\u884c\u51fa\u73b0\u7384\u5b66\u95ee\u9898&#xff0c;\u4e0d\u8981\u614c\u3002\u8fdb\u5165 test\/ \u76ee\u5f55&#xff0c;\u5c06 debug_asr_single.py \u6216 diagnose_rag.py \u79fb\u52a8\u5230\u9879\u76ee\u6839\u76ee\u5f55\u8fd0\u884c\u3002\u5b83\u4eec\u662f\u5f00\u53d1\u8005\u4e3a\u4f60\u51c6\u5907\u7684\u201cX\u5149\u673a\u201d&#xff0c;\u80fd\u5e2e\u4f60\u7cbe\u51c6\u5b9a\u4f4d\u662f\u97f3\u9891\u6293\u53d6\u5931\u8d25&#xff0c;\u8fd8\u662f\u5411\u91cf\u68c0\u7d22\u6ca1\u6709\u53ec\u56de\u3002<\/li>\n<h3>\u516b\u3001\u793e\u533a\u4e0e\u672a\u6765&#xff1a;\u4e2a\u4eba\u77e5\u8bc6\u7ba1\u7406\u7684AI\u8fdb\u5316<\/h3>\n<h3>\u516b\u3001\u793e\u533a\u4e0e\u672a\u6765&#xff1a;\u4e00\u573a\u5173\u4e8e\u201c\u4e2a\u4eba\u77e5\u8bc6\u7ba1\u7406\u201d\u7684\u5f00\u6e90\u9020\u7269\u8fd0\u52a8<\/h3>\n<p>Bilibili-RAG \u80fd\u591f\u8fc5\u901f\u65a9\u83b7\u5f00\u53d1\u8005\u7684\u9752\u7750&#xff0c;\u6838\u5fc3\u9a71\u52a8\u529b\u5e76\u975e\u6765\u81ea\u67d0\u5bb6\u6559\u80b2\u79d1\u6280\u516c\u53f8\u7684\u5546\u4e1a\u5316\u63a8\u9500&#xff0c;\u800c\u662f\u7cbe\u51c6\u51fb\u4e2d\u4e86\u5f53\u4ee3\u5b66\u4e60\u8005\u6700\u6df1\u5c42\u7684\u75db\u70b9&#xff0c;\u5e76\u4f9d\u9760\u5f00\u6e90\u793e\u533a\u7684\u6781\u5ba2\u7cbe\u795e\u8fdb\u884c\u7740\u75af\u72c2\u7684\u8fed\u4ee3\u3002<\/p>\n<h4>8.1 \u201c\u8d5b\u535a\u81ea\u4e60\u5ba4\u201d&#xff1a;\u8fd9\u91cc\u6ca1\u6709\u7126\u8651&#xff0c;\u53ea\u6709\u786c\u6838\u77e5\u8bc6\u63d0\u7eaf<\/h4>\n<p>Bilibili-RAG \u7684 GitHub \u793e\u533a\u66f4\u50cf\u662f\u4e00\u4e2a 24 \u5c0f\u65f6\u8fd0\u8f6c\u7684\u201c\u8d5b\u535a\u81ea\u4e60\u5ba4\u201d\u4e0e\u9ed1\u5ba2\u9a6c\u62c9\u677e\u73b0\u573a\u3002\u5728\u8fd9\u91cc&#xff0c;\u5f00\u53d1\u8005\u4e0e\u91cd\u5ea6\u5b66\u4e60\u8005\u6b63\u5728\u81ea\u53d1\u5730\u63a2\u7d22\u8fd9\u6b3e\u5de5\u5177\u7684\u8fb9\u754c\u3002<\/p>\n<ul>\n<li>&#x1f4a1; GitHub Issues &amp; Discussions (\u7075\u611f\u78b0\u649e\u5730)&#xff1a; \u5728\u8fd9\u91cc&#xff0c;\u4f60\u4e0d\u4ec5\u80fd\u770b\u5230\u4ee3\u7801\u5c42\u9762\u7684\u63a2\u8ba8&#xff0c;\u66f4\u80fd\u770b\u5230\u5173\u4e8e\u201c\u5982\u4f55\u4f18\u5316 Prompt \u63d0\u53d6\u66f4\u7cbe\u51c6\u7684\u4e13\u4e1a\u672f\u8bed\u201d\u3001\u201c\u5982\u4f55\u8c03\u6574 Chunk Size \u63d0\u5347\u957f\u89c6\u9891\u53ec\u56de\u7387\u201d\u7684\u6700\u524d\u6cbf\u8ba8\u8bba\u3002<\/li>\n<li>&#x1f6e0;\ufe0f \u771f\u5b9e\u573a\u666f\u7684\u91ce\u86ee\u751f\u957f&#xff1a; \u793e\u533a\u91cc\u6b63\u5728\u6d8c\u73b0\u5404\u79cd\u5947\u5999\u7684 Use Case\u3002\u6709\u533b\u5b66\u751f\u7528\u5b83\u628a\u6570\u767e\u4e2a\u4e34\u5e8a\u624b\u672f\u6559\u5b66\u89c6\u9891\u53d8\u6210\u4e86\u201c\u624b\u672f\u64cd\u4f5c\u8981\u70b9\u95ee\u7b54\u673a\u201d&#xff1b;\u6709\u72ec\u7acb\u5f00\u53d1\u8005\u7528\u5b83\u5c06\u6570\u5341\u671f\u6d77\u5916\u786c\u6838\u6280\u672f\u64ad\u5ba2\u8f6c\u5316\u4e3a\u81ea\u5df1\u7684\u201c\u53cc\u8bed\u6280\u672f\u535a\u5ba2\u7d20\u6750\u5e93\u201d\u3002\u5927\u5bb6\u90fd\u5728\u7528\u5b9e\u9645\u884c\u52a8\u8bc1\u660e&#xff1a;\u6280\u672f\u53ea\u6709\u843d\u5b9e\u5230\u5177\u4f53\u573a\u666f&#xff0c;\u624d\u80fd\u771f\u6b63\u91ca\u653e\u751f\u4ea7\u529b\u3002<\/li>\n<\/ul>\n<h4>8.2 \u8def\u7ebf\u56fe&#xff1a;\u4e0b\u4e00\u7ad9&#xff0c;\u771f\u6b63\u7684\u201c\u8d5b\u535a\u5916\u8111\u201d<\/h4>\n<p>\u7ffb\u770b\u9879\u76ee\u4ed3\u5e93\u4e0b\u7684 TodoList&#xff0c;\u6211\u4eec\u53ef\u4ee5\u6e05\u6670\u5730\u770b\u5230 Bilibili-RAG \u7684\u8fdb\u5316\u65b9\u5411\u2014\u2014\u5b83\u6b63\u5728\u8bd5\u56fe\u5f7b\u5e95\u62b9\u5e73\u201c\u6d41\u5a92\u4f53\u201d\u4e0e\u201c\u4eba\u7c7b\u8bb0\u5fc6\u201d\u4e4b\u95f4\u7684\u9e3f\u6c9f\u3002<\/p>\n<p>\u5373\u5c06\u5230\u6765\u7684\u6740\u624b\u7ea7\u7279\u6027&#xff1a;<\/p>\n<ul>\n<li>&#x1f4da; \u591a P \u89c6\u9891\u7684\u964d\u7ef4\u6253\u51fb (\u8fde\u8f7d\u77e5\u8bc6\u5e93)\n<ul>\n<li>\u75db\u70b9&#xff1a;\u76ee\u524d\u7684\u5927\u578b\u516c\u5f00\u8bfe\u5f80\u5f80\u5206\u4e3a\u51e0\u5341\u4e2a P&#xff08;\u5206\u96c6&#xff09;&#xff0c;\u8de8\u8d8a\u4e0d\u540c\u96c6\u6570\u68c0\u7d22\u6781\u5176\u56f0\u96be\u3002<\/li>\n<li>\u8fdb\u5316&#xff1a;\u7cfb\u7edf\u5c06\u652f\u6301 B \u7ad9\u5206 P \u89c6\u9891\u3002\u672a\u6765\u7684\u66f4\u65b0\u5c06\u5b9e\u73b0\u6574\u4e2a\u7cfb\u5217\u8bfe\u7a0b\u7684\u7edf\u4e00\u5411\u91cf\u5316\u3002<\/li>\n<li>\u573a\u666f\u9884\u544a&#xff1a;\u4f60\u53ef\u4ee5\u76f4\u63a5\u5bf9\u5305\u542b 100 \u96c6\u7684\u300a\u52a8\u624b\u5b66\u6df1\u5ea6\u5b66\u4e60\u300b\u63d0\u95ee&#xff1a;\u201c\u674e\u6c90\u8001\u5e08\u5728\u8bb2 RNN \u548c LSTM \u65f6&#xff0c;\u7528\u7684\u662f\u54ea\u4e2a\u901a\u4fd7\u7684\u6bd4\u55bb&#xff1f;\u8bf7\u5e2e\u6211\u5bf9\u6bd4\u4e00\u4e0b\u3002\u201d\u5b83\u80fd\u77ac\u95f4\u8de8\u8d8a\u51e0\u5341\u4e2a P \u7684\u95f4\u9694&#xff0c;\u4e3a\u4f60\u62fc\u51d1\u51fa\u5b8c\u6574\u7684\u77e5\u8bc6\u7248\u56fe\u3002<\/li>\n<\/ul>\n<\/li>\n<li>&#x1f9e0; \u8bb0\u5fc6\u5f3a\u5316&#xff1a;\u957f\u7ebf\u4f1a\u8bdd\u7ba1\u7406 (Contextual Memory)\n<ul>\n<li>\u75db\u70b9&#xff1a;\u6bcf\u6b21\u63d0\u95ee\u90fd\u662f\u5168\u65b0\u7684\u5f00\u59cb&#xff0c;AI \u8bb0\u4e0d\u4f4f\u4f60\u6628\u5929\u7684\u601d\u8003\u8def\u5f84\u3002<\/li>\n<li>\u8fdb\u5316&#xff1a;\u9879\u76ee\u8ba1\u5212\u52a0\u5165\u5bf9\u8bdd\u5b58\u50a8\u3001\u4f1a\u8bdd\u7ba1\u7406\u3001\u68c0\u7d22\u5386\u53f2\u5bf9\u8bdd\u8bb0\u5f55\u3002\u8ba9 RAG \u4e0d\u4ec5\u80fd\u8bb0\u4f4f\u89c6\u9891\u8bb2\u4e86\u4ec0\u4e48&#xff0c;\u8fd8\u80fd\u8bb0\u4f4f\u4f60\u7684\u201c\u63d0\u95ee\u903b\u8f91\u201d\u3002<\/li>\n<li>\u573a\u666f\u9884\u544a&#xff1a;\u6628\u5929\u4f60\u8ba9\u5b83\u5206\u6790\u4e86\u67d0\u4e2a\u67b6\u6784\u89c6\u9891\u7684\u5229\u5f0a\u3002\u4eca\u5929\u4f60\u53ea\u9700\u8981\u8bf4&#xff1a;\u201c\u63a5\u7740\u6628\u5929\u7684\u7ed3\u8bba&#xff0c;\u5982\u679c\u628a\u8fd9\u4e2a\u67b6\u6784\u7528\u5728\u6211\u7684\u7535\u5546\u4e1a\u52a1\u91cc&#xff0c;\u4f60\u89c9\u5f97\u80fd\u884c\u5417&#xff1f;\u201d\u5b83\u4f1a\u65e0\u7f1d\u8854\u63a5\u4f60\u7684\u601d\u7ef4\u6d41\u3002<\/li>\n<\/ul>\n<\/li>\n<li>&#x1f50c; \u6a21\u578b\u81ea\u7531&#xff1a;\u62e5\u62b1\u5f00\u6e90\u751f\u6001 (Model Agnostic)\n<ul>\n<li>\u75db\u70b9&#xff1a;\u53d7\u9650\u4e8e\u5355\u4e00 API&#xff0c;\u9762\u4e34\u6210\u672c\u6216\u9690\u79c1\u987e\u8651\u3002<\/li>\n<li>\u8fdb\u5316&#xff1a;\u672a\u6765\u5c06\u9002\u914d\u66f4\u591a LLM \u4e0e\u5411\u91cf\u6a21\u578b\u3002<\/li>\n<li>\u573a\u666f\u9884\u544a&#xff1a;\u5bf9\u4e8e\u516c\u5f00\u8bfe&#xff0c;\u4f60\u53ef\u4ee5\u7528\u6781\u4f4e\u6210\u672c\u7684\u4e91\u7aef\u5927\u6a21\u578b&#xff1b;\u5bf9\u4e8e\u5305\u542b\u516c\u53f8\u5185\u90e8\u654f\u611f\u4fe1\u606f\u7684\u79c1\u5bc6\u4f1a\u8bae\u5f55\u64ad&#xff0c;\u4f60\u53ef\u4ee5\u4e00\u952e\u5207\u6362\u81f3\u672c\u5730\u8fd0\u884c\u7684 Llama-3 \u6216 Qwen&#xff0c;\u8ba9\u9690\u79c1\u3001\u54cd\u5e94\u901f\u5ea6\u548c Token \u6210\u672c\u63a7\u5236\u8fbe\u5230\u6700\u5b8c\u7f8e\u7684\u5e73\u8861\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>8.3 \u7ec8\u5c40\u601d\u8003&#xff1a;\u7531\u201c\u770b\u201d\u5230\u201c\u95ee\u201d\u7684\u8303\u5f0f\u8f6c\u79fb<\/h4>\n<p>Bilibili-RAG \u7684\u706b\u7206\u4e0d\u662f\u4e00\u6b21\u5076\u7136\u7684\u5de5\u5177\u8fed\u4ee3&#xff0c;\u5b83\u662f AI \u65f6\u4ee3\u4e2a\u4eba\u77e5\u8bc6\u7ba1\u7406&#xff08;PKM&#xff09;\u4e09\u5927\u5e95\u5c42\u903b\u8f91\u53d8\u8fc1\u7684\u7f29\u5f71\u3002<\/p>\n<h5>1. \u4ece\u201c\u6570\u636e\u56e4\u79ef\u201d\u5230\u201c\u77e5\u8bc6\u4e3b\u6743\u201d (From Hoarding to Owning)<\/h5>\n<p>\u5728\u7b97\u6cd5\u63a8\u8350\u65f6\u4ee3&#xff0c;\u6211\u4eec\u662f\u4fe1\u606f\u7684\u201c\u88ab\u5582\u98df\u8005\u201d\u3002\u6211\u4eec\u75af\u72c2\u70b9\u51fb\u6536\u85cf&#xff0c;\u4eff\u4f5b\u6536\u85cf\u4e86\u5c31\u7b49\u4e8e\u5b66\u4f1a\u4e86&#xff0c;\u4f46\u6570\u636e\u7684\u4e3b\u6743\u5176\u5b9e\u5728\u5e73\u53f0\u624b\u91cc\u3002Bilibili-RAG \u5f00\u542f\u4e86**\u201c\u77e5\u8bc6\u81ea\u8015\u519c\u201d**\u65f6\u4ee3\u3002\u4f60\u901a\u8fc7\u5b83\u5c06\u4e91\u7aef\u7684\u6d41\u5a92\u4f53\u7269\u7406\u6027\u5730\u4e0b\u8f7d\u3001\u63d0\u70bc\u3001\u5411\u91cf\u5316\u5e76\u5b58\u50a8\u5728\u672c\u5730\u3002\u4f60\u62ff\u56de\u4e86\u6570\u636e\u7684\u638c\u63a7\u6743&#xff0c;\u8fd9\u662f\u5bf9\u201c\u4fe1\u606f\u788e\u7247\u5316\u7126\u8651\u201d\u7684\u4e00\u6b21\u6280\u672f\u6027\u53cd\u53db\u3002<\/p>\n<h5>2. \u4ece\u201c\u88ab\u52a8\u63a5\u6536\u201d\u5230\u201c\u5e73\u7b49\u5bf9\u8bdd\u201d (From Passive to Interactive)<\/h5>\n<p>\u4f20\u7edf\u89c6\u9891\u5b66\u4e60\u662f\u7ebf\u6027\u7684\u767e\u79d1\u5168\u4e66&#xff0c;\u8bb2\u8005\u8bf4&#xff0c;\u4f60\u542c\u3002\u4f46\u771f\u5b9e\u7684\u9ad8\u6548\u5b66\u4e60\u6c38\u8fdc\u53d1\u751f\u4e8e\u201c\u63d0\u95ee\u201d\u4e0e\u201c\u89e3\u60d1\u201d\u7684\u5faa\u73af\u4e2d\u3002Bilibili-RAG \u8ba9\u6211\u4eec\u6210\u4e3a\u4e86\u4fe1\u606f\u7684\u5ba1\u8baf\u5b98\u3002\u4eba\u7c7b\u4e0d\u518d\u6ee1\u8db3\u4e8e AI \u4ec5\u4ec5\u80fd\u7ed9\u89c6\u9891\u914d\u4e2a\u5b57\u5e55&#xff0c;\u6211\u4eec\u8981\u6c42 AI \u53bb\u201c\u89e3\u6784\u201d\u89c6\u9891\u3002\u672a\u6765\u8861\u91cf\u4e00\u4e2a\u4eba\u5b66\u4e60\u80fd\u529b\u7684&#xff0c;\u4e0d\u518d\u662f\u4ed6\u71ac\u591c\u5237\u4e86\u591a\u5c11\u6280\u672f\u89c6\u9891&#xff0c;\u800c\u662f\u4ed6\u80fd\u5411\u81ea\u5df1\u7684\u5916\u8111\u63d0\u51fa\u591a\u6df1\u523b\u3001\u591a\u5201\u94bb\u7684\u95ee\u9898\u3002<\/p>\n<h5>3. \u4ece\u201c\u5343\u4eba\u4e00\u9762\u201d\u5230\u201c\u6570\u5b57\u5916\u8111\u201d (From Generic to Personal)<\/h5>\n<p>B \u7ad9\u7684\u8bc4\u8bba\u533a\u5bf9\u6240\u6709\u4eba\u90fd\u662f\u4e00\u6837\u7684\u3002\u4f46\u968f\u7740\u65f6\u95f4\u7684\u63a8\u79fb&#xff0c;\u4f60\u7684 Bilibili-RAG \u5438\u6536\u7684\u662f\u4f60\u72ec\u6709\u7684\u504f\u597d&#xff1a;\u4f60\u6536\u85cf\u7684\u7ec6\u5206\u9886\u57df\u3001\u4f60\u72ec\u6709\u7684\u601d\u8003\u76f2\u533a\u3001\u4f60\u60ef\u7528\u7684\u8ffd\u95ee\u65b9\u5f0f\u3002\u5b83\u5c06\u4ece\u4e00\u4e2a\u51b7\u51b0\u51b0\u7684\u4ee3\u7801\u4ed3\u5e93&#xff0c;\u751f\u957f\u4e3a\u4f60\u5728\u8fd9\u4e2a\u6570\u5b57\u4e16\u754c\u4e2d\u72ec\u4e00\u65e0\u4e8c\u7684 Exocortex&#xff08;\u5916\u8111&#xff09;\u3002<\/p>\n<hr \/>\n<h3>\u4e5d\u3001\u6700\u540e\u65f6\u523b&#xff1a;\u8fd9\u662f\u5b66\u4e60\u795e\u5668&#xff0c;\u8fd8\u662f\u53c8\u4e00\u4e2a\u201c\u4f2a\u9700\u6c42\u201d&#xff1f;<\/h3>\n<p>Bilibili-RAG \u662f\u4e00\u573a\u5bf9\u6297\u201c\u6570\u5b57\u9057\u5fd8\u201d\u7684\u8ff7\u4eba\u5b9e\u9a8c&#xff0c;\u4f46\u6211\u4eec\u5fc5\u987b\u8bda\u5b9e&#xff1a;\u5b83\u5e76\u4e0d\u662f\u4e3a\u6240\u6709\u4eba\u51c6\u5907\u7684\u3002<\/p>\n<p>\u5728\u6309\u4e0b Star \u6216 git clone \u4e4b\u524d&#xff0c;\u8bf7\u8ba4\u771f\u5ba1\u89c6\u4f60\u7684\u6536\u85cf\u5939\u548c\u5b66\u4e60\u4e60\u60ef\u3002\u8fd9\u4e0d\u662f\u5728\u4e0b\u8f7d\u4e00\u4e2a\u6d4f\u89c8\u5668\u6269\u5145\u63d2\u4ef6&#xff0c;\u8fd9\u66f4\u50cf\u662f\u5728\u4e3a\u4f60\u7684\u5927\u8111\u5916\u63a5\u4e00\u5757\u5c1a\u672a\u5b8c\u5168\u629b\u5149\u7684\u534f\u5904\u7406\u5668\u3002<\/p>\n<h4>9.1 \u2705 \u5929\u4f5c\u4e4b\u5408&#xff1a;\u5982\u679c\u4f60\u662f\u8fd9\u4e09\u7c7b\u4eba&#xff0c;\u8bf7\u7acb\u5373\u90e8\u7f72<\/h4>\n<p>\u5982\u679c\u4f60\u5728\u9605\u8bfb\u672c\u6587\u65f6\u611f\u5230\u5fc3\u75db&#xff08;\u56e0\u4e3a\u60f3\u8d77\u4e86\u81ea\u5df1\u5403\u7070\u7684\u51e0\u767e\u4e2a\u89c6\u9891&#xff09;&#xff0c;\u6216\u8005\u4f60\u7b26\u5408\u4ee5\u4e0b\u753b\u50cf&#xff0c;\u90a3\u4e48 Bilibili-RAG \u5c31\u662f\u4e3a\u4f60\u91cf\u8eab\u5b9a\u5236\u7684&#xff1a;<\/p>\n<h5>&#x1f4e6; The Information Hoarder&#xff08;\u6570\u5b57\u56e4\u79ef\u72c2&#xff09;<\/h5>\n<ul>\n<li>\u7279\u5f81&#xff1a;\u770b\u5230\u5e72\u8d27\u957f\u89c6\u9891\u5c31\u70b9\u6536\u85cf&#xff0c;\u53d1\u8a93\u201c\u5468\u672b\u4e00\u5b9a\u770b\u201d&#xff0c;\u4f46\u201c\u7a0d\u540e\u518d\u770b\u201d\u5217\u8868\u5df2\u7ecf\u79ef\u538b\u4e86 999&#043;\u3002\u4f60\u603b\u662f\u89c9\u5f97\u7f3a\u4e4f\u5b8c\u6574\u7684\u4e00\u4e24\u5c0f\u65f6\u53bb\u6c89\u6d78\u5f0f\u5b66\u4e60&#xff0c;\u6700\u7ec8\u9677\u5165\u4e86\u201c\u53ea\u9a6c\u4e0d\u770b\u201d\u7684\u77e5\u8bc6\u7126\u8651\u3002<\/li>\n<li>\u4e3a\u4ec0\u4e48\u9002\u5408&#xff1a;\u5b83\u662f\u4f60\u7684\u77e5\u8bc6\u6d88\u5316\u5f15\u64ce\u3002\u4f60\u53ea\u7ba1\u56e4&#xff0c;\u5b83\u5e2e\u4f60\u6d88\u5316\u3002\u4ece\u6b64\u6536\u85cf\u5939\u4e0d\u518d\u662f\u77e5\u8bc6\u7684\u575f\u5893&#xff0c;\u800c\u662f\u968f\u65f6\u53ef\u4ee5\u88ab\u5524\u9192\u3001\u88ab\u68c0\u7d22\u7684\u6d3b\u6c34\u3002\u4f60\u7684\u6bcf\u4e00\u6b21\u201c\u6536\u85cf\u201d\u52a8\u4f5c&#xff0c;\u90fd\u53d8\u6210\u4e86\u5728\u5f80\u672c\u5730\u667a\u5e93\u4e2d\u201c\u5b58\u94b1\u201d\u3002<\/li>\n<\/ul>\n<h5>&#x1f9d1;\u200d&#x1f4bb; The Knowledge Worker&#xff08;\u6781\u5ba2 \/ \u5185\u5bb9\u521b\u4f5c\u8005&#xff09;<\/h5>\n<ul>\n<li>\u7279\u5f81&#xff1a;\u4f60\u7ecf\u5e38\u9700\u8981\u8f93\u51fa\u6280\u672f\u6587\u7ae0\u3001\u5199\u884c\u4e1a\u62a5\u544a\u6216\u8fdb\u884c\u6280\u672f\u9009\u578b\u5bf9\u6bd4\u3002\u4f60\u82e6\u4e8e\u4ece\u4e24\u4e09\u4e2a\u5c0f\u65f6\u7684\u67b6\u6784\u5e08\u5206\u4eab\u3001\u6d77\u5916\u64ad\u5ba2\u5bf9\u8c08\u4e2d\u624b\u5de5\u63d0\u53d6\u6838\u5fc3\u4ee3\u7801\u903b\u8f91\u3001\u67b6\u6784\u601d\u8def\u548c\u91d1\u53e5\u3002<\/li>\n<li>\u4e3a\u4ec0\u4e48\u9002\u5408&#xff1a;\u5b83\u662f\u4f60\u7684\u9ad8\u9636\u5b66\u672f\u79d8\u4e66\u3002\u4f60\u53ef\u4ee5\u7528\u590d\u6742\u7684 Prompt \u8ba9\u5b83\u77ac\u95f4\u63d0\u70bc\u4e0d\u540c\u89c6\u89d2\u7684\u89c2\u70b9&#xff0c;\u76f4\u63a5\u8f93\u51fa Markdown \u683c\u5f0f\u7684\u7ed3\u6784\u5316\u5bf9\u6bd4\u8868\u683c&#xff0c;\u751a\u81f3\u81ea\u5e26\u65f6\u95f4\u6233\u6eaf\u6e90&#xff0c;\u6781\u5927\u7f29\u77ed\u4f60\u7684\u5185\u5bb9\u751f\u4ea7\u94fe\u6761\u3002<\/li>\n<\/ul>\n<h5>&#x1f393; The Lifelong Learner&#xff08;\u7ec8\u8eab\u5b66\u4e60\u8005 \/ \u8003\u7814\u7a81\u51fb\u515a&#xff09;<\/h5>\n<ul>\n<li>\u7279\u5f81&#xff1a;\u6b63\u5728\u6b7b\u78d5\u67d0\u95e8\u786c\u6838\u8bfe\u7a0b&#xff08;\u5982\u8003\u7814\u653f\u6cbb\u3001\u64cd\u4f5c\u7cfb\u7edf\u539f\u7406\u6216\u6df1\u5ea6\u5b66\u4e60&#xff09;\u3002\u9762\u5bf9\u51e0\u5341\u4e2a P \u7684\u957f\u89c6\u9891\u6559\u7a0b&#xff0c;\u4f60\u6e34\u671b\u5efa\u7acb\u8d77\u7cfb\u7edf\u6027\u7684\u77e5\u8bc6\u7f51\u7edc&#xff0c;\u5e76\u9700\u8981\u9488\u5bf9\u8584\u5f31\u77e5\u8bc6\u70b9\u8fdb\u884c\u53cd\u590d\u7684\u81ea\u6211\u6d4b\u8bd5\u4e0e\u590d\u76d8\u3002<\/li>\n<li>\u4e3a\u4ec0\u4e48\u9002\u5408&#xff1a;\u5b83\u80fd\u628a\u4e00\u95e8\u7f51\u8bfe\u53d8\u6210\u4e00\u4e2a\u968f\u53eb\u968f\u5230\u7684\u79c1\u4eba\u5bfc\u5e08\u3002\u4e0d\u53ea\u662f\u5355\u5411\u68c0\u7d22&#xff0c;\u4f60\u8fd8\u80fd\u9488\u5bf9\u81ea\u5df1\u7684\u77e5\u8bc6\u76f2\u533a\u8ba9\u5b83\u81ea\u52a8\u51fa\u9898\u6a21\u62df&#xff0c;\u5b9e\u73b0\u4ece\u201c\u88ab\u52a8\u89c2\u770b\u201d\u5230\u201c\u4e3b\u52a8\u8f93\u51fa\u201d\u7684\u8303\u5f0f\u8f6c\u53d8\u3002<\/li>\n<\/ul>\n<hr \/>\n<h4>9.2 \u274c \u529d\u9000\u6307\u5357&#xff1a;\u5982\u679c\u4f60\u7b26\u5408\u4ee5\u4e0b\u60c5\u51b5&#xff0c;\u8bf7\u5728\u6b64\u6b62\u6b65<\/h4>\n<p>\u4e3a\u4e86\u907f\u514d\u4f60\u6d6a\u8d39\u5468\u672b\u7684\u65f6\u5149\u5e76\u9677\u5165\u632b\u8d25\u611f&#xff0c;\u5982\u679c\u4f60\u662f\u4ee5\u4e0b\u7528\u6237&#xff0c;\u6211\u4eec\u5efa\u8bae\u4f60\u7ee7\u7eed\u4f7f\u7528\u5e02\u9762\u4e0a\u7684\u7f51\u9875 AI \u603b\u7ed3\u63d2\u4ef6&#xff0c;\u6216\u8005\u76f4\u63a5\u653e\u5f03\u6298\u817e&#xff1a;<\/p>\n<h5>&#x1f3ae; \u7eaf\u5a31\u4e50\u73a9\u5bb6<\/h5>\n<ul>\n<li>\u5fc3\u6001&#xff1a;\u201c\u6211\u7684\u6536\u85cf\u5939\u91cc\u5168\u662f\u6e38\u620f\u4e0b\u996d\u96c6\u9526\u3001\u9b3c\u755c\u5927\u4f5c\u548c\u641e\u7b11\u6bb5\u5b50&#xff0c;\u6211\u60f3\u8ba9 AI \u5e2e\u6211\u5206\u7c7b\u3002\u201d<\/li>\n<li>\u529d\u9000\u7406\u7531&#xff1a;RAG \u67b6\u6784\u5bf9\u6beb\u65e0\u903b\u8f91\u589e\u91cf\u7684\u5a31\u4e50\u5185\u5bb9\u6beb\u65e0\u610f\u4e49\u3002\u8ba9\u5927\u8bed\u8a00\u6a21\u578b\u4e00\u672c\u6b63\u7ecf\u5730\u7528\u9ad8\u7ef4\u5411\u91cf\u68c0\u7d22\u53bb\u5206\u6790\u201c\u4e3a\u4ec0\u4e48\u8fd9\u6bb5\u9b3c\u755c\u89c6\u9891\u597d\u7b11\u201d&#xff0c;\u672c\u8eab\u5c31\u662f\u4e00\u4ef6\u6781\u5176\u6ed1\u7a3d\u4e14\u6d6a\u8d39\u7b97\u529b\u7684\u4e8b\u60c5\u3002\u5b83\u9700\u8981\u7684\u662f\u4fe1\u606f\u5bc6\u5ea6&#xff0c;\u800c\u4e0d\u662f\u591a\u5df4\u80fa\u3002<\/li>\n<\/ul>\n<h5>\u2328\ufe0f \u7ec8\u7aef\u6050\u60e7\u75c7\u60a3\u8005<\/h5>\n<ul>\n<li>\u5fc3\u6001&#xff1a;\u201c\u6ca1\u6709\u53cc\u51fb\u4e0b\u4e00\u6b65\u7684 .exe \u5b89\u88c5\u5305\u5417&#xff1f;\u4e3a\u4ec0\u4e48\u6211\u8fd8\u8981\u914d\u7f6e\u4ec0\u4e48\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u548c Python&#xff1f;\u592a\u9ebb\u70e6\u4e86&#xff01;\u201d<\/li>\n<li>\u529d\u9000\u7406\u7531&#xff1a;\u5c3d\u7ba1\u90e8\u7f72\u6d41\u7a0b\u5df2\u7ecf\u7cbe\u7b80\u5230\u4e86\u4e09\u6b65&#xff0c;\u4f46\u9879\u76ee\u76ee\u524d\u4ecd\u5904\u4e8e\u6781\u5ba2\u5f00\u6e90\u9636\u6bb5\u3002\u4f60\u9700\u8981\u9762\u5bf9\u7ec8\u7aef\u64cd\u4f5c\u3001FFmpeg \u7684\u8def\u5f84\u8bbe\u7f6e\u4ee5\u53ca pip install \u8fc7\u7a0b\u4e2d\u53ef\u80fd\u51fa\u73b0\u7684\u7f51\u7edc\u4f9d\u8d56\u95ee\u9898\u3002\u5982\u679c\u4f60\u671f\u5f85\u7684\u662f\u82f9\u679c\u5f0f\u7684\u5f00\u7bb1\u5373\u7528&#xff0c;\u73b0\u5728\u7684\u5b83\u4f1a\u8ba9\u4f60\u6293\u72c2\u3002<\/li>\n<\/ul>\n<h5>&#x1f971; \u61d2\u4e8e\u63d0\u95ee\u8005 (The Passive Viewer)<\/h5>\n<ul>\n<li>\u5fc3\u6001&#xff1a;\u201c\u6211\u4e0d\u60f3\u81ea\u5df1\u5199\u63d0\u793a\u8bcd\u95ee\u95ee\u9898&#xff0c;\u6211\u53ea\u60f3\u8ba9\u5b83\u81ea\u52a8\u7ed9\u6211\u751f\u6210\u4e00\u4e2a\u4e00\u9875\u7eb8\u7684\u8111\u56fe&#xff0c;\u6211\u770b\u4e00\u773c\u5c31\u884c\u4e86\u3002\u201d<\/li>\n<li>\u529d\u9000\u7406\u7531&#xff1a;Bilibili-RAG \u7684\u6838\u5fc3\u4ef7\u503c\u5728\u4e8e \u201cRAG&#xff08;\u68c0\u7d22\u589e\u5f3a\u751f\u6210&#xff09;\u201d\u80cc\u540e\u7684\u5bf9\u8bdd\u4ea4\u4e92\u3002\u5982\u679c\u4f60\u4e0d\u613f\u610f\u4e3b\u52a8\u53d1\u95ee\u53bb\u201c\u5ba1\u95ee\u201d\u4f60\u7684\u77e5\u8bc6\u5e93&#xff0c;\u800c\u53ea\u662f\u60f3\u5f97\u5230\u4e00\u4e2a\u6cdb\u6cdb\u7684\u9759\u6001\u6458\u8981&#xff0c;\u90a3\u4e48 B \u7ad9\u81ea\u5e26\u7684 AI \u89c6\u9891\u603b\u7ed3\u529f\u80fd\u5df2\u7ecf\u8db3\u591f\u6ee1\u8db3\u4f60&#xff0c;\u6ca1\u5fc5\u8981\u52a8\u7528\u8fd9\u628a\u725b\u5200\u3002<\/li>\n<\/ul>\n<hr \/>\n<h4>9.3 \u51b3\u7b56\u77e9\u9635&#xff1a;\u7ef4\u6301\u73b0\u72b6\u8fd8\u662f\u541e\u4e0b\u7ea2\u836f\u4e38&#xff1f;<\/h4>\n<table>\n<tr>\u7279\u5f81&#x1f48a; \u7ef4\u6301\u73b0\u72b6 (\u4f20\u7edf\u6536\u85cf\u6cd5)&#x1f48a; \u62e5\u62b1\u65b0\u7269\u79cd (Bilibili-RAG)<\/tr>\n<tbody>\n<tr>\n<td>\u9762\u5bf9\u4e24\u5c0f\u65f6\u5e72\u8d27\u89c6\u9891<\/td>\n<td>\u7126\u8651\u3001\u62d6\u5ef6\u3001\u70b9\u51fb\u9000\u51fa<\/td>\n<td>\u4e22\u7ed9AI\u5165\u5e93&#xff0c;\u76f4\u63a5\u8ffd\u95ee\u6700\u5173\u5fc3\u7684\u6838\u5fc3\u6280\u672f\u70b9<\/td>\n<\/tr>\n<tr>\n<td>\u77e5\u8bc6\u7559\u5b58\u7387<\/td>\n<td>\u968f\u7740\u65f6\u95f4\u5448\u6307\u6570\u7ea7\u9057\u5fd8 (\u827e\u5bbe\u6d69\u65af\u66f2\u7ebf)<\/td>\n<td>\u56fa\u5316\u5728 ChromaDB \u6210\u4e3a\u6c38\u6052\u53ef\u67e5\u7684\u6570\u5b57\u8d44\u4ea7<\/td>\n<\/tr>\n<tr>\n<td>\u5b66\u4e60\u8def\u5f84<\/td>\n<td>\u7ebf\u6027\u89c2\u770b&#xff0c;\u88ab\u89c6\u9891\u8bb2\u8005\u7684\u8282\u594f\u62d6\u7740\u8d70<\/td>\n<td>\u8df3\u8dc3\u5f0f\u68c0\u7d22&#xff0c;\u5b8c\u5168\u7531\u81ea\u5df1\u7684\u7591\u95ee\u9a71\u52a8\u5b66\u4e60<\/td>\n<\/tr>\n<tr>\n<td>\u8f93\u51fa\u4ea7\u7269<\/td>\n<td>\u96f6\u6563\u3001\u96be\u4ee5\u68c0\u7d22\u3001\u7f3a\u4e4f\u4e0a\u4e0b\u6587\u7684\u624b\u5199\u7b14\u8bb0<\/td>\n<td>\u5e26\u6709\u7cbe\u786e\u65f6\u95f4\u6233\u6eaf\u6e90\u7684\u7ed3\u6784\u5316 Markdown \u603b\u7ed3<\/td>\n<\/tr>\n<tr>\n<td>\u6700\u7ec8\u5fc3\u7406\u4f53\u9a8c<\/td>\n<td>\u8d8a\u56e4\u8d8a\u5fc3\u865a\u7684\u201c\u77e5\u8bc6\u865a\u65e0\u611f\u201d<\/td>\n<td>\u8d8a\u5b58\u8d8a\u806a\u660e\u7684\u201c\u79c1\u4eba\u667a\u5e93\u638c\u63a7\u611f\u201d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3>\u5341\u3001\u8d44\u6e90\u6c47\u603b&#xff1a;\u5e26\u597d\u88c5\u5907&#xff0c;\u51c6\u5907\u4e0b\u672c<\/h3>\n<p>\u60f3\u8981\u5728\u8fd9\u4e2a\u4fe1\u606f\u7206\u70b8\u7684\u65f6\u4ee3\u5f00\u6302&#xff0c;\u4f60\u5f97\u5148\u62ff\u5230\u6b63\u786e\u7684\u901a\u5173\u5bc6\u8bed\u3002\u4ee5\u4e0b\u662f\u6784\u5efa\u4f60\u79c1\u4eba\u8d5b\u535a\u5916\u8111\u7684\u6838\u5fc3\u7ec4\u4ef6\u6e05\u5355&#xff1a;<\/p>\n<table>\n<tr>\u8d44\u6e90\u94fe\u63a5\u5907\u6ce8\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>GitHub \u4ed3\u5e93<\/td>\n<td>https:\/\/github.com\/via007\/bilibili-rag<\/td>\n<td>\u4e07\u7269\u8d77\u6e90&#xff0c;\u4f60\u7684\u8d5b\u535a\u5916\u8111\u672c\u4f53\u3002\u5efa\u8bae\u706b\u901f\u524d\u5f80\u70b9\u4e2a Star \u9632\u8eab&#xff0c;\u987a\u4fbf\u7ed9\u71ac\u591c\u6389\u5934\u53d1\u7684\u5927\u4f6c\u4e00\u70b9\u7cbe\u795e\u652f\u6301\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u6838\u5fc3\u6280\u672f\u6808<\/td>\n<td>FastAPI, Next.js, LangChain, ChromaDB<\/td>\n<td>\u73b0\u4ee3\u5168\u5e72\u5de5\u7a0b\u5e08\u7684\u6d6a\u6f2b\u7ec4\u5408\u3002\u522b\u614c&#xff0c;\u4e0d\u9700\u8981\u4f60\u7cbe\u901a\u5168\u6808&#xff0c;\u53ea\u8981\u80fd\u987a\u5229\u6572\u4e0b npm run dev \u4e14\u6ca1\u770b\u5230\u7ea2\u8272\u7684 Error&#xff0c;\u4f60\u5c31\u662f\u8d62\u5bb6\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u63a8\u8350\u6a21\u578b\u5f15\u64ce<\/td>\n<td>\u963f\u91cc\u4e91 DashScope (\u901a\u4e49\u5343\u95ee)<\/td>\n<td>\u65b0\u624b\u6751\u826f\u5fc3\u63a8\u8350&#xff0c;\u767d\u5ad6\u7684\u514d\u8d39 Token \u989d\u5ea6\u8db3\u591f\u4f60\u628a\u6536\u85cf\u5939\u91cc\u7684\u786c\u6838\u957f\u89c6\u9891\u69a8\u5e72\u597d\u51e0\u904d\u4e86\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u95ee\u9898\u6025\u6551\u5ba4<\/td>\n<td>\u89c1 GitHub \u4ed3\u5e93\u7684 Issues \u533a<\/td>\n<td>\u5982\u679c\u9047\u5230\u7384\u5b66 Bug \u5bfc\u81f4\u8840\u538b\u5347\u9ad8&#xff0c;\u53bb\u8fd9\u91cc\u7ffb\u7ffb&#xff0c;\u4f60\u5927\u6982\u7387\u4f1a\u53d1\u73b0\u67d0\u4e2a\u75db\u82e6\u7684\u7f51\u53cb\u5df2\u7ecf\u66ff\u4f60\u8e29\u8fc7\u8fd9\u4e2a\u5751\u4e86\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h4>\u7ed3\u8bed&#xff1a;\u8ba9\u4f60\u7684\u6536\u85cf\u5939\u91cd\u89c1\u5929\u65e5<\/h4>\n<p>Bilibili-RAG \u7684\u51fa\u73b0&#xff0c;\u5411\u6211\u4eec\u63ed\u793a\u4e86\u4e00\u4e2a\u6b8b\u9177\u53c8\u8ff7\u4eba\u7684\u771f\u76f8&#xff1a;\u5728\u8fd9\u4e2a\u4fe1\u606f\u5927\u7206\u70b8\u7684\u65f6\u4ee3&#xff0c;AI \u6700\u5927\u7684\u4ec1\u6148\u4e0d\u662f\u4ee3\u66ff\u6211\u4eec\u601d\u8003&#xff0c;\u800c\u662f\u66ff\u6211\u4eec\u5403\u6389\u90a3\u4e9b\u96be\u5543\u7684\u201c\u8d5b\u535a\u591a\u5a92\u4f53\u5e9f\u6599\u201d&#xff0c;\u628a\u63d0\u7eaf\u540e\u7684\u9ad8\u5bc6\u5ea6\u77e5\u8bc6\u76f4\u63a5\u5582\u5230\u6211\u4eec\u5634\u8fb9\u3002\u5b83\u5b8c\u7f8e\u626b\u6e05\u4e86\u6211\u4eec\u5728\u83b7\u53d6\u77e5\u8bc6\u9053\u8def\u4e0a\u6700\u5927\u7684\u7269\u7406\u963b\u788d\u2014\u2014\u65f6\u95f4\u548c\u8010\u5fc3\u3002<\/p>\n<p>\u76ee\u524d\u7684 400&#043; Stars \u4ec5\u4ec5\u662f\u8fd9\u573a\u201c\u6536\u85cf\u5939\u89e3\u653e\u8fd0\u52a8\u201d\u7684\u5e8f\u7ae0\u3002\u968f\u7740\u5927\u6a21\u578b\u63a8\u7406\u6210\u672c\u7684\u767d\u83dc\u4ef7\u5316\u548c\u672c\u5730\u7b97\u529b\u7684\u5d1b\u8d77&#xff0c;\u50cf Bilibili-RAG \u8fd9\u6837\u81ea\u5e26\u5916\u6302\u5c5e\u6027\u7684\u4e2a\u4eba\u77e5\u8bc6\u5e93&#xff0c;\u8fdf\u65e9\u4f1a\u6210\u4e3a\u6bcf\u4e2a\u6781\u5ba2\u548c\u7ec8\u8eab\u5b66\u4e60\u8005\u7684\u201c\u6570\u5b57\u6807\u914d\u201d\u3002<\/p>\n<p>\u6bd5\u7adf&#xff0c;\u8c01\u80fd\u62d2\u7edd\u4e00\u4e2a 24 \u5c0f\u65f6\u5168\u5929\u5019\u65e0\u4f11\u3001\u4e0d\u7528\u4ea4\u4e94\u9669\u4e00\u91d1&#xff0c;\u8fd8\u80fd\u66ff\u4f60\u5149\u901f\u770b\u5b8c 50 \u96c6\u786c\u6838\u7f51\u8bfe\u5e76\u7cbe\u51c6\u63d0\u70bc\u8003\u70b9\u7684\u8d85\u7ea7\u8d5b\u535a\u4e66\u7ae5\u5462&#xff1f;<\/p>\n<p>\u5728\u8fd9\u4e2a AI \u6b63\u5728\u91cd\u5851\u4eba\u7c7b\u5927\u8111\u5bb9\u91cf\u8fb9\u754c\u7684\u65f6\u4ee3&#xff0c;\u4f60\u662f\u60f3\u7ee7\u7eed\u505a\u4e00\u4e2a\u770b\u7740\u201c\u7a0d\u540e\u518d\u770b\u201d\u5217\u8868\u65e5\u76ca\u81c3\u80bf\u3001\u6bcf\u5929\u88ab\u77e5\u8bc6\u7126\u8651\u88f9\u631f\u7684\u8d5b\u535a\u677e\u9f20&#xff0c;\u8fd8\u662f\u60f3\u505a\u4e00\u4e2a\u634f\u7740\u6838\u5fc3\u5bc6\u94a5\u3001\u80fd\u591f\u968f\u5fc3\u6240\u6b32\u63d0\u53d6\u4fe1\u606f\u6b8b\u6e23\u7684\u77e5\u8bc6\u70bc\u91d1\u672f\u58eb&#xff1f;<\/p>\n<p>\u4ee3\u7801\u5df2\u7ecf Clone \u5b8c\u6bd5&#xff0c;\u547d\u8fd0\u7684\u7ec8\u7aef\u6b63\u5728\u95ea\u70c1\u3002\u9009\u62e9\u6743&#xff0c;\u73b0\u5728\u4ea4\u56de\u5230\u4f60\u7684\u952e\u76d8\u4e0a\u3002\u522b\u8ba9\u90a3\u4e9b\u4f18\u8d28\u89c6\u9891\u5728\u4f60\u7684\u8d26\u53f7\u91cc\u7ee7\u7eed\u53d1\u9709\u4e86&#xff0c;\u73b0\u5728\u5c31\u53bb\u5524\u9192\u5b83\u4eec\u5427\u3002<\/p>\n<p>&#x1f99e; Happy Hacking. May your favorites never eat dust again! (\u613f\u4f60\u7684\u6536\u85cf\u5939\u6c38\u4e0d\u5403\u7070&#xff01;)<\/p>\n<hr \/>\n<p>\u514d\u8d23\u58f0\u660e&#xff1a;\u672c\u6587\u57fa\u4e8e Bilibili-RAG \u5f00\u6e90\u9879\u76ee\u7684\u516c\u5f00\u8d44\u6599\u53ca\u5f00\u53d1\u8005\u72c2\u6572\u952e\u76d8\u7684 Commit \u8bb0\u5f55\u6574\u7406\u3002AI \u5708\u4e00\u5929\u4eba\u95f4\u4e00\u5e74&#xff0c;\u9879\u76ee\u6b63\u5728\u5149\u901f\u8fed\u4ee3\u4e2d&#xff0c;\u67d0\u4e9b\u7384\u5b66 Bug \u6216\u63a5\u53e3\u53d8\u52a8\u53ef\u80fd\u968f\u7248\u672c\u66f4\u65b0\u800c\u7a81\u7136\u6d88\u5931&#xff08;\u6216\u7a81\u7136\u51fa\u73b0&#xff09;\u3002\u4e3a\u4fdd\u53d1\u91cf&#xff0c;\u5f3a\u70c8\u5efa\u8bae\u52a8\u624b\u524d\u8bbf\u95ee\u5b98\u65b9 GitHub \u4ed3\u5e93\u83b7\u53d6\u6700\u65b0\u901a\u5173\u6307\u5357\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u57fa\u4e8e LangChain  \u5411\u91cf\u68c0\u7d22\u7684 Bilibili-RAG&#xff1a;\u5982\u4f55\u7528\u4ee3\u7801\u69a8\u5e72\u6d41\u5a92\u4f53\u7684\u4fe1\u606f\u5bc6\u5ea6&#xff1f;\u5f53\u4f60\u8fd8\u5728\u5bf9\u7740B\u7ad9\u201c\u7a0d\u540e\u518d\u770b\u201d\u5217\u8868\u91cc\u51e0\u767e\u4e2a\u89c6\u9891\u671b\u6d0b\u5174\u53f9\u65f6&#xff0c;Bilibili-RAG \u5df2\u7ecf\u6084\u6084\u628a\u5b83\u4eec\u53d8\u6210\u4e86\u968f\u65f6\u5f85\u547d\u7684\u79c1\u4eba\u667a\u5e93&#xff1a;\u201c\u4f60\u4e0a\u4e2a\u6708\u6536\u85cf\u7684\u90a3\u4e2a\u4e24\u5c0f\u65f6AI\u8bb2\u5ea7&#xff0c;\u6211\u5df2\u7ecf\u5e2e\u4f60\u63d0\u70bc\u51fa\u6838\u5fc3\u4ee3\u7801\u903b\u8f91\u4e86&#xff0c;\u8981\u770b\u770b\u5417&#xff1f;\u201d\u4e00\u3001\u4e00\u573a\u8ba9B\u7ad9\u201c\u5403\u7070\u6536\u85cf\u5939\u201d\u91cd\u83b7\u65b0\u751f\u7684\u5f00\u6e90\u98ce\u66b4<br \/>\n\u79d1\u6280\u5708\u548c\u5b66\u4e60\u5708\u7684\u5e73\u9759\u6b63\u5728\u88ab\u4e00\u4e2a\u540d\u4e3a<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[8985,8988,8983,8984,8989,8987,8986],"topic":[],"class_list":["post-80119","post","type-post","status-publish","format-standard","hentry","category-server","tag-ai","tag-asr","tag-bilibili-rag","tag-rag","tag-8989","tag-8987","tag-8986"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u57fa\u4e8e LangChain + \u5411\u91cf\u68c0\u7d22\u7684 Bilibili-RAG\uff1a\u5982\u4f55\u7528\u4ee3\u7801\u69a8\u5e72\u6d41\u5a92\u4f53\u7684\u4fe1\u606f\u5bc6\u5ea6\uff1f - \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\/80119.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u57fa\u4e8e LangChain + \u5411\u91cf\u68c0\u7d22\u7684 Bilibili-RAG\uff1a\u5982\u4f55\u7528\u4ee3\u7801\u69a8\u5e72\u6d41\u5a92\u4f53\u7684\u4fe1\u606f\u5bc6\u5ea6\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u57fa\u4e8e LangChain \u5411\u91cf\u68c0\u7d22\u7684 Bilibili-RAG&#xff1a;\u5982\u4f55\u7528\u4ee3\u7801\u69a8\u5e72\u6d41\u5a92\u4f53\u7684\u4fe1\u606f\u5bc6\u5ea6&#xff1f;\u5f53\u4f60\u8fd8\u5728\u5bf9\u7740B\u7ad9\u201c\u7a0d\u540e\u518d\u770b\u201d\u5217\u8868\u91cc\u51e0\u767e\u4e2a\u89c6\u9891\u671b\u6d0b\u5174\u53f9\u65f6&#xff0c;Bilibili-RAG \u5df2\u7ecf\u6084\u6084\u628a\u5b83\u4eec\u53d8\u6210\u4e86\u968f\u65f6\u5f85\u547d\u7684\u79c1\u4eba\u667a\u5e93&#xff1a;\u201c\u4f60\u4e0a\u4e2a\u6708\u6536\u85cf\u7684\u90a3\u4e2a\u4e24\u5c0f\u65f6AI\u8bb2\u5ea7&#xff0c;\u6211\u5df2\u7ecf\u5e2e\u4f60\u63d0\u70bc\u51fa\u6838\u5fc3\u4ee3\u7801\u903b\u8f91\u4e86&#xff0c;\u8981\u770b\u770b\u5417&#xff1f;\u201d\u4e00\u3001\u4e00\u573a\u8ba9B\u7ad9\u201c\u5403\u7070\u6536\u85cf\u5939\u201d\u91cd\u83b7\u65b0\u751f\u7684\u5f00\u6e90\u98ce\u66b4 \u79d1\u6280\u5708\u548c\u5b66\u4e60\u5708\u7684\u5e73\u9759\u6b63\u5728\u88ab\u4e00\u4e2a\u540d\u4e3a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/80119.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-04T04:09:46+00:00\" \/>\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=\"11 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/80119.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/80119.html\",\"name\":\"\u57fa\u4e8e LangChain + \u5411\u91cf\u68c0\u7d22\u7684 Bilibili-RAG\uff1a\u5982\u4f55\u7528\u4ee3\u7801\u69a8\u5e72\u6d41\u5a92\u4f53\u7684\u4fe1\u606f\u5bc6\u5ea6\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-03-04T04:09:46+00:00\",\"dateModified\":\"2026-03-04T04:09:46+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/80119.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/80119.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/80119.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u57fa\u4e8e LangChain + \u5411\u91cf\u68c0\u7d22\u7684 Bilibili-RAG\uff1a\u5982\u4f55\u7528\u4ee3\u7801\u69a8\u5e72\u6d41\u5a92\u4f53\u7684\u4fe1\u606f\u5bc6\u5ea6\uff1f\"}]},{\"@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":"\u57fa\u4e8e LangChain + \u5411\u91cf\u68c0\u7d22\u7684 Bilibili-RAG\uff1a\u5982\u4f55\u7528\u4ee3\u7801\u69a8\u5e72\u6d41\u5a92\u4f53\u7684\u4fe1\u606f\u5bc6\u5ea6\uff1f - \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\/80119.html","og_locale":"zh_CN","og_type":"article","og_title":"\u57fa\u4e8e LangChain + \u5411\u91cf\u68c0\u7d22\u7684 Bilibili-RAG\uff1a\u5982\u4f55\u7528\u4ee3\u7801\u69a8\u5e72\u6d41\u5a92\u4f53\u7684\u4fe1\u606f\u5bc6\u5ea6\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u57fa\u4e8e LangChain \u5411\u91cf\u68c0\u7d22\u7684 Bilibili-RAG&#xff1a;\u5982\u4f55\u7528\u4ee3\u7801\u69a8\u5e72\u6d41\u5a92\u4f53\u7684\u4fe1\u606f\u5bc6\u5ea6&#xff1f;\u5f53\u4f60\u8fd8\u5728\u5bf9\u7740B\u7ad9\u201c\u7a0d\u540e\u518d\u770b\u201d\u5217\u8868\u91cc\u51e0\u767e\u4e2a\u89c6\u9891\u671b\u6d0b\u5174\u53f9\u65f6&#xff0c;Bilibili-RAG \u5df2\u7ecf\u6084\u6084\u628a\u5b83\u4eec\u53d8\u6210\u4e86\u968f\u65f6\u5f85\u547d\u7684\u79c1\u4eba\u667a\u5e93&#xff1a;\u201c\u4f60\u4e0a\u4e2a\u6708\u6536\u85cf\u7684\u90a3\u4e2a\u4e24\u5c0f\u65f6AI\u8bb2\u5ea7&#xff0c;\u6211\u5df2\u7ecf\u5e2e\u4f60\u63d0\u70bc\u51fa\u6838\u5fc3\u4ee3\u7801\u903b\u8f91\u4e86&#xff0c;\u8981\u770b\u770b\u5417&#xff1f;\u201d\u4e00\u3001\u4e00\u573a\u8ba9B\u7ad9\u201c\u5403\u7070\u6536\u85cf\u5939\u201d\u91cd\u83b7\u65b0\u751f\u7684\u5f00\u6e90\u98ce\u66b4 \u79d1\u6280\u5708\u548c\u5b66\u4e60\u5708\u7684\u5e73\u9759\u6b63\u5728\u88ab\u4e00\u4e2a\u540d\u4e3a","og_url":"https:\/\/www.wsisp.com\/helps\/80119.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-03-04T04:09:46+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"11 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/80119.html","url":"https:\/\/www.wsisp.com\/helps\/80119.html","name":"\u57fa\u4e8e LangChain + \u5411\u91cf\u68c0\u7d22\u7684 Bilibili-RAG\uff1a\u5982\u4f55\u7528\u4ee3\u7801\u69a8\u5e72\u6d41\u5a92\u4f53\u7684\u4fe1\u606f\u5bc6\u5ea6\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-03-04T04:09:46+00:00","dateModified":"2026-03-04T04:09:46+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/80119.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/80119.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/80119.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u57fa\u4e8e LangChain + \u5411\u91cf\u68c0\u7d22\u7684 Bilibili-RAG\uff1a\u5982\u4f55\u7528\u4ee3\u7801\u69a8\u5e72\u6d41\u5a92\u4f53\u7684\u4fe1\u606f\u5bc6\u5ea6\uff1f"}]},{"@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\/80119","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=80119"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/80119\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=80119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=80119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=80119"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=80119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}