安装 II-Researcher 需要遵循以下步骤:
1. 克隆代码库:
git clone https://github.com/Intelligent-Internet/ii-researcher.git
cd ii-researcher
2. 安装依赖:
pip install -e .
3. 配置环境变量:需要设置多个 API 密钥和参数
export OPENAI_API_KEY="your-openai-api-key"
export TAVILY_API_KEY="your-tavily-api-key"
export SEARCH_PROVIDER="tavily"
export SCRAPER_PROVIDER="firecrawl"
可选配置(用于压缩或推理):
export USE_LLM_COMPRESSOR="TRUE"
export FAST_LLM="gemini-lite"
export STRATEGIC_LLM="gpt-4o"
export R_TEMPERATURE="0.2"
还可以使用 Docker 部署,运行命令:
docker compose up --build -d
服务将分别在以下地址运行:
- 前端:http://localhost:3000
- 后端 API:http://localhost:8000
- LiteLLM:http://localhost:4000
本答案来源于文章《II-Researcher:深度搜索与分步推理解答复杂问题》