{"id":51141,"date":"2025-08-28T06:16:52","date_gmt":"2025-08-27T22:16:52","guid":{"rendered":"https:\/\/www.kdjingpai.com\/?p=51141"},"modified":"2025-08-28T06:16:52","modified_gmt":"2025-08-27T22:16:52","slug":"llamafarm","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/de\/llamafarm\/","title":{"rendered":"LlamaFarm\uff1a\u5728\u672c\u5730\u5feb\u901f\u90e8\u7f72AI\u6a21\u578b\u4e0e\u5e94\u7528\u7684\u5f00\u53d1\u6846\u67b6"},"content":{"rendered":"<p>LlamaFarm\u662f\u4e00\u4e2a\u529f\u80fd\u5168\u9762\u7684\u6a21\u5757\u5316AI\u5f00\u53d1\u6846\u67b6\uff0c\u5b83\u7684\u6838\u5fc3\u8bbe\u8ba1\u7406\u5ff5\u662f\u201c\u672c\u5730\u4f18\u5148\u5f00\u53d1\uff0c\u968f\u5904\u90e8\u7f72\u201d\u3002\u8fd9\u4e2a\u6846\u67b6\u8ba9\u5f00\u53d1\u8005\u53ef\u4ee5\u5728\u81ea\u5df1\u7684\u7535\u8111\u4e0a\u6784\u5efa\u3001\u6d4b\u8bd5\u548c\u8fd0\u884c\u6574\u5957AI\u7cfb\u7edf\uff0c\u7136\u540e\u518d\u5c06\u540c\u6837\u7684\u4ee3\u7801\u65e0\u7f1d\u90e8\u7f72\u5230\u751f\u4ea7\u73af\u5883\uff0c\u65e0\u8bba\u662f\u516c\u53f8\u5185\u7f51\u670d\u52a1\u5668\u8fd8\u662f\u4e91\u7aef\u5e73\u53f0\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u5957\u7ecf\u8fc7\u5b9e\u9645\u5e94\u7528\u68c0\u9a8c\u7684\u7a33\u5b9a\u7ec4\u4ef6\uff0c\u7528\u4e8e\u5904\u7406\u68c0\u7d22\u589e\u5f3a\u751f\u6210\uff08RAG\uff09\u3001\u5411\u91cf\u6570\u636e\u5e93\u3001\u6a21\u578b\u7ba1\u7406\u548c\u63d0\u793a\u8bcd\u5de5\u7a0b\u7b49\u4efb\u52a1\u3002\u8fd9\u4e9b\u7ec4\u4ef6\u65e2\u53ef\u4ee5\u72ec\u7acb\u4f7f\u7528\uff0c\u4e5f\u80fd\u7ec4\u5408\u8d77\u6765\u6784\u5efa\u5f3a\u5927\u7684AI\u5e94\u7528\u3002LlamaFarm\u901a\u8fc7\u9884\u8bbe\u7684\u7b56\u7565\u914d\u7f6e\uff0c\u7b80\u5316\u4e86\u9879\u76ee\u7684\u521d\u59cb\u8bbe\u7f6e\uff0c\u540c\u65f6\u4e5f\u4fdd\u7559\u4e86\u6df1\u5ea6\u5b9a\u5236\u7684\u7075\u6d3b\u6027\uff0c\u6ee1\u8db3\u4ece\u4e2a\u4eba\u5f00\u53d1\u8005\u5230\u5927\u578b\u4f01\u4e1a\u7684\u4e0d\u540c\u9700\u6c42\u3002\u5bf9\u4e8e\u5e0c\u671b\u5b8c\u5168\u63a7\u5236AI\u6280\u672f\u6808\u3001\u6ce8\u91cd\u6570\u636e\u9690\u79c1\u548c\u6210\u672c\u6548\u76ca\u7684\u56e2\u961f\u6765\u8bf4\uff0cLlamaFarm\u63d0\u4f9b\u4e86\u4e00\u4e2a\u53ef\u9760\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<h2>\u529f\u80fd\u5217\u8868<\/h2>\n<ul>\n<li><strong>\u672c\u5730\u4f18\u5148\u5f00\u53d1<\/strong>: \u652f\u6301\u5728\u4e2a\u4eba\u7535\u8111\u4e0a\u5b8c\u6574\u6784\u5efa\u548c\u6d4b\u8bd5AI\u5e94\u7528\uff0c\u65e0\u9700\u4f9d\u8d56\u4e91\u670d\u52a1\u3002<\/li>\n<li><strong>\u751f\u4ea7\u7ea7\u7ec4\u4ef6<\/strong>: \u63d0\u4f9b\u5305\u62ec\u6570\u636e\u7ba1\u9053\uff08RAG\uff09\u3001\u6a21\u578b\u7ba1\u7406\u3001\u63d0\u793a\u8bcd\u5de5\u7a0b\u7b49\u591a\u4e2a\u7ecf\u8fc7\u5b9e\u6218\u68c0\u9a8c\u7684\u6a21\u5757\u3002<\/li>\n<li><strong>\u5e7f\u6cdb\u7684\u517c\u5bb9\u6027<\/strong>: \u6570\u636e\u7ba1\u9053\u652f\u6301\u8d85\u8fc715\u79cd\u6587\u4ef6\u683c\u5f0f\uff08\u5982PDF, Word, Markdown\uff09\u548c8\u79cd\u4ee5\u4e0a\u7684\u5411\u91cf\u6570\u636e\u5e93\uff08\u5982Chroma, Pinecone\uff09\u3002<\/li>\n<li><strong>\u591a\u6a21\u578b\u7edf\u4e00\u7ba1\u7406<\/strong>: \u6a21\u578b\u7ec4\u4ef6\u96c6\u6210\u4e86\u8d85\u8fc725\u4e2a\u6a21\u578b\u4f9b\u5e94\u5546\uff08\u5982OpenAI, <a href=\"https:\/\/www.kdjingpai.com\/en\/claudeanquanfubai\/\">Anthropic<\/a>, Google, Ollama\uff09\uff0c\u5e76\u63d0\u4f9b\u7edf\u4e00\u7684\u64cd\u4f5c\u63a5\u53e3\u3002<\/li>\n<li><strong>\u4f01\u4e1a\u7ea7\u6a21\u578b\u529f\u80fd<\/strong>: \u5177\u5907\u6a21\u578b\u81ea\u52a8\u6545\u969c\u5207\u6362\u3001\u6210\u672c\u4f18\u5316\u8def\u7531\uff08\u5c06\u8bf7\u6c42\u53d1\u7ed9\u6027\u4ef7\u6bd4\u6700\u9ad8\u7684\u6a21\u578b\uff09\u3001\u8d1f\u8f7d\u5747\u8861\u548c\u54cd\u5e94\u7f13\u5b58\u7b49\u9ad8\u7ea7\u529f\u80fd\u3002<\/li>\n<li><strong>\u5148\u8fdb\u7684\u63d0\u793a\u8bcd\u5de5\u7a0b<\/strong>: \u63d0\u4f9b\u63d0\u793a\u8bcd\u6a21\u677f\u5e93\u3001\u7248\u672c\u63a7\u5236\u548cA\/B\u6d4b\u8bd5\u529f\u80fd\uff0c\u652f\u6301Jinja2\u6a21\u677f\u8bed\u6cd5\u3002<\/li>\n<li><strong>\u7b56\u7565\u5316\u914d\u7f6e<\/strong>: \u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u7b56\u7565\uff08\u5982<code>research<\/code>\u6216<code>customer_support<\/code>\uff09\u6765\u5feb\u901f\u914d\u7f6e\u6574\u4e2a\u7cfb\u7edf\u7684\u884c\u4e3a\uff0c\u5b9e\u73b0\u4e0d\u540c\u573a\u666f\u7684\u5feb\u901f\u5207\u6362\u3002<\/li>\n<li><strong>\u547d\u4ee4\u884c\u5de5\u5177<\/strong>: \u4e3a\u5404\u4e2a\u6838\u5fc3\u7ec4\u4ef6\u63d0\u4f9b\u4e86\u7b80\u5355\u6613\u7528\u7684\u547d\u4ee4\u884c\u754c\u9762\uff0c\u65b9\u4fbf\u5f00\u53d1\u8005\u8fdb\u884c\u4ea4\u4e92\u548c\u8c03\u8bd5\u3002<\/li>\n<li><strong>\u7075\u6d3b\u90e8\u7f72<\/strong>: \u652f\u6301\u4ece\u672c\u5730\u5f00\u53d1\u73af\u5883\u3001Docker\u5bb9\u5668\u5230AWS\u3001GCP\u7b49\u4e3b\u6d41\u4e91\u5e73\u53f0\u7684\u591a\u79cd\u90e8\u7f72\u65b9\u6848\u3002<\/li>\n<li><strong>\u6a21\u5757\u5316\u67b6\u6784<\/strong>: \u6846\u67b6\u7684\u6bcf\u4e2a\u6838\u5fc3\u7ec4\u4ef6\u90fd\u53ef\u4ee5\u72ec\u7acb\u4f7f\u7528\uff0c\u65b9\u4fbf\u96c6\u6210\u5230\u73b0\u6709\u7684\u9879\u76ee\u4e2d\u3002<\/li>\n<\/ul>\n<h2>\u4f7f\u7528\u5e2e\u52a9<\/h2>\n<p>LlamaFarm\u7684\u8bbe\u8ba1\u76ee\u6807\u662f\u7b80\u5316AI\u5e94\u7528\u7684\u5f00\u53d1\u548c\u90e8\u7f72\u6d41\u7a0b\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5b89\u88c5\u548c\u4f7f\u7528\u8fd9\u4e2a\u6846\u67b6\u3002<\/p>\n<h3>\u5b89\u88c5\u6d41\u7a0b<\/h3>\n<p>LlamaFarm\u63d0\u4f9b\u4e86\u4e00\u4e2a\u4fbf\u6377\u7684\u5b89\u88c5\u811a\u672c\uff0c\u53ef\u4ee5\u5feb\u901f\u5b8c\u6210\u73af\u5883\u8bbe\u7f6e\u3002<\/p>\n<ol>\n<li><strong>\u81ea\u52a8\u5b89\u88c5<\/strong>:<br \/>\n\u6253\u5f00\u4f60\u7684\u7ec8\u7aef\uff08\u5728Linux\u6216macOS\u4e0a\uff09\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u4e0b\u8f7d\u5e76\u8fd0\u884c\u5b89\u88c5\u811a\u672c\u3002\u8fd9\u4e2a\u811a\u672c\u4f1a\u81ea\u52a8\u5904\u7406\u4f9d\u8d56\u9879\u7684\u5b89\u88c5\u3002<\/p>\n<pre><code>curl -fsSL https:\/\/raw.githubusercontent.com\/llama-farm\/llamafarm\/main\/install.sh | bash\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u624b\u52a8\u5b89\u88c5<\/strong>:<br \/>\n\u5982\u679c\u4f60\u503e\u5411\u4e8e\u624b\u52a8\u63a7\u5236\u5b89\u88c5\u8fc7\u7a0b\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a<\/p>\n<ul>\n<li>\u9996\u5148\uff0c\u514b\u9686\u9879\u76ee\u7684\u4ee3\u7801\u4ed3\u5e93\u5230\u4f60\u7684\u672c\u5730\u7535\u8111\u3002\n<pre><code>git clone https:\/\/github.com\/llama-farm\/llamafarm.git\r\n<\/code><\/pre>\n<\/li>\n<li>\u8fdb\u5165\u9879\u76ee\u76ee\u5f55\u3002\n<pre><code>cd llamafarm\r\n<\/code><\/pre>\n<\/li>\n<li>LlamaFarm\u4f7f\u7528<code>uv<\/code>\u4f5c\u4e3aPython\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u4ee5\u83b7\u5f97\u66f4\u5feb\u7684\u4f9d\u8d56\u5b89\u88c5\u901f\u5ea6\u3002\u4f60\u9700\u8981\u5148\u5b89\u88c5\u5e76\u540c\u6b65\u9879\u76ee\u7684\u4f9d\u8d56\u3002\u6bcf\u4e2a\u4e3b\u8981\u529f\u80fd\u6a21\u5757\uff08\u5982<code><a href=\"https:\/\/www.kdjingpai.com\/en\/rag\/\">rag<\/a><\/code>,\u00a0<code>models<\/code>\uff09\u90fd\u6709\u81ea\u5df1\u7684\u4f9d\u8d56\u914d\u7f6e\u3002\u4f8b\u5982\uff0c\u8981\u4e3aRAG\u7cfb\u7edf\u8bbe\u7f6e\u73af\u5883\uff0c\u53ef\u4ee5\u6267\u884c\uff1a\n<pre><code>cd rag\r\nuv <a href=\"https:\/\/www.kdjingpai.com\/en\/sync\/\">sync<\/a>\r\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3>\u6838\u5fc3\u529f\u80fd\u64cd\u4f5c<\/h3>\n<p>LlamaFarm\u7684\u6838\u5fc3\u529f\u80fd\u56f4\u7ed5\u5176AI\u7ec4\u4ef6\u5c55\u5f00\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u4e0e\u8fd9\u4e9b\u7ec4\u4ef6\u4e92\u52a8\u3002<\/p>\n<h4>1. \u4f7f\u7528RAG\u6570\u636e\u7ba1\u9053<\/h4>\n<p>RAG\uff08\u68c0\u7d22\u589e\u5f3a\u751f\u6210\uff09\u7cfb\u7edf\u8d1f\u8d23\u5904\u7406\u6587\u6863\u3001\u63d0\u53d6\u4fe1\u606f\u5e76\u5efa\u7acb\u77e5\u8bc6\u5e93\uff0c\u4ee5\u4fbfAI\u6a21\u578b\u80fd\u591f\u56de\u7b54\u57fa\u4e8e\u7279\u5b9a\u77e5\u8bc6\u7684\u95ee\u9898\u3002<\/p>\n<ul>\n<li><strong>\u6570\u636e\u5165\u5e93\uff08Ingest\uff09<\/strong>:<br \/>\n\u8fd9\u662f\u5efa\u7acb\u77e5\u8bc6\u5e93\u7684\u7b2c\u4e00\u6b65\u3002\u4f60\u9700\u8981\u51c6\u5907\u4e00\u4e2a\u5b58\u653e\u6587\u6863\u7684\u6587\u4ef6\u5939\uff08\u4f8b\u5982<code>samples\/<\/code>\uff09\uff0c\u7136\u540e\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u3002\u8be5\u547d\u4ee4\u4f1a\u8bfb\u53d6\u6587\u4ef6\u5939\u4e2d\u7684\u6240\u6709\u6587\u6863\uff0c\u5e76\u4f7f\u7528\u6307\u5b9a\u7684\u63d0\u53d6\u5668\uff08\u5982<code>keywords<\/code>\u63d0\u53d6\u5173\u952e\u8bcd\uff0c<code>entities<\/code>\u63d0\u53d6\u5b9e\u4f53\uff09\u548c\u5206\u5757\u7b56\u7565\uff08<code>research<\/code>\u7b56\u7565\u9002\u5408\u5904\u7406\u7814\u7a76\u8bba\u6587\uff09\u6765\u5904\u7406\u5b83\u4eec\u3002<\/p>\n<pre><code>uv run python rag\/cli.py ingest samples\/ --extractors keywords entities statistics --strategy research\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u77e5\u8bc6\u68c0\u7d22\uff08Search\uff09<\/strong>:<br \/>\n\u5f53\u6570\u636e\u5165\u5e93\u540e\uff0c\u4f60\u53ef\u4ee5\u50cf\u641c\u7d22\u5f15\u64ce\u4e00\u6837\u5411\u5b83\u63d0\u95ee\u3002\u4e0b\u9762\u7684\u547d\u4ee4\u4f1a\u6839\u636e\u4f60\u7684\u95ee\u9898&#8221;What are the key findings about climate change?&#8221;\uff0c\u5728\u77e5\u8bc6\u5e93\u4e2d\u67e5\u627e\u6700\u76f8\u5173\u76845\u4e2a\uff08<code>--top-k 5<\/code>\uff09\u4fe1\u606f\u7247\u6bb5\uff0c\u5e76\u5bf9\u7ed3\u679c\u8fdb\u884c\u91cd\u6392\u5e8f\uff08<code>--rerank<\/code>\uff09\u4ee5\u63d0\u5347\u51c6\u786e\u6027\u3002<\/p>\n<pre><code>uv run python rag\/cli.py search \"What are the key findings about climate change?\" --top-k 5 --rerank\r\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<h4>2. \u7ba1\u7406\u548c\u4f7f\u7528AI\u6a21\u578b<\/h4>\n<p>\u6a21\u578b\u7ec4\u4ef6\u8ba9\u4f60\u80fd\u7075\u6d3b\u5730\u8c03\u7528\u4e0d\u540c\u7684\u5927\u8bed\u8a00\u6a21\u578b\uff0c\u5e76\u5229\u7528\u81ea\u52a8\u6545\u969c\u5207\u6362\u7b49\u9ad8\u7ea7\u529f\u80fd\u3002<\/p>\n<ul>\n<li><strong>\u591a\u6a21\u578b\u804a\u5929<\/strong>:<br \/>\n\u4f60\u53ef\u4ee5\u6307\u5b9a\u4e00\u4e2a\u4e3b\u6a21\u578b\uff08<code>--primary gpt-4<\/code>\uff09\u548c\u4e00\u4e2a\u6216\u591a\u4e2a\u5907\u7528\u6a21\u578b\uff08<code>--fallback claude-3<\/code>\uff09\u3002\u5f53\u4e3b\u6a21\u578b\u8bf7\u6c42\u5931\u8d25\u65f6\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u5207\u6362\u5230\u5907\u7528\u6a21\u578b\uff0c\u4fdd\u8bc1\u670d\u52a1\u7684\u7a33\u5b9a\u6027\u3002\u4f60\u751a\u81f3\u53ef\u4ee5\u6307\u5b9a\u4e00\u4e2a\u672c\u5730\u6a21\u578b\uff08<code>--local-fallback llama3.2<\/code>\uff09\u4f5c\u4e3a\u6700\u7ec8\u7684\u4fdd\u969c\u3002<\/p>\n<pre><code>uv run python models\/cli.py chat --primary gpt-4 --fallback claude-3 --local-fallback llama3.2 \"Explain quantum entanglement\"\r\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<h4>3. \u4f7f\u7528\u63d0\u793a\u8bcd\u7cfb\u7edf<\/h4>\n<p>\u63d0\u793a\u8bcd\u7cfb\u7edf\u5e2e\u52a9\u4f60\u7ba1\u7406\u548c\u4f18\u5316\u53d1\u9001\u7ed9\u6a21\u578b\u7684\u6307\u4ee4\u3002<\/p>\n<ul>\n<li><strong>\u6267\u884c\u7279\u5b9a\u7b56\u7565\u7684\u63d0\u793a\u8bcd<\/strong>:<br \/>\n\u4f60\u53ef\u4ee5\u6839\u636e\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\uff08<code>--strategy medical<\/code>\uff09\u6765\u9009\u62e9\u6700\u5408\u9002\u7684\u63d0\u793a\u8bcd\u6a21\u677f\uff08<code>--template diagnostic_analysis<\/code>\uff09\uff0c\u8ba9\u6a21\u578b\u7ed9\u51fa\u66f4\u4e13\u4e1a\u7684\u56de\u7b54\u3002<\/p>\n<pre><code>uv run python prompts\/cli.py execute \"Analyze this medical report for anomalies\" --strategy medical --template diagnostic_analysis\r\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<h3>\u7b56\u7565\u5316\u914d\u7f6e<\/h3>\n<p>\u7b56\u7565\u662fLlamaFarm\u7684\u4e00\u4e2a\u6838\u5fc3\u6982\u5ff5\uff0c\u5b83\u5141\u8bb8\u4f60\u901a\u8fc7\u4e00\u4e2a\u7b80\u5355\u7684\u540d\u79f0\uff08\u5982<code>research<\/code>\uff09\u6765\u7edf\u4e00\u914d\u7f6eRAG\u3001\u6a21\u578b\u548c\u63d0\u793a\u8bcd\u7b49\u591a\u4e2a\u7ec4\u4ef6\u7684\u884c\u4e3a\u3002<\/p>\n<ul>\n<li><strong>\u914d\u7f6e\u6587\u4ef6\u793a\u4f8b<\/strong>:<br \/>\n\u4f60\u53ef\u4ee5\u5728<code>config\/strategies.yaml<\/code>\u6587\u4ef6\u4e2d\u5b9a\u4e49\u81ea\u5df1\u7684\u7b56\u7565\u3002\u4f8b\u5982\uff0c<code>research<\/code>\u7b56\u7565\u4f7f\u7528<code>gpt-4<\/code>\u6a21\u578b\u5e76\u8981\u6c42\u6b63\u5f0f\u7684\u5199\u4f5c\u98ce\u683c\uff0c\u800c<code>customer_support<\/code>\u7b56\u7565\u5219\u4f7f\u7528\u66f4\u7ecf\u6d4e\u7684<code>gpt-3.5-turbo<\/code>\u6a21\u578b\u548c\u53cb\u597d\u7684\u5bf9\u8bdd\u98ce\u683c\u3002<\/p>\n<pre><code>strategies:\r\nresearch:\r\nrag:\r\nembedder: \"sentence-transformers\"\r\nchunk_size: 512\r\nmodels:\r\nprimary: \"gpt-4\"\r\nfallback: \"claude-3-opus\"\r\ntemperature: 0.3\r\nprompts:\r\ntemplate: \"academic_research\"\r\nstyle: \"formal\"\r\ncustomer_support:\r\nrag:\r\nembedder: \"openai\"\r\nchunk_size: 256\r\nmodels:\r\nprimary: \"gpt-3.5-turbo\"\r\ntemperature: 0.7\r\nprompts:\r\ntemplate: \"conversational\"\r\nstyle: \"friendly\"\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u5e94\u7528\u7b56\u7565<\/strong>:<br \/>\n\u4f60\u53ef\u4ee5\u5728\u8fd0\u884c\u65f6\u901a\u8fc7\u73af\u5883\u53d8\u91cf\u6216\u547d\u4ee4\u884c\u53c2\u6570\u6765\u6307\u5b9a\u4f7f\u7528\u7684\u7b56\u7565\u3002<\/p>\n<pre><code># \u8bbe\u7f6e\u5168\u5c40\u7b56\u7565\r\nexport LLAMAFARM_STRATEGY=research\r\n# \u5728\u5355\u4e2a\u547d\u4ee4\u4e2d\u6307\u5b9a\u7b56\u7565\r\nuv run python models\/cli.py chat --strategy customer_support \"Help me with my order\"\r\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<h2>\u5e94\u7528\u573a\u666f<\/h2>\n<ol>\n<li><strong>\u6784\u5efa\u4f01\u4e1a\u5185\u90e8\u77e5\u8bc6\u5e93<\/strong><br \/>\n\u4f01\u4e1a\u53ef\u4ee5\u5c06\u5185\u90e8\u7684\u6280\u672f\u6587\u6863\u3001\u89c4\u7ae0\u5236\u5ea6\u3001\u5386\u53f2\u9879\u76ee\u8d44\u6599\u7b49\u6587\u4ef6\u4ea4\u7ed9LlamaFarm\u7684RAG\u7cfb\u7edf\u5904\u7406\u3002\u5904\u7406\u5b8c\u6210\u540e\uff0c\u5458\u5de5\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e2a\u7b80\u5355\u7684\u804a\u5929\u754c\u9762\uff0c\u5feb\u901f\u67e5\u8be2\u5230\u6240\u9700\u4fe1\u606f\uff0c\u4f8b\u5982\u201c\u5982\u4f55\u7533\u8bf7\u9879\u76ee\u9884\u7b97\uff1f\u201d\u6216\u201c\u670d\u52a1\u5668A\u7684\u914d\u7f6e\u662f\u4ec0\u4e48\uff1f\u201d\u3002\u8fd9\u5927\u5927\u63d0\u5347\u4e86\u5185\u90e8\u4fe1\u606f\u7684\u68c0\u7d22\u6548\u7387\u548c\u77e5\u8bc6\u5171\u4eab\u6c34\u5e73\u3002<\/li>\n<li><strong>\u5f00\u53d1\u667a\u80fd\u5ba2\u6237\u652f\u6301\u673a\u5668\u4eba<\/strong><br \/>\n\u5229\u7528LlamaFarm\uff0c\u53ef\u4ee5\u6784\u5efa\u4e00\u4e2a\u80fd\u591f\u7406\u89e3\u5e76\u56de\u7b54\u5ba2\u6237\u5e38\u89c1\u95ee\u9898\u7684\u667a\u80fd\u5ba2\u670d\u673a\u5668\u4eba\u3002\u901a\u8fc7\u5c06\u4ea7\u54c1\u624b\u518c\u3001\u5e2e\u52a9\u6587\u6863\u548c\u5386\u53f2\u5ba2\u670d\u5bf9\u8bdd\u8bb0\u5f55\u4f5c\u4e3a\u77e5\u8bc6\u6e90\uff0c\u673a\u5668\u4eba\u53ef\u4ee5\u4e3a\u5ba2\u6237\u63d0\u4f9b7&#215;24\u5c0f\u65f6\u7684\u5b9e\u65f6\u652f\u6301\u3002\u540c\u65f6\uff0c\u5176\u6a21\u578b\u6545\u969c\u5207\u6362\u529f\u80fd\u786e\u4fdd\u4e86\u670d\u52a1\u7684\u9ad8\u53ef\u7528\u6027\u3002<\/li>\n<li><strong>\u52a0\u901f\u5b66\u672f\u7814\u7a76\u4e0e\u6587\u732e\u5206\u6790<\/strong><br \/>\n\u7814\u7a76\u4eba\u5458\u53ef\u4ee5\u628a\u5927\u91cf\u7684\u5b66\u672f\u8bba\u6587\u548c\u7814\u7a76\u62a5\u544a\u5bfc\u5165LlamaFarm\uff0c\u5efa\u7acb\u4e00\u4e2a\u4e13\u4e1a\u7684\u77e5\u8bc6\u5e93\u3002\u968f\u540e\uff0c\u4ed6\u4eec\u53ef\u4ee5\u9488\u5bf9\u7279\u5b9a\u4e3b\u9898\u8fdb\u884c\u6df1\u5ea6\u63d0\u95ee\uff0c\u4f8b\u5982\u201c\u603b\u7ed3\u4e00\u4e0b\u6700\u8fd1\u5173\u4e8eA\u6750\u6599\u7684\u6240\u6709\u7814\u7a76\u8fdb\u5c55\u201d\uff0c\u7cfb\u7edf\u80fd\u591f\u5feb\u901f\u6574\u5408\u4fe1\u606f\uff0c\u5e76\u7ed9\u51fa\u5173\u952e\u6458\u8981\uff0c\u5e2e\u52a9\u7814\u7a76\u4eba\u5458\u8282\u7701\u5927\u91cf\u9605\u8bfb\u548c\u7b5b\u9009\u6587\u732e\u7684\u65f6\u95f4\u3002<\/li>\n<li><strong>\u521b\u5efa\u5185\u5bb9\u751f\u6210\u4e0e\u5206\u6790\u5de5\u5177<\/strong><br \/>\n\u5f00\u53d1\u8005\u53ef\u4ee5\u5229\u7528LlamaFarm\u7684\u63d0\u793a\u8bcd\u7ba1\u7406\u548c\u591a\u6a21\u578b\u8c03\u7528\u529f\u80fd\uff0c\u5f00\u53d1\u7528\u4e8e\u5e02\u573a\u6587\u6848\u751f\u6210\u3001\u4ee3\u7801\u8f85\u52a9\u7f16\u5199\u6216\u6570\u636e\u62a5\u544a\u5206\u6790\u7684\u5de5\u5177\u3002\u901a\u8fc7\u5b9a\u4e49\u4e0d\u540c\u7684\u7b56\u7565\uff0c\u53ef\u4ee5\u8f7b\u677e\u5207\u6362\u5de5\u5177\u7684\u201c\u89d2\u8272\u201d\uff0c\u4f8b\u5982\uff0c\u4f7f\u7528\u201c\u521b\u610f\u5199\u4f5c\u201d\u7b56\u7565\u751f\u6210\u5e7f\u544a\u8bcd\uff0c\u6216\u4f7f\u7528\u201c\u4ee3\u7801\u5ba1\u67e5\u201d\u7b56\u7565\u5206\u6790\u4ee3\u7801\u8d28\u91cf\u3002<\/li>\n<\/ol>\n<h2>QA<\/h2>\n<ol>\n<li><strong>LlamaFarm\u548c\u5176\u4ed6AI\u6846\u67b6\uff08\u5982LangChain\uff09\u6709\u4ec0\u4e48\u533a\u522b\uff1f<\/strong><br \/>\nLlamaFarm\u7684\u8bbe\u8ba1\u91cd\u70b9\u662f\u63d0\u4f9b\u4e00\u4e2a\u4ece\u672c\u5730\u5f00\u53d1\u5230\u751f\u4ea7\u90e8\u7f72\u7684\u5b8c\u6574\u3001\u6a21\u5757\u5316\u7684\u89e3\u51b3\u65b9\u6848\u3002\u5b83\u4e0d\u4ec5\u63d0\u4f9bAI\u903b\u8f91\u7f16\u6392\uff0c\u8fd8\u5305\u542b\u4e86\u8fd0\u884c\u65f6\u7ba1\u7406\u3001\u90e8\u7f72\u5de5\u5177\u548c\u7b56\u7565\u5316\u914d\u7f6e\u7b49\u4f01\u4e1a\u7ea7\u529f\u80fd\u3002\u5b83\u7684\u7ec4\u4ef6\u65e2\u53ef\u4ee5\u534f\u540c\u5de5\u4f5c\uff0c\u4e5f\u53ef\u4ee5\u72ec\u7acb\u96c6\u6210\u5230\u73b0\u6709\u9879\u76ee\u4e2d\uff0c\u63d0\u4f9b\u4e86\u66f4\u5927\u7684\u7075\u6d3b\u6027\u3002\u800cLangChain\u66f4\u4fa7\u91cd\u4e8eAI Agent\u548c\u8c03\u7528\u94fe\uff08Chain\uff09\u7684\u6784\u5efa\u3002LlamaFarm\u5728\u9879\u76ee\u542f\u52a8\u4e4b\u521d\u5c31\u8003\u8651\u5230\u4e86\u751f\u4ea7\u73af\u5883\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u6269\u5c55\u6027\u3002<\/li>\n<li><strong>\u4f7f\u7528LlamaFarm\u662f\u5426\u9700\u8981\u4ed8\u8d39\uff1f<\/strong><br \/>\nLlamaFarm\u9879\u76ee\u672c\u8eab\u662f\u5f00\u6e90\u7684\uff0c\u5e76\u91c7\u7528Apache-2.0\u8bb8\u53ef\u8bc1\uff0c\u8fd9\u610f\u5473\u7740\u4f60\u53ef\u4ee5\u514d\u8d39\u4f7f\u7528\u3001\u4fee\u6539\u548c\u5206\u53d1\u5b83\u3002\u4f46\u662f\uff0c\u4f60\u5728\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u8c03\u7528\u7b2c\u4e09\u65b9LLM\u4f9b\u5e94\u5546\uff08\u5982OpenAI\u7684GPT-4\uff09\u7684API\u65f6\uff0c\u9700\u8981\u5411\u8fd9\u4e9b\u4f9b\u5e94\u5546\u652f\u4ed8\u76f8\u5e94\u7684\u8d39\u7528\u3002\u5982\u679c\u4f60\u4f7f\u7528\u672c\u5730\u6a21\u578b\uff08\u5982\u901a\u8fc7Ollama\u8fd0\u884c\u7684Llama 3\uff09\uff0c\u5219\u4e0d\u4f1a\u4ea7\u751fAPI\u8d39\u7528\u3002<\/li>\n<li><strong>\u6211\u662f\u5426\u9700\u8981\u4e00\u53f0\u6027\u80fd\u5f88\u5f3a\u7684\u7535\u8111\u624d\u80fd\u5728\u672c\u5730\u8fd0\u884cLlamaFarm\uff1f<\/strong><br \/>\n\u8fd9\u53d6\u51b3\u4e8e\u4f60\u7684\u5177\u4f53\u7528\u4f8b\u3002LlamaFarm\u6846\u67b6\u672c\u8eab\u5bf9\u8d44\u6e90\u7684\u6d88\u8017\u4e0d\u5927\u3002\u8d44\u6e90\u6d88\u8017\u4e3b\u8981\u6765\u81ea\u4f60\u8fd0\u884c\u7684AI\u6a21\u578b\u3002\u5982\u679c\u4f60\u53ea\u662f\u7528\u5b83\u6765\u8c03\u7528\u4e91\u7aefAPI\uff0c\u90a3\u4e48\u666e\u901a\u7535\u8111\u5c31\u8db3\u591f\u4e86\u3002\u5982\u679c\u4f60\u60f3\u5728\u672c\u5730\u8fd0\u884c\u50cfLlama 3\u8fd9\u6837\u7684\u5927\u578b\u8bed\u8a00\u6a21\u578b\uff0c\u90a3\u4e48\u4f60\u7684\u7535\u8111\u6700\u597d\u914d\u5907\u4e00\u5757\u663e\u5b58\u8f83\u5927\u7684NVIDIA\u663e\u5361\uff08GPU\uff09\uff0c\u4ee5\u53ca\u8db3\u591f\u5927\u7684\u5185\u5b58\u3002<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>LlamaFarm\u662f\u4e00\u4e2a\u529f\u80fd\u5168\u9762\u7684\u6a21\u5757\u5316AI\u5f00\u53d1\u6846\u67b6\uff0c\u5b83\u7684\u6838\u5fc3\u8bbe\u8ba1\u7406\u5ff5\u662f\u201c\u672c\u5730\u4f18\u5148\u5f00\u53d1\uff0c\u968f\u5904\u90e8\u7f72\u201d\u3002\u8fd9\u4e2a\u6846\u67b6\u8ba9\u5f00\u53d1\u8005\u53ef\u4ee5\u5728\u81ea\u5df1\u7684\u7535\u8111\u4e0a\u6784\u5efa\u3001\u6d4b\u8bd5\u548c\u8fd0\u884c\u6574\u5957AI\u7cfb\u7edf\uff0c\u7136\u540e\u518d\u5c06\u540c\u6837\u7684\u4ee3\u7801\u65e0\u7f1d\u90e8\u7f72\u5230\u751f\u4ea7\u73af\u5883\uff0c\u65e0\u8bba\u662f\u516c\u53f8\u5185\u7f51\u670d\u52a1\u5668\u8fd8\u662f\u4e91\u7aef\u5e73\u53f0\u3002\u5b83\u63d0&#8230;<\/p>\n","protected":false},"author":1,"featured_media":32782,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[230,221],"class_list":["post-51141","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tool","tag-aikaiyuanxiangmu","tag-aibiancheng"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/posts\/51141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/comments?post=51141"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/posts\/51141\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/media\/32782"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/media?parent=51141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/categories?post=51141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/de\/wp-json\/wp\/v2\/tags?post=51141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}