{"id":120509,"date":"2026-10-31T21:09:02","date_gmt":"2026-10-31T13:09:02","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/120509.html"},"modified":"2026-10-31T21:09:02","modified_gmt":"2026-10-31T13:09:02","slug":"%e4%b8%8d%e5%86%99%e4%b8%80%e8%a1%8c%e4%bb%a3%e7%a0%81%e4%b9%9f%e8%83%bd%e6%90%ad-ai-%e5%ba%94%e7%94%a8%ef%bc%9fdify-%e4%bb%8e%e5%ae%89%e8%a3%85%e5%88%b0%e7%9f%a5%e8%af%86%e5%ba%93-rag-%e5%85%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/120509.html","title":{"rendered":"\u4e0d\u5199\u4e00\u884c\u4ee3\u7801\u4e5f\u80fd\u642d AI \u5e94\u7528\uff1fDify \u4ece\u5b89\u88c5\u5230\u77e5\u8bc6\u5e93 RAG \u5168\u6253\u901a"},"content":{"rendered":"<p>\u524d\u9762\u54b1\u4eec\u7528 LangGraph \u624b\u64b8\u4e86\u4e00\u5806 Agent \u4ee3\u7801&#xff0c;State\u3001\u8282\u70b9\u3001\u8fb9\u3001Interrupt\u2026\u2026 \u723d\u662f\u723d&#xff0c;\u4f46\u4f60\u6709\u6ca1\u6709\u60f3\u8fc7&#xff1a;\u5982\u679c\u4ea7\u54c1\u7ecf\u7406\u60f3\u81ea\u5df1\u642d\u4e00\u4e2a AI \u5e94\u7528&#xff0c;\u603b\u4e0d\u80fd\u8ba9\u5979\u53bb\u5199 Python \u5427&#xff1f;<\/p>\n<p>\u8fd9\u5c31\u662f Dify \u51fa\u573a\u7684\u539f\u56e0\u3002\u8001\u54e5\u7ed9\u5b83\u4e00\u53e5\u6700\u76f4\u767d\u7684\u5b9a\u4f4d&#xff1a;Dify \u5c31\u662f\u4e0d\u5199\u4ee3\u7801\u7684 LangGraph\u3002\u53ef\u89c6\u5316\u754c\u9762&#xff0c;\u62d6\u62fd\u8282\u70b9&#xff0c;\u628a\u5927\u6a21\u578b\u3001\u63d0\u793a\u8bcd\u3001\u77e5\u8bc6\u5e93\u3001\u5de5\u4f5c\u6d41\u3001Agent \u548c\u5916\u90e8\u5de5\u5177\u62fc\u6210\u5b8c\u6574\u7684 AI \u5e94\u7528\u3002\u8fd9\u7bc7\u54b1\u4eec\u4ece\u5b89\u88c5\u4e00\u8def\u6253\u5230\u77e5\u8bc6\u5e93 RAG&#xff0c;\u6240\u6709\u914d\u7f6e\u76f4\u63a5\u590d\u5236\u5c31\u80fd\u7528\u3002<\/p>\n<h4>\u4e00\u3001Dify \u662f\u4e2a\u5565&#xff0c;\u548c Coze \u600e\u4e48\u9009<\/h4>\n<p>Dify \u662f\u5f00\u6e90\u7684\u751f\u6210\u5f0f AI \u5e94\u7528\u6784\u5efa\u5e73\u53f0&#xff0c;\u6838\u5fc3\u529f\u80fd\u4e00\u89c8&#xff1a;<\/p>\n<p>\u8868\u683c<\/p>\n<table>\n<tr>\u529f\u80fd\u8bf4\u660e\u5e38\u89c1\u5e94\u7528<\/tr>\n<tbody>\n<tr>\n<td>\u6a21\u578b\u7ba1\u7406<\/td>\n<td>\u63a5\u5165\u4e0d\u540c\u6a21\u578b\u4f9b\u5e94\u5546<\/td>\n<td>\u5bf9\u8bdd\u3001\u6587\u672c\u751f\u6210\u3001\u5411\u91cf\u5316<\/td>\n<\/tr>\n<tr>\n<td>Prompt \u7f16\u6392<\/td>\n<td>\u8bbe\u8ba1\u63d0\u793a\u8bcd\u3001\u53d8\u91cf\u3001\u8f93\u51fa\u683c\u5f0f<\/td>\n<td>\u6587\u6848\u751f\u6210\u3001\u4fe1\u606f\u63d0\u53d6<\/td>\n<\/tr>\n<tr>\n<td>\u77e5\u8bc6\u5e93\u4e0e RAG<\/td>\n<td>\u4ece\u4f01\u4e1a\u6587\u6863\u68c0\u7d22\u5185\u5bb9\u56de\u7b54<\/td>\n<td>\u5236\u5ea6\u95ee\u7b54\u3001\u4ea7\u54c1\u5ba2\u670d<\/td>\n<\/tr>\n<tr>\n<td>Chatflow \/ Workflow<\/td>\n<td>\u7f16\u6392\u5bf9\u8bdd\u6216\u4e00\u6b21\u6027\u6d41\u7a0b<\/td>\n<td>\u667a\u80fd\u5ba2\u670d\u3001\u5185\u5bb9\u751f\u6210<\/td>\n<\/tr>\n<tr>\n<td>Agent<\/td>\n<td>\u6a21\u578b\u81ea\u4e3b\u9009\u62e9\u5de5\u5177<\/td>\n<td>\u65c5\u884c\u89c4\u5212\u3001\u529e\u516c\u52a9\u624b<\/td>\n<\/tr>\n<tr>\n<td>WebApp \u4e0e API<\/td>\n<td>\u53d1\u5e03\u7ed9\u7528\u6237\u6216\u7cfb\u7edf\u8c03\u7528<\/td>\n<td>\u7f51\u7ad9\u5ba2\u670d\u3001\u7cfb\u7edf\u96c6\u6210<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Dify \u548c Coze \u600e\u4e48\u9009&#xff1f;\u5feb\u901f\u505a\u4e2a\u80fd\u53d1\u5230\u5fae\u4fe1 \/ \u98de\u4e66\u7684\u804a\u5929\u673a\u5668\u4eba\u3001\u4e0d\u60f3\u7ba1\u670d\u52a1\u5668 \u2192 Coze&#xff1b;\u8981\u4f01\u4e1a\u77e5\u8bc6\u5e93\u3001AI \u80fd\u529b\u5d4c\u8fdb\u81ea\u5df1\u7cfb\u7edf\u3001\u6570\u636e\u7559\u5185\u7f51 \u2192 Dify\u3002 \u6280\u672f\u56e2\u961f\u503e\u5411 Dify&#xff08;\u5f00\u6e90\u53ef\u63a7 &#043; API \u751f\u6001&#xff09;&#xff0c;\u4e1a\u52a1\u56e2\u961f\u503e\u5411 Coze&#xff08;\u96f6\u4ee3\u7801 &#043; \u591a\u6e20\u9053\u5206\u53d1&#xff09;\u3002<\/p>\n<h4>\u4e8c\u3001Docker \u90e8\u7f72 Dify<\/h4>\n<p>Dify \u4e0d\u662f\u5355\u4e2a\u5bb9\u5668&#xff0c;\u5b8c\u6574\u8fd0\u884c\u9700\u8981 Web\u3001API\u3001Worker\u3001\u6570\u636e\u5e93\u3001Redis\u3001\u5411\u91cf\u6570\u636e\u5e93\u7b49\u591a\u4e2a\u670d\u52a1&#xff0c;\u9760 Docker Compose \u7edf\u4e00\u7ba1\u7406\u3002<\/p>\n<p>\u51c6\u5907\u6761\u4ef6&#xff1a;Win10\/11\u3001\u542f\u7528\u786c\u4ef6\u865a\u62df\u5316\u3001\u88c5\u597d Docker Desktop&#xff08;WSL2 \u540e\u7aef&#xff09;\u3001Git\u3002\u7136\u540e&#xff1a;<\/p>\n<p># 1. \u514b\u9686 Dify \u4ed3\u5e93&#xff0c;\u8fdb\u5165 docker \u76ee\u5f55<br \/>\ncd dify\/docker<\/p>\n<p># 2. \u590d\u5236\u73af\u5883\u914d\u7f6e<br \/>\ncp .env.example .env<\/p>\n<p># 3. \u542f\u52a8&#xff08;-d \u540e\u53f0\u8fd0\u884c&#xff0c;\u7b2c\u4e00\u6b21\u8981\u62c9\u955c\u50cf&#xff0c;\u6162\u4e00\u70b9\u6b63\u5e38&#xff09;<br \/>\ndocker compose up -d<\/p>\n<p># 4. \u770b\u5bb9\u5668\u72b6\u6001<br \/>\ndocker compose ps<\/p>\n<p># 5. \u770b\u65e5\u5fd7&#xff08;Ctrl&#043;C \u9000\u51fa&#xff0c;\u4e0d\u4f1a\u505c\u5bb9\u5668&#xff09;<br \/>\ndocker compose logs -f<\/p>\n<p># 6. \u505c\u670d\u52a1 \/ \u91cd\u542f<br \/>\ndocker compose down<br \/>\ndocker compose restart<\/p>\n<p>\u8001\u54e5\u8e29\u5751\u63d0\u9192&#xff1a;<\/p>\n<ul>\n<li>\u542f\u52a8\u524d\u5173\u6389\u68af\u5b50&#xff0c;\u4e0d\u7136\u955c\u50cf\u62c9\u53d6\u5bb9\u6613\u62a5\u9519&#xff1b;<\/li>\n<li>\u5982\u679c\u62a5 &#034;\u8fde\u4e0d\u4e0a Docker&#034;&#xff0c;\u8bf4\u660e Docker Desktop \u6ca1\u542f\u52a8&#xff1b;<\/li>\n<li>\u6d4f\u89c8\u5668\u8bbf\u95ee http:\/\/localhost\/install \u521b\u5efa\u7ba1\u7406\u5458\u8d26\u53f7&#xff1b;<\/li>\n<li>\u522b\u4e71\u5220\u6570\u636e\u76ee\u5f55\u548c\u6570\u636e\u5377&#xff0c;\u5426\u5219\u8d26\u53f7\u3001\u5e94\u7528\u3001\u77e5\u8bc6\u5e93\u5168\u4e22\u3002<\/li>\n<\/ul>\n<h4>\u4e09\u3001\u9879\u76ee\u4e00&#xff1a;\u8425\u9500\u6587\u6848\u751f\u6210\u5668<\/h4>\n<p>\u767b\u5f55\u540e\u8fdb Studio&#xff0c;\u521b\u5efa\u4e00\u4e2a &#034;\u5de5\u4f5c\u6d41&#034; \u5e94\u7528&#xff0c;\u53eb\u8425\u9500\u6587\u6848\u751f\u6210\u5668\u3002\u7528\u6237\u8f93\u5165\u4ea7\u54c1\u4fe1\u606f&#xff0c;\u5e94\u7528\u8f93\u51fa\u6807\u9898 &#043; \u6b63\u6587 &#043; \u5356\u70b9 &#043; \u884c\u52a8\u5f15\u5bfc\u8bed\u3002<\/p>\n<h5>3.1 \u8f93\u5165\u53d8\u91cf&#xff08;\u5f00\u59cb\u8282\u70b9&#xff09;<\/h5>\n<p>\u8868\u683c<\/p>\n<table>\n<tr>\u663e\u793a\u540d\u79f0\u53d8\u91cf\u540d\u7c7b\u578b\u5fc5\u586b\u9009\u9879 \/ \u793a\u4f8b<\/tr>\n<tbody>\n<tr>\n<td>\u4ea7\u54c1\u540d\u79f0<\/td>\n<td>product_name<\/td>\n<td>\u77ed\u6587\u672c<\/td>\n<td>\u662f<\/td>\n<td>\u8f7b\u4eab\u4fdd\u6e29\u676f<\/td>\n<\/tr>\n<tr>\n<td>\u4ea7\u54c1\u7279\u70b9<\/td>\n<td>product_features<\/td>\n<td>\u6bb5\u843d<\/td>\n<td>\u662f<\/td>\n<td>\u8f7b\u4fbf\u3001\u4fdd\u6e29 12 \u5c0f\u65f6\u3001\u98df\u54c1\u7ea7\u4e0d\u9508\u94a2<\/td>\n<\/tr>\n<tr>\n<td>\u76ee\u6807\u7528\u6237<\/td>\n<td>target_audience<\/td>\n<td>\u77ed\u6587\u672c<\/td>\n<td>\u662f<\/td>\n<td>\u901a\u52e4\u4e0a\u73ed\u65cf<\/td>\n<\/tr>\n<tr>\n<td>\u53d1\u5e03\u5e73\u53f0<\/td>\n<td>platform<\/td>\n<td>\u4e0b\u62c9\u9009\u62e9<\/td>\n<td>\u662f<\/td>\n<td>\u5c0f\u7ea2\u4e66 \/ \u516c\u4f17\u53f7 \/ \u670b\u53cb\u5708 \/ \u77ed\u89c6\u9891 \/ \u7535\u5546\u8be6\u60c5\u9875<\/td>\n<\/tr>\n<tr>\n<td>\u6587\u6848\u98ce\u683c<\/td>\n<td>tone<\/td>\n<td>\u4e0b\u62c9\u9009\u62e9<\/td>\n<td>\u662f<\/td>\n<td>\u4e13\u4e1a \/ \u8f7b\u677e \/ \u6e29\u6696 \/ \u7b80\u6d01 \/ \u6d3b\u6cfc<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>3.2 System Prompt&#xff08;\u7c98\u8d34\u5230 LLM \u8282\u70b9&#xff09;<\/h5>\n<p>\u4f60\u662f\u4e00\u4f4d\u8d44\u6df1\u8425\u9500\u6587\u6848\u7b56\u5212&#xff0c;\u64c5\u957f\u6839\u636e\u4ea7\u54c1\u4fe1\u606f\u548c\u53d1\u5e03\u5e73\u53f0\u7279\u70b9\u64b0\u5199\u9ad8\u8f6c\u5316\u7387\u6587\u6848\u3002<\/p>\n<p>## \u4efb\u52a1<br \/>\n\u6839\u636e\u7528\u6237\u63d0\u4f9b\u7684\u4ea7\u54c1\u4fe1\u606f&#xff0c;\u64b0\u5199\u4e00\u7bc7\u9002\u914d\u6307\u5b9a\u53d1\u5e03\u5e73\u53f0\u7684\u8425\u9500\u6587\u6848\u3002<\/p>\n<p>## \u4ea7\u54c1\u4fe1\u606f<br \/>\n&#8211; \u4ea7\u54c1\u540d\u79f0&#xff1a;{{product_name}}<br \/>\n&#8211; \u4ea7\u54c1\u7279\u70b9&#xff1a;{{product_features}}<br \/>\n&#8211; \u76ee\u6807\u7528\u6237&#xff1a;{{target_audience}}<br \/>\n&#8211; \u53d1\u5e03\u5e73\u53f0&#xff1a;{{platform}}<br \/>\n&#8211; \u6587\u6848\u98ce\u683c&#xff1a;{{tone}}<\/p>\n<p>## \u89c4\u5219<br \/>\n1. \u5fc5\u987b\u4e25\u683c\u57fa\u4e8e\u4ea7\u54c1\u7279\u70b9\u64b0\u5199&#xff0c;\u7981\u6b62\u865a\u6784\u4ef7\u683c\u3001\u8ba4\u8bc1\u3001\u9500\u91cf\u3001\u7528\u6237\u8bc4\u4ef7\u7b49\u4ea7\u54c1\u672a\u63d0\u4f9b\u7684\u4e8b\u5b9e\u3002<br \/>\n2. \u6587\u6848\u98ce\u683c\u5fc5\u987b\u5339\u914d\u7528\u6237\u9009\u62e9\u7684&#034;{{tone}}&#034;&#xff0c;\u4e0d\u5f97\u6df7\u5165\u5176\u4ed6\u98ce\u683c\u3002<br \/>\n3. \u5fc5\u987b\u9002\u914d&#034;{{platform}}&#034;\u5e73\u53f0\u7684\u9605\u8bfb\u4e60\u60ef\u548c\u6392\u7248\u7279\u70b9&#xff1a;<br \/>\n   &#8211; \u5c0f\u7ea2\u4e66&#xff1a;\u6807\u9898\u5e26emoji\u3001\u5206\u6bb5\u77ed\u3001\u591a\u7528\u8bdd\u9898\u6807\u7b7e<br \/>\n   &#8211; \u516c\u4f17\u53f7&#xff1a;\u6807\u9898\u6709\u4fe1\u606f\u91cf\u3001\u6b63\u6587\u6709\u5c0f\u6807\u9898\u3001\u7ed3\u5c3e\u6709\u884c\u52a8\u5f15\u5bfc<br \/>\n   &#8211; \u670b\u53cb\u5708&#xff1a;\u53e3\u8bed\u5316\u3001\u77ed\u6bb5\u843d\u3001\u50cf\u670b\u53cb\u63a8\u8350<br \/>\n   &#8211; \u77ed\u89c6\u9891&#xff1a;\u53e3\u64ad\u611f\u3001\u524d3\u79d2\u6293\u6ce8\u610f\u529b\u3001\u8282\u594f\u5feb<br \/>\n   &#8211; \u7535\u5546\u8be6\u60c5\u9875&#xff1a;\u5356\u70b9\u6e05\u6670\u3001\u7a81\u51fa\u89c4\u683c\u548c\u4f7f\u7528\u573a\u666f<br \/>\n4. \u9762\u5411&#034;{{target_audience}}&#034;\u8bf4\u8bdd&#xff0c;\u4e0d\u8981\u7528\u4ed6\u4eec\u4e0d\u5173\u5fc3\u7684\u672f\u8bed\u3002<br \/>\n5. \u5982\u679c\u4ea7\u54c1\u4fe1\u606f\u4e0d\u5b8c\u6574&#xff0c;\u57fa\u4e8e\u5df2\u6709\u4fe1\u606f\u64b0\u5199&#xff0c;\u4e0d\u8981\u7f16\u9020\u7f3a\u5931\u5185\u5bb9\u3002<\/p>\n<p>## \u8f93\u51fa\u683c\u5f0f<br \/>\n\u8bf7\u6309\u4ee5\u4e0b\u7ed3\u6784\u8f93\u51fa&#xff1a;<\/p>\n<p>### \u6807\u9898<br \/>\n&#xff08;\u4e00\u4e2a\u5438\u5f15\u70b9\u51fb\u7684\u6807\u9898&#xff0c;\u7b26\u5408\u5e73\u53f0\u98ce\u683c&#xff09;<\/p>\n<p>### \u6b63\u6587<br \/>\n&#xff08;200-400\u5b57\u7684\u6b63\u6587&#xff0c;\u5206\u6bb5\u6e05\u6670&#xff09;<\/p>\n<p>### \u6838\u5fc3\u5356\u70b9<br \/>\n&#xff08;3\u6761\u4ee5\u5185&#xff0c;\u6bcf\u6761\u4e00\u53e5\u8bdd&#xff09;<\/p>\n<p>### \u884c\u52a8\u5f15\u5bfc\u8bed<br \/>\n&#xff08;\u4e00\u53e5\u5f15\u5bfc\u7528\u6237\u4e0b\u5355\/\u54a8\u8be2\/\u70b9\u51fb\u7684\u8bdd&#xff09;<\/p>\n<p>\u6ce8\u610f&#xff1a;{{product_name}} \u8fd9\u4e9b\u53d8\u91cf\u4e0d\u8981\u624b\u6253&#xff0c;\u8981\u7528 Dify \u754c\u9762\u7684\u53d8\u91cf\u9009\u62e9\u5668\u63d2\u5165\u3002\u63d2\u5165\u524d\u8bb0\u5f97\u6253\u5f00 Jinja \u5f00\u5173 \u2014\u2014 \u4e0d\u7136\u6a21\u578b\u6536\u5230\u7684\u5c31\u662f\u5b57\u9762\u91cf {{product_name}}&#xff0c;\u4e00\u8138\u61f5\u3002<\/p>\n<h5>3.3 \u6a21\u578b\u53c2\u6570<\/h5>\n<p>\u8868\u683c<\/p>\n<table>\n<tr>\u53c2\u6570\u5efa\u8bae\u503c\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>Temperature<\/td>\n<td>0.7<\/td>\n<td>\u6587\u6848\u9700\u8981\u4e00\u5b9a\u521b\u9020\u6027<\/td>\n<\/tr>\n<tr>\n<td>Top P<\/td>\n<td>0.9<\/td>\n<td>\u9ed8\u8ba4\u5373\u53ef&#xff0c;\u522b\u548c Temperature \u540c\u65f6\u5927\u6539<\/td>\n<\/tr>\n<tr>\n<td>Max Tokens<\/td>\n<td>800<\/td>\n<td>\u6587\u6848 &#043; \u7ed3\u6784\u5927\u7ea6\u8fd9\u4e2a\u957f\u5ea6<\/td>\n<\/tr>\n<tr>\n<td>Frequency Penalty<\/td>\n<td>0.2<\/td>\n<td>\u51cf\u5c11\u7528\u8bcd\u91cd\u590d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>3.4 \u6d4b\u8bd5\u7528\u4f8b<\/h5>\n<p>\u8868\u683c<\/p>\n<table>\n<tr>\u7f16\u53f7\u4ea7\u54c1\u7279\u70b9\u76ee\u6807\u7528\u6237\u5e73\u53f0\u98ce\u683c<\/tr>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>\u4fdd\u6e29\u676f<\/td>\n<td>\u8f7b\u4fbf\u3001\u4fdd\u6e29 12 \u5c0f\u65f6\u3001\u98df\u54c1\u7ea7\u4e0d\u9508\u94a2<\/td>\n<td>\u901a\u52e4\u4e0a\u73ed\u65cf<\/td>\n<td>\u5c0f\u7ea2\u4e66<\/td>\n<td>\u8f7b\u677e<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>\u5728\u7ebf\u8bfe\u7a0b<\/td>\n<td>\u96f6\u57fa\u7840\u5165\u95e8\u3001\u6848\u4f8b\u6559\u5b66\u3001\u652f\u6301\u56de\u770b<\/td>\n<td>\u96f6\u57fa\u7840\u5b66\u4e60\u8005<\/td>\n<td>\u516c\u4f17\u53f7<\/td>\n<td>\u4e13\u4e1a<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>\u513f\u7ae5\u7ed8\u672c<\/td>\n<td>\u5927\u5e45\u63d2\u56fe\u3001\u7b80\u77ed\u6545\u4e8b\u3001\u4eb2\u5b50\u4e92\u52a8\u95ee\u9898<\/td>\n<td>3-6 \u5c81\u513f\u7ae5\u5bb6\u957f<\/td>\n<td>\u670b\u53cb\u5708<\/td>\n<td>\u6e29\u6696<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>\u65e0\u7cd6\u5496\u5561<\/td>\n<td>\u4e0d\u6dfb\u52a0\u8517\u7cd6\u3001\u5373\u5f00\u5373\u996e\u3001\u6bcf\u74f6 300ml<\/td>\n<td>\u5065\u8eab\u4eba\u7fa4<\/td>\n<td>\u77ed\u89c6\u9891<\/td>\n<td>\u6d3b\u6cfc<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>\u56db\u3001\u9879\u76ee\u4e8c&#xff1a;\u7b80\u5386\u5206\u6790\u52a9\u624b&#xff08;\u7ed3\u6784\u5316\u8f93\u51fa&#xff09;<\/h4>\n<p>\u5149\u8f93\u51fa\u4e00\u5927\u6bb5\u6587\u5b57&#xff0c;\u7a0b\u5e8f\u6ca1\u6cd5\u63a5\u7740\u5904\u7406\u3002Dify \u7684 LLM \u8282\u70b9\u652f\u6301\u7ed3\u6784\u5316\u8f93\u51fa&#xff0c;\u8ba9\u6a21\u578b\u6309\u5b9a\u4e49\u597d\u7684 JSON Schema \u8fd4\u56de\u5b57\u6bb5\u3002<\/p>\n<h5>4.1 \u8f93\u5165\u53d8\u91cf<\/h5>\n<p>\u8868\u683c<\/p>\n<table>\n<tr>\u663e\u793a\u540d\u79f0\u53d8\u91cf\u540d\u7c7b\u578b\u5fc5\u586b\u5efa\u8bae\u957f\u5ea6<\/tr>\n<tbody>\n<tr>\n<td>\u7b80\u5386\u5185\u5bb9<\/td>\n<td>resume_text<\/td>\n<td>\u6bb5\u843d<\/td>\n<td>\u662f<\/td>\n<td>10000<\/td>\n<\/tr>\n<tr>\n<td>\u76ee\u6807\u5c97\u4f4d<\/td>\n<td>target_position<\/td>\n<td>\u77ed\u6587\u672c<\/td>\n<td>\u662f<\/td>\n<td>100<\/td>\n<\/tr>\n<tr>\n<td>\u5c97\u4f4d\u8981\u6c42<\/td>\n<td>job_requirements<\/td>\n<td>\u6bb5\u843d<\/td>\n<td>\u662f<\/td>\n<td>5000<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>4.2 System Prompt<\/h5>\n<p>\u4f60\u662f\u4e00\u4f4d\u8d44\u6df1\u6280\u672f\u62db\u8058\u5b98&#xff0c;\u8d1f\u8d23\u5206\u6790\u7b80\u5386\u4e0e\u5c97\u4f4d\u7684\u5339\u914d\u7a0b\u5ea6\u3002<\/p>\n<p>## \u7b80\u5386\u5185\u5bb9<br \/>\n{{resume_text}}<\/p>\n<p>## \u76ee\u6807\u5c97\u4f4d<br \/>\n{{target_position}}<\/p>\n<p>## \u5c97\u4f4d\u8981\u6c42<br \/>\n{{job_requirements}}<\/p>\n<p>## \u5206\u6790\u89c4\u5219<br \/>\n1. \u5339\u914d\u5206\u6570&#xff08;match_score&#xff09;\u4e3a0-100\u7684\u6574\u6570&#xff0c;\u7efc\u5408\u4ee5\u4e0b\u7ef4\u5ea6\u52a0\u6743&#xff1a;<br \/>\n   &#8211; \u6838\u5fc3\u6280\u80fd\u5339\u914d&#xff08;35%&#xff09;<br \/>\n   &#8211; \u5de5\u4f5c\u7ecf\u5386\u76f8\u5173\u5ea6&#xff08;25%&#xff09;<br \/>\n   &#8211; \u9879\u76ee\u7ecf\u9a8c\u5339\u914d&#xff08;20%&#xff09;<br \/>\n   &#8211; \u884c\u4e1a\u7ecf\u9a8c&#xff08;10%&#xff09;<br \/>\n   &#8211; \u6559\u80b2\u80cc\u666f\u4e0e\u8bc1\u4e66&#xff08;5%&#xff09;<br \/>\n   &#8211; \u7b80\u5386\u5b8c\u6574\u5ea6&#xff08;5%&#xff09;<\/p>\n<p>2. \u4e25\u683c\u533a\u5206\u4e09\u7c7b\u4fe1\u606f&#xff1a;<br \/>\n   &#8211; \u660e\u786e\u4e8b\u5b9e&#xff1a;\u7b80\u5386\u4e2d\u76f4\u63a5\u5199\u660e\u7684\u6280\u80fd\u3001\u7ecf\u5386\u3001\u9879\u76ee<br \/>\n   &#8211; \u5408\u7406\u5224\u65ad&#xff1a;\u57fa\u4e8e\u4e8b\u5b9e\u5f97\u51fa\u7684\u5339\u914d\u8bc4\u4ef7<br \/>\n   &#8211; \u672a\u77e5\u4fe1\u606f&#xff1a;\u7b80\u5386\u4e2d\u6ca1\u6709\u63d0\u5230\u7684&#xff0c;\u4e0d\u5f97\u731c\u6d4b\u6216\u8865\u5145<\/p>\n<p>3. \u7b80\u5386\u672a\u63d0\u53ca\u7684\u80fd\u529b&#xff08;\u5982\u82f1\u8bed\u7b49\u7ea7\u3001\u7ba1\u7406\u7ecf\u9a8c&#xff09;&#xff0c;\u6807\u8bb0\u4e3a&#034;\u672a\u63d0\u4f9b&#034;&#xff0c;\u4e0d\u8981\u5047\u8bbe\u3002<\/p>\n<p>4. \u4f18\u52bf\u548c\u5dee\u8ddd\u90fd\u5fc5\u987b\u57fa\u4e8e\u7b80\u5386\u539f\u6587\u548c\u5c97\u4f4d\u8981\u6c42&#xff0c;\u4e0d\u8981\u6cdb\u6cdb\u800c\u8c08\u3002<\/p>\n<p>5. \u6539\u8fdb\u5efa\u8bae\u8981\u5177\u4f53\u3001\u53ef\u6267\u884c&#xff0c;\u9488\u5bf9\u5dee\u8ddd\u9010\u6761\u7ed9\u51fa\u3002<\/p>\n<h5>4.3 \u7ed3\u6784\u5316\u8f93\u51fa JSON Schema<\/h5>\n<p>\u5728 LLM \u8282\u70b9\u627e\u5230 &#034;\u8f93\u51fa\u53d8\u91cf&#034;\u2192 \u5f00\u542f &#034;\u7ed3\u6784\u5316\u8f93\u51fa&#034;\u2192 \u70b9\u51fb &#034;\u914d\u7f6e&#034;\u2192 \u4ece JSON \u5bfc\u5165&#xff1a;<\/p>\n<p>{<br \/>\n  &#034;type&#034;: &#034;object&#034;,<br \/>\n  &#034;properties&#034;: {<br \/>\n    &#034;match_score&#034;: {<br \/>\n      &#034;type&#034;: &#034;number&#034;,<br \/>\n      &#034;description&#034;: &#034;\u7efc\u5408\u5339\u914d\u5206\u6570&#xff0c;0-100\u7684\u6574\u6570&#034;<br \/>\n    },<br \/>\n    &#034;skill_match&#034;: {<br \/>\n      &#034;type&#034;: &#034;number&#034;,<br \/>\n      &#034;description&#034;: &#034;\u6838\u5fc3\u6280\u80fd\u5339\u914d\u5ea6&#xff0c;0-100&#034;<br \/>\n    },<br \/>\n    &#034;strengths&#034;: {<br \/>\n      &#034;type&#034;: &#034;array&#034;,<br \/>\n      &#034;items&#034;: {&#034;type&#034;: &#034;string&#034;},<br \/>\n      &#034;description&#034;: &#034;\u5019\u9009\u4eba\u4f18\u52bf\u5217\u8868&#xff0c;\u6bcf\u6761\u57fa\u4e8e\u7b80\u5386\u4e8b\u5b9e&#034;<br \/>\n    },<br \/>\n    &#034;gaps&#034;: {<br \/>\n      &#034;type&#034;: &#034;array&#034;,<br \/>\n      &#034;items&#034;: {&#034;type&#034;: &#034;string&#034;},<br \/>\n      &#034;description&#034;: &#034;\u4e0e\u5c97\u4f4d\u8981\u6c42\u7684\u5dee\u8ddd\u5217\u8868&#034;<br \/>\n    },<br \/>\n    &#034;missing_info&#034;: {<br \/>\n      &#034;type&#034;: &#034;array&#034;,<br \/>\n      &#034;items&#034;: {&#034;type&#034;: &#034;string&#034;},<br \/>\n      &#034;description&#034;: &#034;\u7b80\u5386\u4e2d\u672a\u63d0\u4f9b\u4f46\u5c97\u4f4d\u53ef\u80fd\u5173\u6ce8\u7684\u4fe1\u606f&#034;<br \/>\n    },<br \/>\n    &#034;suggestions&#034;: {<br \/>\n      &#034;type&#034;: &#034;array&#034;,<br \/>\n      &#034;items&#034;: {&#034;type&#034;: &#034;string&#034;},<br \/>\n      &#034;description&#034;: &#034;\u9488\u5bf9\u5dee\u8ddd\u7684\u6539\u8fdb\u5efa\u8bae&#034;<br \/>\n    },<br \/>\n    &#034;summary&#034;: {<br \/>\n      &#034;type&#034;: &#034;string&#034;,<br \/>\n      &#034;description&#034;: &#034;\u4e00\u53e5\u8bdd\u603b\u4f53\u8bc4\u4ef7&#xff0c;\u4e0d\u8d85\u8fc7100\u5b57&#034;<br \/>\n    }<br \/>\n  },<br \/>\n  &#034;required&#034;: [&#034;match_score&#034;, &#034;strengths&#034;, &#034;gaps&#034;, &#034;suggestions&#034;, &#034;summary&#034;]<br \/>\n}<\/p>\n<p>\u5b57\u6bb5\u8bbe\u8ba1\u539f\u5219&#xff1a; \u9700\u8981\u8ba1\u7b97 \/ \u6392\u5e8f\u7684\u7528 Number&#xff08;match_score: 85&#xff09;&#xff0c;\u522b\u7528\u5e26\u767e\u5206\u53f7\u7684\u5b57\u7b26\u4e32&#xff1b;\u591a\u6761\u5185\u5bb9\u7528 Array&#xff1b;\u91cd\u8981\u5b57\u6bb5\u8bbe\u5fc5\u586b&#xff1b;\u7ed3\u6784\u5c3d\u91cf\u6241\u5e73\u3002<\/p>\n<h5>4.4 \u6a21\u677f\u8f6c\u6362\u8282\u70b9&#xff08;Jinja2&#xff09;<\/h5>\n<p>\u7ed3\u6784\u5316 JSON \u9002\u5408\u7a0b\u5e8f\u5904\u7406&#xff0c;\u4f46\u4eba\u770b\u7740\u7d2f\u3002\u52a0\u4e00\u4e2a\u6a21\u677f\u8f6c\u6362\u8282\u70b9&#xff0c;\u628a JSON \u6e32\u67d3\u6210 Markdown \u62a5\u544a \u2014\u2014 \u4e0d\u8c03\u6a21\u578b\u3001\u4e0d\u82b1 Token\u3001\u8f93\u51fa\u7a33\u5b9a\u3002<\/p>\n<p>\u5148\u628a LLM \u8282\u70b9\u7684 structured_output \u8bbe\u4e3a\u6a21\u677f\u8f93\u5165&#xff0c;\u547d\u540d\u4e3a analysis&#xff0c;\u7136\u540e\u586b\u6a21\u677f&#xff1a;<\/p>\n<p># \u7b80\u5386\u5206\u6790\u62a5\u544a<\/p>\n<p>## \u7efc\u5408\u5339\u914d\u5ea6&#xff1a;{{ analysis.match_score }} \/ 100<\/p>\n<p>### \u2705 \u5019\u9009\u4eba\u4f18\u52bf<br \/>\n{% for s in analysis.strengths %}<br \/>\n&#8211; {{ s }}<br \/>\n{% endfor %}<\/p>\n<p>### \u26a0\ufe0f \u5b58\u5728\u5dee\u8ddd<br \/>\n{% for g in analysis.gaps %}<br \/>\n&#8211; {{ g }}<br \/>\n{% endfor %}<\/p>\n<p>### \u2753 \u5f85\u8865\u5145\u4fe1\u606f<br \/>\n{% if analysis.missing_info and analysis.missing_info | length &gt; 0 %}<br \/>\n{% for m in analysis.missing_info %}<br \/>\n&#8211; {{ m }}<br \/>\n{% endfor %}<br \/>\n{% else %}<br \/>\n&#8211; \u65e0<br \/>\n{% endif %}<\/p>\n<p>### &#x1f4a1; \u6539\u8fdb\u5efa\u8bae<br \/>\n{% for sug in analysis.suggestions %}<br \/>\n{{ loop.index }}. {{ sug }}<br \/>\n{% endfor %}<\/p>\n<h5>4.5 \u8f93\u51fa\u8282\u70b9&#xff08;\u53cc\u8f93\u51fa&#xff09;<\/h5>\n<p>\u8868\u683c<\/p>\n<table>\n<tr>\u8f93\u51fa\u540d\u79f0\u53d8\u91cf\u503c\u7528\u9014<\/tr>\n<tbody>\n<tr>\n<td>report<\/td>\n<td>\u6a21\u677f\u8f6c\u6362\u8282\u70b9\u7684\u6587\u672c\u8f93\u51fa<\/td>\n<td>\u7ed9\u7528\u6237\u770b\u7684 Markdown \u62a5\u544a<\/td>\n<\/tr>\n<tr>\n<td>analysis<\/td>\n<td>LLM \u8282\u70b9\u7684 structured_output<\/td>\n<td>\u7ed9\u7a0b\u5e8f\u5904\u7406\u7684\u7ed3\u6784\u5316\u6570\u636e<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8fd9\u6837\u8bbe\u8ba1\u7684\u597d\u5904&#xff1a;\u4eba\u770b\u62a5\u544a&#xff0c;\u7a0b\u5e8f\u62ff JSON&#xff0c;\u4e00\u4efd\u6570\u636e\u4e24\u79cd\u7528\u6cd5\u3002<\/p>\n<h5>4.6 \u6d4b\u8bd5\u8f93\u5165<\/h5>\n<p>\u7b80\u5386\u5185\u5bb9&#xff1a;\u738b\u660e&#xff0c;3\u5e74Java\u5f00\u53d1\u7ecf\u9a8c\u3002\u719f\u6089SpringBoot\u3001MySQL\u548cRedis&#xff0c;\u53c2\u4e0e\u8fc7\u7535\u5546\u8ba2\u5355\u7cfb\u7edf\u5f00\u53d1&#xff0c;\u8d1f\u8d23\u63a5\u53e3\u8bbe\u8ba1\u548c\u6027\u80fd\u4f18\u5316\u3002<br \/>\n\u76ee\u6807\u5c97\u4f4d&#xff1a;Java\u540e\u7aef\u5f00\u53d1\u5de5\u7a0b\u5e08<br \/>\n\u5c97\u4f4d\u8981\u6c42&#xff1a;3\u5e74\u4ee5\u4e0aJava\u7ecf\u9a8c&#xff1b;\u719f\u6089Spring Boot\u3001MySQL\u3001Redis&#xff1b;\u5177\u5907\u5206\u5e03\u5f0f\u7cfb\u7edf\u548c\u6027\u80fd\u4f18\u5316\u7ecf\u9a8c\u3002<\/p>\n<p>\u6d4b\u8bd5\u65f6\u91cd\u70b9\u770b&#xff1a; \u5fc5\u586b\u5b57\u6bb5\u5168\u4e0d\u5168&#xff1f;match_score \u662f\u4e0d\u662f\u6570\u503c&#xff1f;\u6280\u80fd\u662f\u4e0d\u662f\u6765\u81ea\u7b80\u5386\u539f\u6587\u800c\u4e0d\u662f\u6a21\u578b\u7f16\u7684&#xff1f;\u7b80\u5386\u5185\u5bb9\u5f88\u5c11\u65f6\u6a21\u578b\u4f1a\u4e0d\u4f1a\u865a\u6784\u7ecf\u5386&#xff1f;<\/p>\n<h4>\u4e94\u3001\u9879\u76ee\u4e09&#xff1a;\u5458\u5de5\u5236\u5ea6\u95ee\u7b54\u52a9\u624b&#xff08;\u77e5\u8bc6\u5e93 RAG&#xff09;<\/h4>\n<p>\u76f4\u63a5\u95ee\u5927\u6a21\u578b &#034;\u5fd8\u8bb0\u6253\u5361\u591a\u4e45\u80fd\u8865\u5361&#034;&#xff0c;\u5b83\u4e0d\u77e5\u9053\u4f60\u4eec\u516c\u53f8\u5236\u5ea6&#xff0c;\u4f1a\u778e\u7f16\u3002\u8fd9\u5c31\u662f\u77e5\u8bc6\u5e93\u8981\u89e3\u51b3\u7684\u95ee\u9898\u3002<\/p>\n<h5>5.1 RAG \u6d41\u7a0b<\/h5>\n<p>\u7528\u6237\u63d0\u95ee \u2192 \u77e5\u8bc6\u68c0\u7d22\u8282\u70b9\u53ec\u56de\u76f8\u5173\u5206\u6bb5 \u2192 LLM \u57fa\u4e8e\u5206\u6bb5&#043;\u95ee\u9898\u751f\u6210\u7b54\u6848<\/p>\n<h5>5.2 \u77e5\u8bc6\u5e93\u914d\u7f6e<\/h5>\n<p>\u8868\u683c<\/p>\n<table>\n<tr>\u914d\u7f6e\u9879\u503c<\/tr>\n<tbody>\n<tr>\n<td>\u5206\u6bb5\u6a21\u5f0f<\/td>\n<td>\u901a\u7528<\/td>\n<\/tr>\n<tr>\n<td>\u5206\u6bb5\u6807\u8bc6\u7b26<\/td>\n<td>\u7a7a\u884c<\/td>\n<\/tr>\n<tr>\n<td>\u6700\u5927\u5206\u6bb5\u957f\u5ea6<\/td>\n<td>600 \u5b57\u7b26<\/td>\n<\/tr>\n<tr>\n<td>\u5206\u6bb5\u91cd\u53e0\u957f\u5ea6<\/td>\n<td>80 \u5b57\u7b26<\/td>\n<\/tr>\n<tr>\n<td>\u6587\u672c\u9884\u5904\u7406<\/td>\n<td>\u5408\u5e76\u8fde\u7eed\u7a7a\u683c\u3001\u6362\u884c\u3001\u5236\u8868\u7b26<\/td>\n<\/tr>\n<tr>\n<td>\u7d22\u5f15\u65b9\u5f0f<\/td>\n<td>\u9ad8\u8d28\u91cf&#xff08;\u9700\u914d Embedding \u6a21\u578b&#xff09;\u6216\u7ecf\u6d4e&#xff08;\u65e0 Embedding&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>Top K<\/td>\n<td>3<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7d22\u5f15\u65b9\u5f0f\u600e\u4e48\u9009&#xff1f; \u9ad8\u8d28\u91cf\u7d22\u5f15\u8c03 Embedding \u6a21\u578b\u505a\u5411\u91cf\u68c0\u7d22&#xff0c;\u8bed\u4e49\u76f8\u4f3c\u5c31\u80fd\u53ec\u56de&#xff0c;\u8981\u82b1 Embedding \u7684\u94b1&#xff1b;\u7ecf\u6d4e\u7d22\u5f15\u63d0\u53d6\u5173\u952e\u8bcd\u505a\u5012\u6392\u7d22\u5f15&#xff0c;\u4e0d\u82b1\u94b1\u4f46\u5bf9\u540c\u4e49\u8bcd\u4e0d\u654f\u611f \u2014\u2014 \u7528\u6237\u8bf4 &#034;\u8865\u5361&#034; \u5b83\u53ef\u80fd\u627e\u4e0d\u5230 &#034;\u8865\u767b\u8bb0&#034;\u3002\u751f\u4ea7\u73af\u5883\u7528\u6237\u7ecf\u5e38\u7528\u53e3\u8bed&#xff0c;\u4f18\u5148\u9ad8\u8d28\u91cf\u7d22\u5f15\u3002<\/p>\n<h5>5.3 RAG Prompt<\/h5>\n<p>\u8fd9\u4e2a\u9879\u76ee\u7528 Chatflow&#xff08;\u4e0d\u662f Workflow&#xff09;&#xff0c;\u56e0\u4e3a\u5ba2\u670d\u95ee\u7b54\u662f\u591a\u8f6e\u5bf9\u8bdd\u3002LLM \u8282\u70b9\u7684 Prompt&#xff1a;<\/p>\n<p>\u4f60\u662f\u516c\u53f8\u5185\u90e8\u7684\u5236\u5ea6\u95ee\u7b54\u52a9\u624b\u3002\u8bf7\u6839\u636e\u68c0\u7d22\u5230\u7684\u5236\u5ea6\u8d44\u6599\u56de\u7b54\u5458\u5de5\u95ee\u9898\u3002<\/p>\n<p>## \u5458\u5de5\u95ee\u9898<br \/>\n{{sys.query}}<\/p>\n<p>## \u68c0\u7d22\u5230\u7684\u5236\u5ea6\u8d44\u6599<br \/>\n{{#context#}}<\/p>\n<p>## \u89c4\u5219<br \/>\n1. \u7b54\u6848\u5fc5\u987b\u4e25\u683c\u57fa\u4e8e\u4e0a\u9762\u7684\u5236\u5ea6\u8d44\u6599&#xff0c;\u4e0d\u5f97\u4f7f\u7528\u8d44\u6599\u4ee5\u5916\u7684\u77e5\u8bc6\u7f16\u9020\u5236\u5ea6\u6761\u6b3e\u3002<br \/>\n2. \u5982\u679c\u8d44\u6599\u4e2d\u6ca1\u6709\u76f8\u5173\u5185\u5bb9&#xff0c;\u76f4\u63a5\u56de\u7b54&#xff1a;&#034;\u62b1\u6b49&#xff0c;\u672a\u5728\u5236\u5ea6\u5e93\u4e2d\u627e\u5230\u76f8\u5173\u89c4\u5b9a&#xff0c;\u5efa\u8bae\u8054\u7cfbHR\u90e8\u95e8\u54a8\u8be2\u3002&#034;\u4e0d\u8981\u731c\u6d4b\u3002<br \/>\n3. \u56de\u7b54\u65f6\u8bf7\u5305\u542b&#xff1a;\u7ed3\u8bba\u3001\u9002\u7528\u6761\u4ef6\u3001\u529e\u7406\u65f6\u9650\u3001\u5ba1\u6279\u89d2\u8272\u3002<br \/>\n4. \u5f15\u7528\u5236\u5ea6\u65f6\u6ce8\u660e\u6765\u6e90&#xff08;\u5982&#034;\u6839\u636e\u300a\u5458\u5de5\u8003\u52e4\u7ba1\u7406\u5236\u5ea6\u300b\u7b2cX\u6761&#034;&#xff09;\u3002<br \/>\n5. \u5982\u679c\u5236\u5ea6\u8d44\u6599\u4e4b\u95f4\u6709\u51b2\u7a81&#xff0c;\u8bf4\u660e\u51b2\u7a81\u5e76\u5efa\u8bae\u4eba\u5de5\u786e\u8ba4\u3002<br \/>\n6. \u4e0d\u8981\u628a\u76f8\u4f3c\u4f46\u4e0d\u540c\u7684\u6761\u6b3e\u5f53\u6210\u7b54\u6848\u3002<br \/>\n7. \u56de\u7b54\u7528\u7b80\u6d01\u7684\u53e3\u8bed&#xff0c;\u4e0d\u8981\u7167\u642c\u5236\u5ea6\u539f\u6587\u7684\u957f\u53e5\u3002<\/p>\n<p>{{#context#}} \u662f\u77e5\u8bc6\u68c0\u7d22\u8282\u70b9\u8f93\u51fa\u7684\u5f15\u7528\u53d8\u91cf&#xff0c;\u901a\u8fc7\u53d8\u91cf\u9009\u62e9\u5668\u63d2\u5165&#xff0c;\u4e0d\u8981\u624b\u6253\u3002<\/p>\n<p>\u8001\u54e5\u5f3a\u8c03&#xff1a;\u7b2c 2 \u6761\u65e0\u7b54\u6848\u7b56\u7565\u662f\u4f01\u4e1a\u573a\u666f\u7684\u5e95\u7ebf\u3002 \u77e5\u8bc6\u5e93\u6ca1\u627e\u5230\u65f6&#xff0c;\u5fc5\u987b\u8ba9\u6a21\u578b\u660e\u8bf4 &#034;\u4e0d\u77e5\u9053&#034;&#xff0c;\u800c\u4e0d\u662f\u8ba9\u5b83\u81ea\u7531\u53d1\u6325\u7f16\u5236\u5ea6 \u2014\u2014 \u7f16\u9519\u5236\u5ea6\u6bd4\u4e0d\u56de\u7b54\u66f4\u53ef\u6015\u3002<\/p>\n<h5>5.4 \u6d41\u7a0b\u7ed3\u6784<\/h5>\n<p>\u5f00\u59cb(sys.query) \u2192 \u77e5\u8bc6\u68c0\u7d22(\u67e5\u5458\u5de5\u5236\u5ea6\u5e93) \u2192 LLM(\u57fa\u4e8e\u68c0\u7d22\u7ed3\u679c\u56de\u7b54) \u2192 \u76f4\u63a5\u56de\u590d<\/p>\n<h4>\u8001\u54e5\u6536\u5c3e<\/h4>\n<p>\u5230\u8fd9\u91cc&#xff0c;\u4f60\u5df2\u7ecf\u7528 Dify \u8dd1\u901a\u4e86\u4e09\u4e2a\u5e94\u7528&#xff1a;\u8425\u9500\u6587\u6848\u751f\u6210\u5668\u3001\u7b80\u5386\u5206\u6790\u52a9\u624b\u3001\u5458\u5de5\u5236\u5ea6\u95ee\u7b54\u3002\u8bb0\u4f4f\u4e00\u6761\u4e3b\u7ebf&#xff1a;<\/p>\n<p>Dify \u628a &#034;\u5199\u4ee3\u7801&#034; \u53d8\u6210\u4e86 &#034;\u62d6\u8282\u70b9 &#043; \u5199 Prompt &#043; \u914d\u53c2\u6570&#034;\u3002\u6a21\u578b\u662f\u5927\u8111&#xff0c;\u53d8\u91cf\u662f\u6570\u636e\u7ba1\u9053&#xff0c;\u77e5\u8bc6\u5e93\u662f\u5916\u63a5\u8bb0\u5fc6&#xff0c;\u5de5\u4f5c\u6d41\u662f\u6d41\u7a0b\u63a7\u5236\u3002<\/p>\n<p>\u4e0b\u4e00\u7bc7\u54b1\u4eec\u8bb2\u8fdb\u9636&#xff1a;\u5de5\u4f5c\u6d41\u91cc\u600e\u4e48\u505a\u6761\u4ef6\u5206\u652f\u548c\u95ee\u9898\u5206\u7c7b\u3001\u600e\u4e48\u8c03\u5916\u90e8 HTTP API\u3001\u600e\u4e48\u505a\u591a\u8f6e\u5bf9\u8bdd\u8bb0\u5fc6\u3001\u600e\u4e48\u642d\u4e00\u4e2a\u80fd\u81ea\u5df1\u9009\u5de5\u5177\u7684 Agent&#xff0c;\u6700\u540e\u600e\u4e48\u53d1\u5e03\u4e0a\u7ebf\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u9762\u54b1\u4eec\u7528 LangGraph \u624b\u64b8\u4e86\u4e00\u5806 Agent \u4ee3\u7801&#xff0c;State\u3001\u8282\u70b9\u3001\u8fb9\u3001Interrupt\u2026\u2026 \u723d\u662f\u723d&#xff0c;\u4f46\u4f60\u6709\u6ca1\u6709\u60f3\u8fc7&#xff1a;\u5982\u679c\u4ea7\u54c1\u7ecf\u7406\u60f3\u81ea\u5df1\u642d\u4e00\u4e2a AI \u5e94\u7528&#xff0c;\u603b\u4e0d\u80fd\u8ba9\u5979\u53bb\u5199 Python \u5427&#xff1f;\u8fd9\u5c31\u662f Dify \u51fa\u573a\u7684\u539f\u56e0\u3002\u8001\u54e5\u7ed9\u5b83\u4e00\u53e5\u6700\u76f4\u767d\u7684\u5b9a\u4f4d&#xff1a;Dify \u5c31\u662f\u4e0d\u5199\u4ee3\u7801\u7684 LangGraph\u3002\u53ef\u89c6\u5316\u754c\u9762&#xff0c;\u62d6\u62fd\u8282\u70b9&#xff0c;\u628a\u5927\u6a21\u578b\u3001\u63d0\u793a\u8bcd\u3001\u77e5\u8bc6\u5e93\u3001\u5de5\u4f5c\u6d41\u3001Age<\/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":[13745,2648,144,3537,4119],"topic":[],"class_list":["post-120509","post","type-post","status-publish","format-standard","hentry","category-server","tag-ai","tag-dify","tag-prompt","tag-rag"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4e0d\u5199\u4e00\u884c\u4ee3\u7801\u4e5f\u80fd\u642d AI \u5e94\u7528\uff1fDify \u4ece\u5b89\u88c5\u5230\u77e5\u8bc6\u5e93 RAG \u5168\u6253\u901a - \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\/120509.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4e0d\u5199\u4e00\u884c\u4ee3\u7801\u4e5f\u80fd\u642d AI \u5e94\u7528\uff1fDify \u4ece\u5b89\u88c5\u5230\u77e5\u8bc6\u5e93 RAG \u5168\u6253\u901a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u524d\u9762\u54b1\u4eec\u7528 LangGraph \u624b\u64b8\u4e86\u4e00\u5806 Agent \u4ee3\u7801&#xff0c;State\u3001\u8282\u70b9\u3001\u8fb9\u3001Interrupt\u2026\u2026 \u723d\u662f\u723d&#xff0c;\u4f46\u4f60\u6709\u6ca1\u6709\u60f3\u8fc7&#xff1a;\u5982\u679c\u4ea7\u54c1\u7ecf\u7406\u60f3\u81ea\u5df1\u642d\u4e00\u4e2a AI \u5e94\u7528&#xff0c;\u603b\u4e0d\u80fd\u8ba9\u5979\u53bb\u5199 Python \u5427&#xff1f;\u8fd9\u5c31\u662f Dify \u51fa\u573a\u7684\u539f\u56e0\u3002\u8001\u54e5\u7ed9\u5b83\u4e00\u53e5\u6700\u76f4\u767d\u7684\u5b9a\u4f4d&#xff1a;Dify \u5c31\u662f\u4e0d\u5199\u4ee3\u7801\u7684 LangGraph\u3002\u53ef\u89c6\u5316\u754c\u9762&#xff0c;\u62d6\u62fd\u8282\u70b9&#xff0c;\u628a\u5927\u6a21\u578b\u3001\u63d0\u793a\u8bcd\u3001\u77e5\u8bc6\u5e93\u3001\u5de5\u4f5c\u6d41\u3001Age\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/120509.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-31T13:09:02+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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/120509.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/120509.html\",\"name\":\"\u4e0d\u5199\u4e00\u884c\u4ee3\u7801\u4e5f\u80fd\u642d AI \u5e94\u7528\uff1fDify \u4ece\u5b89\u88c5\u5230\u77e5\u8bc6\u5e93 RAG \u5168\u6253\u901a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-31T13:09:02+00:00\",\"dateModified\":\"2026-10-31T13:09:02+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/120509.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/120509.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/120509.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4e0d\u5199\u4e00\u884c\u4ee3\u7801\u4e5f\u80fd\u642d AI \u5e94\u7528\uff1fDify \u4ece\u5b89\u88c5\u5230\u77e5\u8bc6\u5e93 RAG \u5168\u6253\u901a\"}]},{\"@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":"\u4e0d\u5199\u4e00\u884c\u4ee3\u7801\u4e5f\u80fd\u642d AI \u5e94\u7528\uff1fDify \u4ece\u5b89\u88c5\u5230\u77e5\u8bc6\u5e93 RAG \u5168\u6253\u901a - \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\/120509.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4e0d\u5199\u4e00\u884c\u4ee3\u7801\u4e5f\u80fd\u642d AI \u5e94\u7528\uff1fDify \u4ece\u5b89\u88c5\u5230\u77e5\u8bc6\u5e93 RAG \u5168\u6253\u901a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u524d\u9762\u54b1\u4eec\u7528 LangGraph \u624b\u64b8\u4e86\u4e00\u5806 Agent \u4ee3\u7801&#xff0c;State\u3001\u8282\u70b9\u3001\u8fb9\u3001Interrupt\u2026\u2026 \u723d\u662f\u723d&#xff0c;\u4f46\u4f60\u6709\u6ca1\u6709\u60f3\u8fc7&#xff1a;\u5982\u679c\u4ea7\u54c1\u7ecf\u7406\u60f3\u81ea\u5df1\u642d\u4e00\u4e2a AI \u5e94\u7528&#xff0c;\u603b\u4e0d\u80fd\u8ba9\u5979\u53bb\u5199 Python \u5427&#xff1f;\u8fd9\u5c31\u662f Dify \u51fa\u573a\u7684\u539f\u56e0\u3002\u8001\u54e5\u7ed9\u5b83\u4e00\u53e5\u6700\u76f4\u767d\u7684\u5b9a\u4f4d&#xff1a;Dify \u5c31\u662f\u4e0d\u5199\u4ee3\u7801\u7684 LangGraph\u3002\u53ef\u89c6\u5316\u754c\u9762&#xff0c;\u62d6\u62fd\u8282\u70b9&#xff0c;\u628a\u5927\u6a21\u578b\u3001\u63d0\u793a\u8bcd\u3001\u77e5\u8bc6\u5e93\u3001\u5de5\u4f5c\u6d41\u3001Age","og_url":"https:\/\/www.wsisp.com\/helps\/120509.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-31T13:09:02+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/120509.html","url":"https:\/\/www.wsisp.com\/helps\/120509.html","name":"\u4e0d\u5199\u4e00\u884c\u4ee3\u7801\u4e5f\u80fd\u642d AI \u5e94\u7528\uff1fDify \u4ece\u5b89\u88c5\u5230\u77e5\u8bc6\u5e93 RAG \u5168\u6253\u901a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-31T13:09:02+00:00","dateModified":"2026-10-31T13:09:02+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/120509.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/120509.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/120509.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4e0d\u5199\u4e00\u884c\u4ee3\u7801\u4e5f\u80fd\u642d AI \u5e94\u7528\uff1fDify \u4ece\u5b89\u88c5\u5230\u77e5\u8bc6\u5e93 RAG \u5168\u6253\u901a"}]},{"@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\/120509","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=120509"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/120509\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=120509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=120509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=120509"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=120509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}