{"id":93693,"date":"2026-08-13T03:24:41","date_gmt":"2026-08-12T19:24:41","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/93693.html"},"modified":"2026-08-13T03:24:41","modified_gmt":"2026-08-12T19:24:41","slug":"%e4%b8%80%e4%b8%aa%e5%9f%ba%e4%ba%8e%e5%a4%a7%e6%a8%a1%e5%9e%8b%e7%9a%84%e6%9c%ac%e5%9c%b0%e5%8f%af%e8%b7%91%e7%9a%84%e6%99%ba%e8%83%bd%e5%86%99%e4%bd%9c%e5%8a%a9%e6%89%8b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/93693.html","title":{"rendered":"\u4e00\u4e2a\u57fa\u4e8e\u5927\u6a21\u578b\u7684\u672c\u5730\u53ef\u8dd1\u7684\u667a\u80fd\u5199\u4f5c\u52a9\u624b"},"content":{"rendered":"<h2>\u5f00\u6e90\u4e00\u4e2a\u672c\u5730\u53ef\u8dd1\u7684\u667a\u80fd\u5199\u4f5c\u52a9\u624b&#xff1a;Node &#043; Flask&#043; RAG &#043; Ollama &#043; LoRA<\/h2>\n<h3>\u5199\u5728\u524d\u9762<\/h3>\n<p>\u65e5\u5e38\u5199\u4f5c\u91cc&#xff0c;\u6211\u4eec\u7ecf\u5e38\u4f1a\u9047\u5230\u8fd9\u4e9b\u573a\u666f&#xff1a;\u4f5c\u6587\u5361\u58f3\u3001\u5f00\u9898\u62a5\u544a\u7ed3\u6784\u4e71\u3001\u6587\u6848\u8981\u53cd\u590d\u6da6\u8272\u3001\u5b9e\u9a8c\u62a5\u544a\u8bed\u8a00\u8981\u66f4\u5b66\u672f\u2026\u2026 \u5982\u679c\u53ea\u9760\u901a\u7528\u5927\u6a21\u578b\u300c\u88f8\u804a\u300d&#xff0c;\u6548\u679c\u5f80\u5f80\u4e0d\u7a33\u5b9a&#xff1b;\u5982\u679c\u518d\u53e0\u4e00\u5c42\u672c\u5730\u77e5\u8bc6\u5e93&#xff08;\u8303\u6587\u3001\u672f\u8bed\u3001\u5199\u4f5c\u89c4\u8303&#xff09;&#xff0c;\u518d\u914d\u5408\u7ed3\u6784\u5316 Prompt&#xff0c;\u4f53\u9a8c\u4f1a\u597d\u5f88\u591a\u3002<\/p>\n<p>\u4e8e\u662f\u6211\u505a\u4e86\u4e00\u4e2a\u53ef\u672c\u5730\u90e8\u7f72\u7684\u667a\u80fd\u5199\u4f5c\u52a9\u624b&#xff0c;\u5e76\u628a\u5b8c\u6574\u4ee3\u7801\u5f00\u6e90\u4e86\u3002\u5b83\u652f\u6301&#xff1a;<\/p>\n<ul>\n<li>\u5927\u7eb2\u751f\u6210\u3001\u7eed\u5199\u3001\u6539\u5199\u3001\u6da6\u8272\u3001\u6458\u8981<\/li>\n<li>\u4fa7\u680f\u5bf9\u8bdd\u5f0f\u5199\u4f5c\u8f85\u52a9<\/li>\n<li>\u53ef\u9009 RAG \u77e5\u8bc6\u5e93&#xff08;\u5148\u68c0\u7d22\u518d\u751f\u6210&#xff09;<\/li>\n<li>\u7528\u6237\u767b\u5f55\u3001\u8349\u7a3f\u540c\u6b65\u4e0e\u7248\u672c\u56de\u6eda<\/li>\n<li>\u5bf9\u63a5\u672c\u5730 Ollama&#xff0c;\u4e5f\u53ef\u7528 Mock \u6a21\u5f0f\u5148\u4f53\u9a8c<\/li>\n<\/ul>\n<p>\u9002\u7528\u573a\u666f\u8986\u76d6\u65e5\u5e38\u5199\u4f5c&#xff08;\u521d\u9ad8\u4e2d\u4f5c\u6587\u3001\u65e5\u8bb0\u3001\u77ed\u7bc7\u5c0f\u8bf4\u3001\u8425\u9500\u6587\u6848\u7b49&#xff09;\u548c\u90e8\u5206\u4e13\u4e1a\u5199\u4f5c&#xff08;\u5f00\u9898\u62a5\u544a\u3001\u5b9e\u9a8c\u62a5\u544a\u7b49&#xff09;\u3002<\/p>\n<hr \/>\n<h3>\u9879\u76ee\u80fd\u505a\u4ec0\u4e48<\/h3>\n<p>\u754c\u9762\u4e0a\u662f\u300c\u5199\u4f5c\u533a &#043; \u4fa7\u680f\u300d\u7684\u7ecf\u5178\u5e03\u5c40&#xff1a;<\/p>\n<table>\n<tr>\u80fd\u529b\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>\u5199\u4f5c\u5de5\u5177\u680f<\/td>\n<td>\u4e00\u952e\u751f\u6210\u5927\u7eb2 \/ \u7eed\u5199 \/ \u6539\u5199 \/ \u6da6\u8272 \/ \u6458\u8981<\/td>\n<\/tr>\n<tr>\n<td>\u98ce\u683c\u63a7\u5236<\/td>\n<td>\u6b63\u5f0f\u5b66\u672f\u3001\u4e2d\u6027\u3001\u8f7b\u677e\u3001\u8425\u9500\u6587\u6848&#xff1b;\u4e2d\u82f1\u6587&#xff1b;\u77ed\u4e2d\u957f<\/td>\n<\/tr>\n<tr>\n<td>\u77e5\u8bc6\u5e93\u5f00\u5173<\/td>\n<td>\u5f00\u542f\u540e\u5148\u8d70\u672c\u5730\u5411\u91cf\u68c0\u7d22&#xff0c;\u518d\u628a\u76f8\u5173\u7247\u6bb5\u6ce8\u5165\u6a21\u578b\u4e0a\u4e0b\u6587<\/td>\n<\/tr>\n<tr>\n<td>\u5199\u4f5c\u6a21\u677f<\/td>\n<td>\u4e00\u952e\u63d2\u5165\u5e38\u7528\u7ed3\u6784&#xff0c;\u518d\u4ea4\u7ed9\u6a21\u578b\u7ec6\u5316<\/td>\n<\/tr>\n<tr>\n<td>\u8349\u7a3f\u7ba1\u7406<\/td>\n<td>\u672c\u5730\u7f13\u5b58&#xff1b;\u767b\u5f55\u540e\u53ef\u540c\u6b65\u5230 MySQL&#xff0c;\u652f\u6301\u7248\u672c\u5217\u8868\u4e0e\u56de\u6eda<\/td>\n<\/tr>\n<tr>\n<td>\u6a21\u578b\u8bbe\u7f6e<\/td>\n<td>\u53ef\u5207 Mock \/ \u771f\u5b9e Ollama&#xff0c;\u65b9\u4fbf\u6ca1\u6709 GPU \u65f6\u4e5f\u80fd\u6f14\u793a\u6d41\u7a0b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6838\u5fc3\u601d\u8def\u4e0d\u662f\u300c\u505a\u4e00\u4e2a\u804a\u5929\u6846\u300d&#xff0c;\u800c\u662f\u628a\u5199\u4f5c\u52a8\u4f5c&#xff08;\u7eed\u5199\u3001\u6da6\u8272\u7b49&#xff09;\u4ea7\u54c1\u5316&#xff0c;\u7528 Prompt \u5de5\u7a0b\u628a\u9700\u6c42\u7ed3\u6784\u5316&#xff0c;\u8ba9\u8f93\u51fa\u66f4\u53ef\u63a7\u3002<\/p>\n<hr \/>\n<h3>\u6574\u4f53\u67b6\u6784<\/h3>\n<p>\u9879\u76ee\u91c7\u7528\u524d\u540e\u7aef\u5206\u79bb\u3001\u672c\u5730\u591a\u670d\u52a1\u534f\u4f5c&#xff1a;<\/p>\n<p>\u6d4f\u89c8\u5668 (HTML\/CSS\/JS)<br \/>\n        \u2502<br \/>\n        \u25bc<br \/>\nNode.js \u7f51\u5173 (server.js)<br \/>\n  \u251c\u2500 \u9759\u6001\u9875\u9762\u6258\u7ba1<br \/>\n  \u251c\u2500 \u7528\u6237\u8ba4\u8bc1 (JWT)<br \/>\n  \u251c\u2500 \u8349\u7a3f \/ \u7248\u672c \/ \u4f1a\u8bdd API (MySQL)<br \/>\n  \u251c\u2500 \u4ee3\u7406 Ollama Chat API<br \/>\n  \u2514\u2500 \u53ef\u9009&#xff1a;\u8bf7\u6c42\u524d\u5411 RAG \u670d\u52a1\u68c0\u7d22\u5e76\u6ce8\u5165 system prompt<br \/>\n        \u2502<br \/>\n        \u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u25ba Ollama&#xff08;\u672c\u5730\u5927\u6a21\u578b&#xff09;<br \/>\n        \u2502<br \/>\n        \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u25ba Flask RAG (rag_server.py)<br \/>\n                              \u251c\u2500 LangChain \u6587\u6863\u5207\u5757<br \/>\n                              \u251c\u2500 Embedding&#xff08;HF \/ Ollama&#xff09;<br \/>\n                              \u2514\u2500 FAISS \u5411\u91cf\u68c0\u7d22<\/p>\n<p>\u53e6\u5916\u4ed3\u5e93\u91cc\u8fd8\u5305\u542b\u57fa\u4e8e DeepSeek-R1-Distill-Qwen-1.5B \u7684 LoRA \u9002\u914d\u5668&#xff0c;\u7528\u4e8e\u5728\u7279\u5b9a\u5199\u4f5c\u98ce\u683c\/\u4efb\u52a1\u4e0a\u505a\u8f7b\u91cf\u5fae\u8c03\u589e\u5f3a&#xff08;\u53ef\u6309\u9700\u63a5\u5165\u672c\u5730\u63a8\u7406\u94fe\u8def&#xff09;\u3002<\/p>\n<hr \/>\n<h3>\u6280\u672f\u6808\u4e00\u89c8<\/h3>\n<ul>\n<li>\u524d\u7aef&#xff1a;\u539f\u751f HTML \/ CSS \/ JavaScript&#xff08;\u65e0\u91cd\u578b\u6846\u67b6&#xff0c;\u90e8\u7f72\u7b80\u5355&#xff09;<\/li>\n<li>\u4e1a\u52a1\u540e\u7aef&#xff1a;Node.js&#xff08;\u8ba4\u8bc1\u3001\u8349\u7a3f\u3001Ollama \u4ee3\u7406\u3001RAG \u6ce8\u5165&#xff09;<\/li>\n<li>RAG \u670d\u52a1&#xff1a;Python Flask &#043; LangChain &#043; FAISS<\/li>\n<li>\u6570\u636e\u5e93&#xff1a;MySQL&#xff08;\u7528\u6237\u3001\u8349\u7a3f\u3001\u7248\u672c\u3001\u804a\u5929\u4f1a\u8bdd\u7b49&#xff09;<\/li>\n<li>\u672c\u5730\u63a8\u7406&#xff1a;Ollama<\/li>\n<li>\u5fae\u8c03\u76f8\u5173&#xff1a;LoRA Adapter&#xff08;DeepSeek-R1-Distill-Qwen-1.5B\/&#xff09;<\/li>\n<li>\u5de5\u7a0b\u70b9&#xff1a;Prompt \u5de5\u7a0b\u3001RAG&#xff08;\u68c0\u7d22\u589e\u5f3a\u751f\u6210&#xff09;\u3001JWT \u9274\u6743<\/li>\n<\/ul>\n<hr \/>\n<h3>\u51e0\u4e2a\u503c\u5f97\u8bf4\u7684\u5b9e\u73b0\u70b9<\/h3>\n<h4>1. Prompt \u5de5\u7a0b&#xff1a;\u628a\u300c\u5199\u4f5c\u610f\u56fe\u300d\u7ed3\u6784\u5316<\/h4>\n<p>\u7eed\u5199\u3001\u6da6\u8272\u3001\u6539\u5199\u8fd9\u7c7b\u80fd\u529b&#xff0c;\u4e0d\u80fd\u53ea\u4e22\u4e00\u53e5\u300c\u5e2e\u6211\u5199\u597d\u70b9\u300d\u3002 \u9879\u76ee\u91cc\u4f1a\u7ed3\u5408\u7528\u6237\u9009\u4e2d\u7684\u6587\u672c\u3001\u8bed\u6c14\u3001\u8bed\u8a00\u3001\u957f\u5ea6\u7b49\u7ea6\u675f&#xff0c;\u7ec4\u88c5\u66f4\u7a33\u5b9a\u7684\u6307\u4ee4&#xff0c;\u4f8b\u5982&#xff1a;<\/p>\n<ul>\n<li>\u660e\u786e\u4efb\u52a1\u7c7b\u578b&#xff08;polish \/ continue \/ rewrite&#xff09;<\/li>\n<li>\u7ea6\u675f\u98ce\u683c\u4e0e\u7bc7\u5e45<\/li>\n<li>\u8981\u6c42\u4fdd\u7559\u539f\u610f\u3001\u53ea\u4f18\u5316\u8868\u8fbe<\/li>\n<\/ul>\n<p>\u8fd9\u6837\u6bd4\u81ea\u7531\u5bf9\u8bdd\u66f4\u9002\u5408\u300c\u5199\u4f5c\u5de5\u5177\u300d\u573a\u666f\u3002<\/p>\n<h4>2. RAG&#xff1a;\u5148\u68c0\u7d22&#xff0c;\u518d\u751f\u6210<\/h4>\n<p>\u5f00\u542f\u300c\u662f\u5426\u91c7\u7528\u77e5\u8bc6\u5e93\u300d\u540e&#xff0c;\u6d41\u7a0b\u5927\u81f4\u662f&#xff1a;<\/p>\n<li>\u53d6\u5f53\u524d\u7528\u6237\u95ee\u9898 \/ \u5199\u4f5c\u4e0a\u4e0b\u6587<\/li>\n<li>Node \u7f51\u5173\u8bf7\u6c42 Flask RAG \u7684 \/query<\/li>\n<li>\u4ece FAISS \u4e2d\u53d6\u51fa\u76f8\u5173\u6587\u672c\u7247\u6bb5<\/li>\n<li>\u628a\u7247\u6bb5\u5199\u5165 system \/ \u4e0a\u4e0b\u6587&#xff0c;\u518d\u8f6c\u53d1\u7ed9 Ollama<\/li>\n<p>\u77e5\u8bc6\u5e93\u5185\u5bb9\u6765\u81ea RAG_backend\/data\/&#xff08;\u5982\u8303\u6587\u3001\u540d\u8a00\u3001\u8bed\u6599\u7b49&#xff09;&#xff0c;\u901a\u8fc7 ingest.py \u5207\u5757\u5e76\u5efa\u7d22\u5f15\u3002 \u8fd9\u6837\u6a21\u578b\u5728\u5199\u5f00\u9898\u3001\u4f5c\u6587\u65f6&#xff0c;\u53ef\u4ee5\u53c2\u8003\u4f60\u672c\u5730\u51c6\u5907\u7684\u6750\u6599&#xff0c;\u800c\u4e0d\u662f\u53ea\u9760\u53c2\u6570\u8bb0\u5fc6\u3002<\/p>\n<h4>3. Node \u7f51\u5173\u505a\u300c\u7f16\u6392\u5c42\u300d<\/h4>\n<p>Node \u4e0d\u53ea\u662f\u9759\u6001\u670d\u52a1\u5668&#xff0c;\u8fd8\u8d1f\u8d23&#xff1a;<\/p>\n<ul>\n<li>MySQL \u6301\u4e45\u5316\u4e0e JWT \u767b\u5f55<\/li>\n<li>\u7edf\u4e00\u4ee3\u7406\u672c\u5730 Ollama&#xff0c;\u907f\u514d\u524d\u7aef\u76f4\u8fde\u5e26\u6765\u7684\u8de8\u57df\/\u5bc6\u94a5\u95ee\u9898<\/li>\n<li>\u5728\u771f\u6b63\u8c03\u7528\u6a21\u578b\u524d&#xff0c;\u6309\u5f00\u5173\u51b3\u5b9a\u662f\u5426\u505a RAG \u589e\u5f3a<\/li>\n<\/ul>\n<p>\u8fd9\u5c42\u628a\u300c\u4ea7\u54c1\u903b\u8f91\u300d\u548c\u300c\u6a21\u578b\u63a8\u7406\u300d\u62c6\u5f00\u4e86&#xff0c;\u540e\u7eed\u6362\u6a21\u578b\u3001\u6362\u5411\u91cf\u5e93\u90fd\u66f4\u65b9\u4fbf\u3002<\/p>\n<h4>4. LoRA&#xff1a;\u5c0f\u6210\u672c\u9002\u914d\u5199\u4f5c\u4efb\u52a1<\/h4>\n<p>\u5168\u91cf\u5fae\u8c03\u6210\u672c\u9ad8&#xff0c;LoRA \u53ef\u4ee5\u5728\u53c2\u6570\u91cf\u5f88\u5c0f\u7684\u9002\u914d\u5668\u4e0a\u5b66\u4e60\u5199\u4f5c\u504f\u597d\u3002 \u4ed3\u5e93\u4e2d\u63d0\u4f9b\u4e86\u9002\u914d\u5668\u6743\u91cd\u76ee\u5f55&#xff0c;\u9002\u5408\u4f5c\u4e3a\u8bfe\u7a0b\u8bbe\u8ba1\/\u6bd5\u8bbe\u91cc\u300c\u5fae\u8c03\u5b9e\u9a8c\u300d\u7684\u843d\u5730\u6750\u6599&#xff1a;\u5bf9\u6bd4\u57fa\u5ea7\u6a21\u578b\u4e0e LoRA \u540e\u5728\u6da6\u8272\u3001\u7eed\u5199\u7b49\u4efb\u52a1\u4e0a\u7684\u5dee\u5f02\u3002<\/p>\n<hr \/>\n<h3>\u672c\u5730\u5feb\u901f\u8dd1\u8d77\u6765<\/h3>\n<p>\u4f9d\u8d56&#xff1a;Node.js\u3001MySQL&#xff1b;\u53ef\u9009 Python3\u3001Ollama\u3002<\/p>\n<p>1&#xff09;\u521d\u59cb\u5316\u6570\u636e\u5e93<\/p>\n<p>mysql <span class=\"token parameter variable\">-u<\/span> root <span class=\"token parameter variable\">-p<\/span> <span class=\"token parameter variable\">-e<\/span> <span class=\"token string\">&#034;CREATE DATABASE IF NOT EXISTS ai_writing DEFAULT CHARSET utf8mb4;&#034;<\/span><br \/>\nmysql <span class=\"token parameter variable\">-u<\/span> root <span class=\"token parameter variable\">-p<\/span> ai_writing <span class=\"token operator\">&lt;<\/span> ai_writing_db_init.sql<\/p>\n<p>2&#xff09;\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<p><span class=\"token function\">cp<\/span> .env.example .env<\/p>\n<p>\u586b\u5199 MySQL \u5bc6\u7801\u3001JWT_SECRET \u7b49\u3002<\/p>\n<p>3&#xff09;\u542f\u52a8 Node \u670d\u52a1<\/p>\n<p><span class=\"token function\">npm<\/span> <span class=\"token function\">install<\/span><br \/>\n<span class=\"token function\">npm<\/span> start<\/p>\n<p>\u7ec8\u7aef\u4f1a\u6253\u5370\u8bbf\u95ee\u5730\u5740&#xff08;PORT&#061;0 \u65f6\u81ea\u52a8\u5206\u914d\u7aef\u53e3&#xff09;\u3002<\/p>\n<p>4&#xff09;&#xff08;\u53ef\u9009&#xff09;\u542f\u52a8 RAG<\/p>\n<p><span class=\"token builtin class-name\">cd<\/span> RAG_backend<br \/>\npython <span class=\"token parameter variable\">-m<\/span> venv .venv<br \/>\n<span class=\"token comment\"># Windows: .venv\\\\Scripts\\\\activate<\/span><br \/>\npip <span class=\"token function\">install<\/span> <span class=\"token parameter variable\">-r<\/span> requirements.txt<br \/>\npython ingest.py<br \/>\npython rag_server.py<\/p>\n<p>Windows \u4e5f\u53ef\u76f4\u63a5\u8fd0\u884c \u542f\u52a8RAG.bat\u3002<\/p>\n<p>5&#xff09;\u5728\u8bbe\u7f6e\u91cc\u5173\u95ed Mock&#xff0c;\u6539\u4e3a\u771f\u5b9e Ollama \u6a21\u578b\u5373\u53ef\u5f00\u59cb\u6b63\u5f0f\u5199\u4f5c\u3002<\/p>\n<hr \/>\n<h3>\u9002\u5408\u8c01\u7528 \/ \u80fd\u5b66\u5230\u4ec0\u4e48<\/h3>\n<p>\u5982\u679c\u4f60\u5728\u505a\u8fd9\u4e9b\u65b9\u5411&#xff0c;\u8fd9\u4e2a\u9879\u76ee\u4f1a\u6bd4\u8f83\u6709\u53c2\u8003\u4ef7\u503c&#xff1a;<\/p>\n<ul>\n<li>\u5927\u6a21\u578b\u5e94\u7528\u843d\u5730&#xff08;\u4e0d\u662f\u53ea\u8c03 API Demo&#xff09;<\/li>\n<li>RAG \u5168\u6d41\u7a0b&#xff1a;ingest \u2192 \u5411\u91cf\u5e93 \u2192 \u68c0\u7d22 \u2192 \u6ce8\u5165 Prompt<\/li>\n<li>Prompt \u5de5\u7a0b\u5728\u5199\u4f5c\u4ea7\u54c1\u4e2d\u7684\u62c6\u89e3<\/li>\n<li>LoRA \u5fae\u8c03\u7ed3\u679c\u5982\u4f55\u653e\u5230\u5b9e\u9645\u5e94\u7528\u65c1\u8def\u91cc<\/li>\n<li>\u524d\u540e\u7aef &#043; \u672c\u5730\u63a8\u7406\u7684\u5de5\u7a0b\u4e32\u8054<\/li>\n<\/ul>\n<h3>\u5199\u5728\u6700\u540e<\/h3>\n<p>\u8fd9\u4e2a\u9879\u76ee\u7684\u76ee\u6807\u5f88\u660e\u786e&#xff1a;\u672c\u5730\u53ef\u63a7\u3001\u53ef\u6269\u5c55\u3001\u53ef\u6f14\u793a\u3002 \u4f60\u53ef\u4ee5\u5148\u7528 Mock \u8dd1\u901a\u4ea4\u4e92&#xff0c;\u518d\u63a5 Ollama&#xff1b;\u9700\u8981\u9886\u57df\u77e5\u8bc6\u65f6\u6253\u5f00 RAG&#xff1b;\u60f3\u505a\u98ce\u683c\u5b9a\u5236\u65f6\u518d\u5f15\u5165 LoRA\u3002<\/p>\n<p>\u6b22\u8fce Star\u3001Fork&#xff0c;\u4e5f\u6b22\u8fce\u63d0 Issue \u4ea4\u6d41\u6539\u8fdb\u60f3\u6cd5\u3002<\/p>\n<hr \/>\n<h3>\u5f00\u6e90\u5730\u5740<\/h3>\n<p>GitHub&#xff1a;https:\/\/github.com\/FZH27icecream\/ai-writing-assistant<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f00\u6e90\u4e00\u4e2a\u672c\u5730\u53ef\u8dd1\u7684\u667a\u80fd\u5199\u4f5c\u52a9\u624b&#xff1a;Node  Flask RAG  Ollama  LoRA<br \/>\n\u5199\u5728\u524d\u9762<br \/>\n\u65e5\u5e38\u5199\u4f5c\u91cc&#xff0c;\u6211\u4eec\u7ecf\u5e38\u4f1a\u9047\u5230\u8fd9\u4e9b\u573a\u666f&#xff1a;\u4f5c\u6587\u5361\u58f3\u3001\u5f00\u9898\u62a5\u544a\u7ed3\u6784\u4e71\u3001\u6587\u6848\u8981\u53cd\u590d\u6da6\u8272\u3001\u5b9e\u9a8c\u62a5\u544a\u8bed\u8a00\u8981\u66f4\u5b66\u672f\u2026\u2026 \u5982\u679c\u53ea\u9760\u901a\u7528\u5927\u6a21\u578b\u300c\u88f8\u804a\u300d&#xff0c;\u6548\u679c\u5f80\u5f80\u4e0d\u7a33\u5b9a&#xff1b;\u5982\u679c\u518d\u53e0\u4e00\u5c42\u672c\u5730\u77e5\u8bc6\u5e93&#xff08;\u8303\u6587\u3001\u672f\u8bed\u3001\u5199\u4f5c\u89c4\u8303&#xff09;&#xff0c;\u518d\u914d\u5408\u7ed3\u6784\u5316 Prompt&#xff0c;\u4f53\u9a8c\u4f1a\u597d\u5f88\u591a\u3002<br \/>\n\u4e8e\u662f\u6211<\/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":[1228,92,50,227,51],"topic":[],"class_list":["post-93693","post","type-post","status-publish","format-standard","hentry","category-server","tag-ai","tag-github","tag-50","tag-227","tag-51"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4e00\u4e2a\u57fa\u4e8e\u5927\u6a21\u578b\u7684\u672c\u5730\u53ef\u8dd1\u7684\u667a\u80fd\u5199\u4f5c\u52a9\u624b - \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\/93693.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4e00\u4e2a\u57fa\u4e8e\u5927\u6a21\u578b\u7684\u672c\u5730\u53ef\u8dd1\u7684\u667a\u80fd\u5199\u4f5c\u52a9\u624b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5f00\u6e90\u4e00\u4e2a\u672c\u5730\u53ef\u8dd1\u7684\u667a\u80fd\u5199\u4f5c\u52a9\u624b&#xff1a;Node Flask RAG Ollama LoRA \u5199\u5728\u524d\u9762 \u65e5\u5e38\u5199\u4f5c\u91cc&#xff0c;\u6211\u4eec\u7ecf\u5e38\u4f1a\u9047\u5230\u8fd9\u4e9b\u573a\u666f&#xff1a;\u4f5c\u6587\u5361\u58f3\u3001\u5f00\u9898\u62a5\u544a\u7ed3\u6784\u4e71\u3001\u6587\u6848\u8981\u53cd\u590d\u6da6\u8272\u3001\u5b9e\u9a8c\u62a5\u544a\u8bed\u8a00\u8981\u66f4\u5b66\u672f\u2026\u2026 \u5982\u679c\u53ea\u9760\u901a\u7528\u5927\u6a21\u578b\u300c\u88f8\u804a\u300d&#xff0c;\u6548\u679c\u5f80\u5f80\u4e0d\u7a33\u5b9a&#xff1b;\u5982\u679c\u518d\u53e0\u4e00\u5c42\u672c\u5730\u77e5\u8bc6\u5e93&#xff08;\u8303\u6587\u3001\u672f\u8bed\u3001\u5199\u4f5c\u89c4\u8303&#xff09;&#xff0c;\u518d\u914d\u5408\u7ed3\u6784\u5316 Prompt&#xff0c;\u4f53\u9a8c\u4f1a\u597d\u5f88\u591a\u3002 \u4e8e\u662f\u6211\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/93693.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-12T19:24:41+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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/93693.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/93693.html\",\"name\":\"\u4e00\u4e2a\u57fa\u4e8e\u5927\u6a21\u578b\u7684\u672c\u5730\u53ef\u8dd1\u7684\u667a\u80fd\u5199\u4f5c\u52a9\u624b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-12T19:24:41+00:00\",\"dateModified\":\"2026-08-12T19:24:41+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/93693.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/93693.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/93693.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4e00\u4e2a\u57fa\u4e8e\u5927\u6a21\u578b\u7684\u672c\u5730\u53ef\u8dd1\u7684\u667a\u80fd\u5199\u4f5c\u52a9\u624b\"}]},{\"@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":"\u4e00\u4e2a\u57fa\u4e8e\u5927\u6a21\u578b\u7684\u672c\u5730\u53ef\u8dd1\u7684\u667a\u80fd\u5199\u4f5c\u52a9\u624b - \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\/93693.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4e00\u4e2a\u57fa\u4e8e\u5927\u6a21\u578b\u7684\u672c\u5730\u53ef\u8dd1\u7684\u667a\u80fd\u5199\u4f5c\u52a9\u624b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5f00\u6e90\u4e00\u4e2a\u672c\u5730\u53ef\u8dd1\u7684\u667a\u80fd\u5199\u4f5c\u52a9\u624b&#xff1a;Node Flask RAG Ollama LoRA \u5199\u5728\u524d\u9762 \u65e5\u5e38\u5199\u4f5c\u91cc&#xff0c;\u6211\u4eec\u7ecf\u5e38\u4f1a\u9047\u5230\u8fd9\u4e9b\u573a\u666f&#xff1a;\u4f5c\u6587\u5361\u58f3\u3001\u5f00\u9898\u62a5\u544a\u7ed3\u6784\u4e71\u3001\u6587\u6848\u8981\u53cd\u590d\u6da6\u8272\u3001\u5b9e\u9a8c\u62a5\u544a\u8bed\u8a00\u8981\u66f4\u5b66\u672f\u2026\u2026 \u5982\u679c\u53ea\u9760\u901a\u7528\u5927\u6a21\u578b\u300c\u88f8\u804a\u300d&#xff0c;\u6548\u679c\u5f80\u5f80\u4e0d\u7a33\u5b9a&#xff1b;\u5982\u679c\u518d\u53e0\u4e00\u5c42\u672c\u5730\u77e5\u8bc6\u5e93&#xff08;\u8303\u6587\u3001\u672f\u8bed\u3001\u5199\u4f5c\u89c4\u8303&#xff09;&#xff0c;\u518d\u914d\u5408\u7ed3\u6784\u5316 Prompt&#xff0c;\u4f53\u9a8c\u4f1a\u597d\u5f88\u591a\u3002 \u4e8e\u662f\u6211","og_url":"https:\/\/www.wsisp.com\/helps\/93693.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-12T19:24:41+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/93693.html","url":"https:\/\/www.wsisp.com\/helps\/93693.html","name":"\u4e00\u4e2a\u57fa\u4e8e\u5927\u6a21\u578b\u7684\u672c\u5730\u53ef\u8dd1\u7684\u667a\u80fd\u5199\u4f5c\u52a9\u624b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-12T19:24:41+00:00","dateModified":"2026-08-12T19:24:41+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/93693.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/93693.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/93693.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4e00\u4e2a\u57fa\u4e8e\u5927\u6a21\u578b\u7684\u672c\u5730\u53ef\u8dd1\u7684\u667a\u80fd\u5199\u4f5c\u52a9\u624b"}]},{"@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\/93693","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=93693"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/93693\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=93693"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=93693"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=93693"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=93693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}