fix(docs): update installation instructions and improve formatting in README files
This commit is contained in:
@@ -81,18 +81,26 @@ Going beyond traditional human-in-the-loop systems, EvoScientist introduces an A
|
||||
|
||||
## 📦 Installation
|
||||
|
||||
> [!NOTE]
|
||||
> Requires **Python 3.11+**. A virtual environment is strongly recommended — EvoScientist experiments may install ML libraries (PyTorch, transformers, etc.) that can conflict with your system packages. We recommend [**uv**](https://docs.astral.sh/uv/) for fast, reliable dependency management — it handles Python versions, virtual environments, and packages in a single tool.
|
||||
> [!TIP]
|
||||
> Requires **Python 3.11+**. We recommend [**uv**](https://docs.astral.sh/uv/) or **conda** for dependency management and virtual environments.
|
||||
|
||||
### Install uv (if you don't have it)
|
||||
<details>
|
||||
<summary> 🪛 Install uv (if you don't have it)</summary>
|
||||
|
||||
```bash
|
||||
# Always review scripts before piping to shell: https://astral.sh/uv/install.sh
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
### Quick Install
|
||||
|
||||
```bash
|
||||
uv tool install EvoScientist
|
||||
```
|
||||
|
||||
Or install into the current environment instead:
|
||||
|
||||
```bash
|
||||
uv pip install EvoScientist
|
||||
```
|
||||
@@ -106,7 +114,7 @@ uv sync --dev
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>Using conda</summary>
|
||||
<summary> Using conda</summary>
|
||||
|
||||
```bash
|
||||
conda create -n EvoSci python=3.11 -y
|
||||
@@ -117,7 +125,7 @@ pip install -e ".[dev]"
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Using pip</summary>
|
||||
<summary> Using PyPi</summary>
|
||||
|
||||
```bash
|
||||
pip install EvoScientist # quick install
|
||||
@@ -127,16 +135,7 @@ pip install -e ".[dev]" # development install
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Upgrade to latest</summary>
|
||||
|
||||
```bash
|
||||
git pull && uv sync --dev
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Optional: Channel dependencies</summary>
|
||||
<summary> Optional: Channel dependencies</summary>
|
||||
|
||||
Messaging channel integrations require extra dependencies. Install only what you need:
|
||||
|
||||
@@ -151,6 +150,15 @@ uv pip install "EvoScientist[all-channels]" # everything
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary> Upgrade to the latest code base </summary>
|
||||
|
||||
```bash
|
||||
git pull && uv sync --dev
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
<p align="right"><a href="#top">🔝Back to top</a></p>
|
||||
|
||||
## 🔑 Configuration
|
||||
@@ -164,7 +172,7 @@ EvoSci onboard
|
||||
It walks you through provider selection, key validation, model choice, and workspace setup.
|
||||
|
||||
<details>
|
||||
<summary>Manual configuration via environment variables</summary>
|
||||
<summary> 📟 Manual configuration via environment variables </summary>
|
||||
|
||||
Set at least one LLM provider key and (optionally) a search key:
|
||||
|
||||
@@ -187,8 +195,7 @@ Alternatively, copy the example `.env` file for project-level configuration:
|
||||
cp .env.example .env # then fill in your keys
|
||||
```
|
||||
|
||||
> [!WARNING]
|
||||
> Never commit `.env` files with real keys. It is already in `.gitignore`.
|
||||
> ⚠️ Never commit `.env` files with real keys. It is already in `.gitignore`.
|
||||
|
||||
</details>
|
||||
|
||||
@@ -271,7 +278,7 @@ EvoSci mcp add <name> <command> [-- args...]
|
||||
EvoSci mcp add sequential-thinking npx -- -y @modelcontextprotocol/server-sequential-thinking
|
||||
```
|
||||
|
||||
> [!NOTE]
|
||||
> [!TIP]
|
||||
> For command options, config fields, tool routing, wildcard filtering, and troubleshooting, see the **[MCP Integration Guide](https://github.com/EvoScientist/EvoScientist/tree/main/EvoScientist/mcp#model-context-protocol-integration)**.
|
||||
|
||||
<p align="right"><a href="#top">🔝Back to top</a></p>
|
||||
@@ -296,7 +303,7 @@ channel_enabled: "telegram,discord,slack"
|
||||
|
||||
The channel can also be started interactively with `/channel` in the CLI session.
|
||||
|
||||
> [!NOTE]
|
||||
> [!TIP]
|
||||
> For per-channel setup guides, capability matrix, architecture details, and troubleshooting, see the **[Channel Integration Guide](https://github.com/EvoScientist/EvoScientist/tree/main/EvoScientist/channels#channels)**.
|
||||
|
||||
<p align="right"><a href="#top">🔝Back to top</a></p>
|
||||
|
||||
+32
-25
@@ -91,18 +91,26 @@ EvoScientist 超越了传统的人在回路(Human-in-the-Loop)模式,引
|
||||
|
||||
## 📦 安装
|
||||
|
||||
> [!NOTE]
|
||||
> 需要 **Python 3.11+**。强烈建议使用虚拟环境——EvoScientist 的实验过程可能会安装 ML 相关库(PyTorch、transformers 等),可能与系统包产生冲突。推荐使用 [**uv**](https://docs.astral.sh/uv/) 进行快速、可靠的依赖管理——它集 Python 版本管理、虚拟环境和包管理于一体。
|
||||
> [!TIP]
|
||||
> 需要 **Python 3.11+**。推荐使用 [**uv**](https://docs.astral.sh/uv/) 或 **conda** 进行依赖管理和虚拟环境管理。
|
||||
|
||||
### 安装 uv(如果尚未安装)
|
||||
<details>
|
||||
<summary>🪛 安装 uv(如果尚未安装)</summary>
|
||||
|
||||
```bash
|
||||
# 运行前请先审查脚本内容:https://astral.sh/uv/install.sh
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
### 快速安装
|
||||
|
||||
```bash
|
||||
uv tool install EvoScientist
|
||||
```
|
||||
|
||||
或安装到当前环境:
|
||||
|
||||
```bash
|
||||
uv pip install EvoScientist
|
||||
```
|
||||
@@ -116,7 +124,7 @@ uv sync --dev
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>使用 conda</summary>
|
||||
<summary> 使用 conda</summary>
|
||||
|
||||
```bash
|
||||
conda create -n EvoSci python=3.11 -y
|
||||
@@ -127,26 +135,17 @@ pip install -e ".[dev]"
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>使用 pip</summary>
|
||||
<summary> 使用 PyPi</summary>
|
||||
|
||||
```bash
|
||||
pip install EvoScientist # 快速安装
|
||||
pip install -e ".[dev]" # 开发安装
|
||||
pip install EvoScientist # quick install
|
||||
pip install -e ".[dev]" # development install
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>升级到最新版</summary>
|
||||
|
||||
```bash
|
||||
git pull && uv sync --dev
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>可选:渠道依赖</summary>
|
||||
<summary> 可选:渠道依赖</summary>
|
||||
|
||||
消息渠道集成需要额外依赖,按需安装即可:
|
||||
|
||||
@@ -154,9 +153,18 @@ git pull && uv sync --dev
|
||||
uv pip install "EvoScientist[telegram]" # Telegram
|
||||
uv pip install "EvoScientist[discord]" # Discord
|
||||
uv pip install "EvoScientist[slack]" # Slack
|
||||
uv pip install "EvoScientist[wechat]" # 微信
|
||||
uv pip install "EvoScientist[wechat]" # WeChat
|
||||
uv pip install "EvoScientist[qq]" # QQ
|
||||
uv pip install "EvoScientist[all-channels]" # 全部渠道
|
||||
uv pip install "EvoScientist[all-channels]" # everything
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary> 升级到最新代码库</summary>
|
||||
|
||||
```bash
|
||||
git pull && uv sync --dev
|
||||
```
|
||||
|
||||
</details>
|
||||
@@ -174,7 +182,7 @@ EvoSci onboard
|
||||
向导将引导你完成供应商选择、密钥验证、模型选择和工作区设置。
|
||||
|
||||
<details>
|
||||
<summary>通过环境变量手动配置</summary>
|
||||
<summary> 📟 通过环境变量手动配置</summary>
|
||||
|
||||
至少设置一个 LLM 供应商密钥,搜索密钥为可选项:
|
||||
|
||||
@@ -197,8 +205,7 @@ export TAVILY_API_KEY="tvly-..." # app.tavily.com
|
||||
cp .env.example .env # 填入你的密钥
|
||||
```
|
||||
|
||||
> [!WARNING]
|
||||
> 切勿将包含真实密钥的 `.env` 文件提交到版本库。该文件已在 `.gitignore` 中。
|
||||
> ⚠️ 切勿将包含真实密钥的 `.env` 文件提交到版本库。该文件已在 `.gitignore` 中。
|
||||
|
||||
</details>
|
||||
|
||||
@@ -281,7 +288,7 @@ EvoSci mcp add <name> <command> [-- args...]
|
||||
EvoSci mcp add sequential-thinking npx -- -y @modelcontextprotocol/server-sequential-thinking
|
||||
```
|
||||
|
||||
> [!NOTE]
|
||||
> [!TIP]
|
||||
> 关于命令选项、配置字段、工具路由、通配符过滤和故障排查,请参阅 **[MCP 集成指南](https://github.com/EvoScientist/EvoScientist/tree/main/EvoScientist/mcp#model-context-protocol-integration)**。
|
||||
|
||||
<p align="right"><a href="#top">🔝回到顶部</a></p>
|
||||
@@ -306,7 +313,7 @@ channel_enabled: "telegram,discord,slack"
|
||||
|
||||
也可以在 CLI 会话中通过 `/channel` 交互式启动渠道。
|
||||
|
||||
> [!NOTE]
|
||||
> [!TIP]
|
||||
> 关于各渠道设置指南、功能矩阵、架构详情和故障排查,请参阅 **[渠道集成指南](https://github.com/EvoScientist/EvoScientist/tree/main/EvoScientist/channels#channels)**。
|
||||
|
||||
<p align="right"><a href="#top">🔝回到顶部</a></p>
|
||||
|
||||
Reference in New Issue
Block a user