{"id":29686,"date":"2025-04-01T02:31:04","date_gmt":"2025-03-31T18:31:04","guid":{"rendered":"https:\/\/www.aisharenet.com\/?p=29686"},"modified":"2025-04-01T02:31:04","modified_gmt":"2025-03-31T18:31:04","slug":"ii-researcher","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/en\/ii-researcher\/","title":{"rendered":"II-Researcher\uff1a\u6df1\u5ea6\u641c\u7d22\u4e0e\u5206\u6b65\u63a8\u7406\u89e3\u7b54\u590d\u6742\u95ee\u9898"},"content":{"rendered":"<p>II-Researcher \u662f Intelligent-Internet \u56e2\u961f\u5f00\u53d1\u7684\u4e00\u6b3e\u5f00\u6e90\u4eba\u5de5\u667a\u80fd\u7814\u7a76\u5de5\u5177\uff0c\u6258\u7ba1\u4e8e GitHub\u3002\u5b83\u4e13\u4e3a\u6df1\u5ea6\u641c\u7d22\u548c\u590d\u6742\u63a8\u7406\u8bbe\u8ba1\uff0c\u80fd\u901a\u8fc7\u667a\u80fd\u7f51\u9875\u641c\u7d22\u548c\u591a\u6b65\u9aa4\u5206\u6790\u56de\u7b54\u590d\u6742\u95ee\u9898\u3002\u9879\u76ee\u4e8e 2025 \u5e74 3 \u6708 27 \u65e5\u53d1\u5e03\uff0c\u652f\u6301\u591a\u79cd\u641c\u7d22\u548c\u6293\u53d6\u5de5\u5177\uff08\u5982 Tavily\u3001SerpAPI\u3001Firecrawl\uff09\uff0c\u5e76\u6574\u5408 LiteLLM \u8c03\u7528\u4e0d\u540c AI \u6a21\u578b\u3002\u7528\u6237\u53ef\u4ee5\u514d\u8d39\u83b7\u53d6\u4ee3\u7801\uff0c\u81ea\u884c\u90e8\u7f72\u6216\u4fee\u6539\uff0c\u9002\u5408\u7814\u7a76\u4eba\u5458\u3001\u5f00\u53d1\u8005\u7b49\u9700\u8981\u9ad8\u6548\u4fe1\u606f\u5904\u7406\u7684\u4eba\u7fa4\u3002\u5b83\u7684\u6838\u5fc3\u5728\u4e8e\u5f00\u6e90\u3001\u53ef\u914d\u7f6e\u548c\u5f02\u6b65\u64cd\u4f5c\uff0c\u63d0\u4f9b\u900f\u660e\u7684\u7814\u7a76\u652f\u6301\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-29687\" title=\"II-Researcher\uff1a\u652f\u6301\u6df1\u5ea6\u641c\u7d22\u4e0e\u63a8\u7406-1\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/04\/3f7499392a57f7f.png\" alt=\"II-Researcher\uff1a\u652f\u6301\u6df1\u5ea6\u641c\u7d22\u4e0e\u63a8\u7406-1\" width=\"814\" height=\"451\" srcset=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/04\/3f7499392a57f7f.png 1030w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/04\/3f7499392a57f7f-768x426.png 768w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/04\/3f7499392a57f7f-18x10.png 18w\" sizes=\"auto, (max-width: 814px) 100vw, 814px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>\u529f\u80fd\u5217\u8868<\/h2>\n<ul>\n<li>\u667a\u80fd\u7f51\u9875\u641c\u7d22\uff1a\u901a\u8fc7 <a href=\"https:\/\/www.kdjingpai.com\/de\/tavily\/\">Tavily<\/a> \u548c SerpAPI \u83b7\u53d6\u51c6\u786e\u4fe1\u606f\u3002<\/li>\n<li>\u7f51\u9875\u6293\u53d6\u4e0e\u63d0\u53d6\uff1a\u652f\u6301 Firecrawl\u3001Browser\u3001BS4 \u7b49\u591a\u79cd\u5de5\u5177\u63d0\u53d6\u5185\u5bb9\u3002<\/li>\n<li>\u591a\u6b65\u9aa4\u63a8\u7406\uff1a\u80fd\u62c6\u89e3\u95ee\u9898\uff0c\u9010\u6b65\u63a8\u7406\u51fa\u7b54\u6848\u3002<\/li>\n<li>\u53ef\u914d\u7f6e\u6a21\u578b\uff1a\u652f\u6301\u8c03\u6574\u4e0d\u540c\u4efb\u52a1\u7684 LLM\uff08\u5982 GPT-4o\u3001DeepSeek\uff09\u3002<\/li>\n<li>\u5f02\u6b65\u64cd\u4f5c\uff1a\u63d0\u5347\u641c\u7d22\u548c\u5904\u7406\u7684\u6548\u7387\u3002<\/li>\n<li>\u751f\u6210\u8be6\u7ec6\u7b54\u6848\uff1a\u63d0\u4f9b\u5e26\u53c2\u8003\u7684\u7efc\u5408\u62a5\u544a\u3002<\/li>\n<li>\u81ea\u5b9a\u4e49\u7ba1\u9053\uff1a\u7528\u6237\u53ef\u8c03\u6574\u641c\u7d22\u548c\u63a8\u7406\u6d41\u7a0b\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>\u4f7f\u7528\u5e2e\u52a9<\/h2>\n<h3>\u5b89\u88c5\u6d41\u7a0b<\/h3>\n<p>\u8981\u4f7f\u7528 II-Researcher\uff0c\u9700\u8981\u5b89\u88c5\u5e76\u914d\u7f6e\u73af\u5883\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u6b65\u9aa4\uff1a<\/p>\n<ol>\n<li><strong>\u514b\u9686\u4ee3\u7801\u5e93<\/strong><br \/>\n\u5728\u7ec8\u7aef\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4e0b\u8f7d\u4ee3\u7801\uff1a<\/li>\n<\/ol>\n<pre><code>git clone https:\/\/github.com\/Intelligent-Internet\/ii-researcher.git\r\ncd ii-researcher\r\n<\/code><\/pre>\n<ol start=\"2\">\n<li><strong>\u5b89\u88c5\u4f9d\u8d56<\/strong><br \/>\n\u9879\u76ee\u9700\u8981 Python 3.7+\u3002\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\u4f9d\u8d56\uff1a<\/li>\n<\/ol>\n<pre><code>pip install -e .\r\n<\/code><\/pre>\n<ol start=\"3\">\n<li><strong>\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf<\/strong><br \/>\n\u914d\u7f6e\u5fc5\u8981\u7684 API \u5bc6\u94a5\u548c\u53c2\u6570\u3002\u4f8b\u5982\uff1a<\/li>\n<\/ol>\n<pre><code>export OPENAI_API_KEY=\"your-openai-api-key\"\r\nexport TAVILY_API_KEY=\"your-tavily-api-key\"\r\nexport SEARCH_PROVIDER=\"tavily\"\r\nexport SCRAPER_PROVIDER=\"firecrawl\"\r\n<\/code><\/pre>\n<p>\u53ef\u9009\u914d\u7f6e\uff08\u7528\u4e8e\u538b\u7f29\u6216\u63a8\u7406\uff09\uff1a<\/p>\n<pre><code>export USE_LLM_COMPRESSOR=\"TRUE\"\r\nexport FAST_LLM=\"gemini-lite\"\r\nexport STRATEGIC_LLM=\"gpt-4o\"\r\nexport R_TEMPERATURE=\"0.2\"\r\n<\/code><\/pre>\n<ol start=\"4\">\n<li><strong>\u8fd0\u884c LiteLLM \u672c\u5730\u6a21\u578b\u670d\u52a1\u5668<\/strong><br \/>\n\u5b89\u88c5 LiteLLM\uff1a<\/li>\n<\/ol>\n<pre><code>pip install litellm\r\n<\/code><\/pre>\n<p>\u521b\u5efa\u914d\u7f6e\u6587\u4ef6\u00a0<code>litellm_config.yaml<\/code>\uff1a<\/p>\n<pre><code>model_list:\r\n- model_name: gpt-4o\r\nlitellm_params:\r\nmodel: gpt-4o\r\napi_key: ${OPENAI_API_KEY}\r\n- model_name: r1\r\nlitellm_params:\r\nmodel: deepseek-reasoner\r\napi_key: ${OPENAI_API_KEY}\r\nlitellm_settings:\r\ndrop_params: true\r\n<\/code><\/pre>\n<p>\u542f\u52a8\u670d\u52a1\u5668\uff1a<\/p>\n<pre><code>litellm --config litellm_config.yaml\r\n<\/code><\/pre>\n<p>\u9ed8\u8ba4\u8fd0\u884c\u5728\u00a0<code>http:\/\/localhost:4000<\/code>\u3002<\/p>\n<ol start=\"5\">\n<li><strong>Docker \u90e8\u7f72\uff08\u53ef\u9009\uff09<\/strong><br \/>\n\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u540e\uff0c\u8fd0\u884c\uff1a<\/li>\n<\/ol>\n<pre><code>docker compose up --build -d\r\n<\/code><\/pre>\n<p>\u670d\u52a1\u5730\u5740\uff1a<\/p>\n<ul>\n<li>\u524d\u7aef\uff1a<code>http:\/\/localhost:3000<\/code><\/li>\n<li>\u540e\u7aef API\uff1a<code>http:\/\/localhost:8000<\/code><\/li>\n<li>LiteLLM\uff1a<code>http:\/\/localhost:4000<\/code><\/li>\n<\/ul>\n<h3>\u4e3b\u8981\u529f\u80fd\u64cd\u4f5c<\/h3>\n<h4>\u667a\u80fd\u6df1\u5ea6\u641c\u7d22<\/h4>\n<ul>\n<li><strong>\u64cd\u4f5c\u6b65\u9aa4<\/strong>\uff1a<\/li>\n<\/ul>\n<ol>\n<li>\u901a\u8fc7\u547d\u4ee4\u884c\u8fd0\u884c\uff1a<\/li>\n<\/ol>\n<pre><code>python cli.py --question \"AI\u5982\u4f55\u6539\u5584\u6559\u80b2\u8d28\u91cf\uff1f\"\r\n<\/code><\/pre>\n<ol start=\"2\">\n<li>\u7cfb\u7edf\u8c03\u7528 Tavily \u6216 SerpAPI \u641c\u7d22\uff0c\u8fd4\u56de\u7ed3\u679c\u3002<\/li>\n<\/ol>\n<ul>\n<li><strong>\u529f\u80fd\u8bf4\u660e<\/strong>\uff1a\u652f\u6301\u591a\u6765\u6e90\u641c\u7d22\uff0c\u9002\u5408\u590d\u6742\u95ee\u9898\u3002<\/li>\n<\/ul>\n<h4>\u591a\u6b65\u9aa4\u63a8\u7406<\/h4>\n<ul>\n<li><strong>\u64cd\u4f5c\u6b65\u9aa4<\/strong>\uff1a<\/li>\n<\/ul>\n<ol>\n<li>\u4f7f\u7528\u63a8\u7406\u6a21\u5f0f\uff1a<\/li>\n<\/ol>\n<pre><code>python cli.py --question \"AI\u5728\u6559\u80b2\u4e2d\u7684\u4f18\u7f3a\u70b9\" --use-reasoning --stream\r\n<\/code><\/pre>\n<ol start=\"2\">\n<li>\u7cfb\u7edf\u9010\u6b65\u5206\u6790\u5e76\u8f93\u51fa\u7ed3\u8bba\u3002<\/li>\n<\/ol>\n<ul>\n<li><strong>\u529f\u80fd\u8bf4\u660e<\/strong>\uff1a\u80fd\u5904\u7406\u9700\u8981\u903b\u8f91\u63a8\u5bfc\u7684\u4efb\u52a1\u3002<\/li>\n<\/ul>\n<h4>\u7f51\u9875\u6293\u53d6<\/h4>\n<ul>\n<li><strong>\u64cd\u4f5c\u6b65\u9aa4<\/strong>\uff1a<\/li>\n<\/ul>\n<ol>\n<li>\u914d\u7f6e\u00a0<code>SCRAPER_PROVIDER=\"firecrawl\"<\/code>\u00a0\u548c API \u5bc6\u94a5\u3002<\/li>\n<li>\u8fd0\u884c\u641c\u7d22\u4efb\u52a1\uff0c\u81ea\u52a8\u6293\u53d6\u7f51\u9875\u5185\u5bb9\u3002<\/li>\n<\/ol>\n<ul>\n<li><strong>\u529f\u80fd\u8bf4\u660e<\/strong>\uff1a\u652f\u6301\u591a\u79cd\u6293\u53d6\u5de5\u5177\uff0c\u786e\u4fdd\u5185\u5bb9\u5168\u9762\u3002<\/li>\n<\/ul>\n<h4>Web \u754c\u9762\u4f7f\u7528<\/h4>\n<ul>\n<li><strong>\u64cd\u4f5c\u6b65\u9aa4<\/strong>\uff1a<\/li>\n<\/ul>\n<ol>\n<li>\u542f\u52a8\u540e\u7aef API\uff1a<\/li>\n<\/ol>\n<pre><code>python api.py\r\n<\/code><\/pre>\n<ol start=\"2\">\n<li>\u8fdb\u5165\u00a0<code>frontend<\/code>\u00a0\u6587\u4ef6\u5939\uff0c\u5b89\u88c5\u5e76\u8fd0\u884c\u524d\u7aef\uff1a<\/li>\n<\/ol>\n<pre><code>npm install\r\nnpm run dev\r\n<\/code><\/pre>\n<ol start=\"3\">\n<li>\u8bbf\u95ee\u00a0<code>http:\/\/localhost:3000<\/code>\uff0c\u8f93\u5165\u95ee\u9898\u3002<\/li>\n<\/ol>\n<ul>\n<li><strong>\u529f\u80fd\u8bf4\u660e<\/strong>\uff1a\u63d0\u4f9b\u56fe\u5f62\u5316\u754c\u9762\uff0c\u64cd\u4f5c\u66f4\u76f4\u89c2\u3002<\/li>\n<\/ul>\n<h3>\u6ce8\u610f\u4e8b\u9879<\/h3>\n<ul>\n<li>\u9700\u8981\u7a33\u5b9a\u7684\u7f51\u7edc\u8fde\u63a5\u4ee5\u8bbf\u95ee API\u3002<\/li>\n<li>\u786c\u4ef6\u8981\u6c42\uff1a\u57fa\u672c\u529f\u80fd\u9700 8GB \u5185\u5b58\uff0c\u5927\u6a21\u578b\u63a8\u7406\u5efa\u8bae 16GB+ \u548c GPU\u3002<\/li>\n<li>\u65e5\u5fd7\u68c0\u67e5\uff1a\u7528\u00a0<code>docker compose logs -f<\/code>\u00a0\u67e5\u770b\u8fd0\u884c\u72b6\u6001\u3002<\/li>\n<li>\u8d85\u65f6\u914d\u7f6e\uff1a\u641c\u7d22\u9ed8\u8ba4\u8d85\u65f6 300 \u79d2\uff0c\u53ef\u8c03\u6574\u00a0<code>SEARCH_PROCESS_TIMEOUT<\/code>\u3002<\/li>\n<\/ul>\n<p>\u901a\u8fc7\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u7528\u6237\u53ef\u4ee5\u8f7b\u677e\u90e8\u7f72\u5e76\u4f7f\u7528 II-Researcher\uff0c\u5b8c\u6210\u4ece\u641c\u7d22\u5230\u63a8\u7406\u7684\u5b8c\u6574\u6d41\u7a0b\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u5e94\u7528\u573a\u666f<\/h2>\n<ol>\n<li><strong>\u5b66\u672f\u7814\u7a76<\/strong><br \/>\n\u7814\u7a76\u4eba\u5458\u53ef\u4ee5\u7528\u5b83\u641c\u7d22\u6587\u732e\uff0c\u5206\u6790\u6570\u636e\uff0c\u751f\u6210\u62a5\u544a\u3002<\/li>\n<li><strong>\u6280\u672f\u5f00\u53d1<\/strong><br \/>\n\u5f00\u53d1\u8005\u53ef\u57fa\u4e8e\u6846\u67b6\u5f00\u53d1\u5b9a\u5236\u5316\u641c\u7d22\u5de5\u5177\u3002<\/li>\n<li><strong>\u6559\u80b2\u8f85\u52a9<\/strong><br \/>\n\u5b66\u751f\u53ef\u4ee5\u7528\u5b83\u6574\u7406\u8d44\u6599\uff0c\u89e3\u7b54\u95ee\u9898\u3002<\/li>\n<li><strong>\u5e02\u573a\u5206\u6790<\/strong><br \/>\n\u4f01\u4e1a\u53ef\u5229\u7528\u5b83\u6536\u96c6\u884c\u4e1a\u4fe1\u606f\uff0c\u751f\u6210\u8d8b\u52bf\u5206\u6790\u3002<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h2>QA<\/h2>\n<ol>\n<li><strong>II-Researcher \u514d\u8d39\u5417\uff1f<\/strong><br \/>\n\u662f\u7684\uff0c\u5b83\u662f\u5f00\u6e90\u9879\u76ee\uff0c\u7528\u6237\u53ef\u514d\u8d39\u4f7f\u7528\u4ee3\u7801\u3002<\/li>\n<li><strong>\u9700\u8981\u7f16\u7a0b\u57fa\u7840\u5417\uff1f<\/strong><br \/>\n\u9700\u8981\u57fa\u672c\u7684 Python \u64cd\u4f5c\u77e5\u8bc6\uff0c\u4f46\u6587\u6863\u8be6\u7ec6\uff0c\u521d\u5b66\u8005\u4e5f\u80fd\u4e0a\u624b\u3002<\/li>\n<li><strong>\u652f\u6301\u4e2d\u6587\u5417\uff1f<\/strong><br \/>\n\u652f\u6301\uff0c\u914d\u7f6e\u5408\u9002\u7684\u6a21\u578b\u548c\u641c\u7d22\u5de5\u5177\u5373\u53ef\u5904\u7406\u4e2d\u6587\u4efb\u52a1\u3002<\/li>\n<li><strong>\u6700\u4f4e\u786c\u4ef6\u8981\u6c42\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\n8GB \u5185\u5b58\u53ef\u8fd0\u884c\u57fa\u672c\u529f\u80fd\uff0c\u5efa\u8bae 16GB+ \u548c GPU \u7528\u4e8e\u5927\u578b\u4efb\u52a1\u3002<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>II-Researcher \u662f Intelligent-Internet \u56e2\u961f\u5f00\u53d1\u7684\u4e00\u6b3e\u5f00\u6e90\u4eba\u5de5\u667a\u80fd\u7814\u7a76\u5de5\u5177\uff0c\u6258\u7ba1\u4e8e GitHub\u3002\u5b83\u4e13\u4e3a\u6df1\u5ea6\u641c\u7d22\u548c\u590d\u6742\u63a8\u7406\u8bbe\u8ba1\uff0c\u80fd\u901a\u8fc7\u667a\u80fd\u7f51\u9875\u641c\u7d22\u548c\u591a\u6b65\u9aa4\u5206\u6790\u56de\u7b54\u590d\u6742\u95ee\u9898\u3002\u9879\u76ee\u4e8e 2025 \u5e74 3 \u6708 27&#8230;<\/p>\n","protected":false},"author":1,"featured_media":62177,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[230,389],"class_list":["post-29686","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tool","tag-aikaiyuanxiangmu","tag-shengchengshenduyanjiuao"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts\/29686","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/comments?post=29686"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts\/29686\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/media\/62177"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/media?parent=29686"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/categories?post=29686"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/tags?post=29686"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}