Skip to content

Commit 55a60b3

Browse files
authored
Merge pull request #12 from refly-ai/fix/update-self-deploy
Update configuration and deployment documentation
2 parents 3f51e4d + acfab06 commit 55a60b3

File tree

4 files changed

+17
-9
lines changed

4 files changed

+17
-9
lines changed

guide/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ The following are the detailed configurations for the API server. You can inject
2020
| Env | Description | Default Value |
2121
| --- | --- | --- |
2222
| OPENAI_API_KEY | API key for OpenAI (or any other compatible provider), used for LLM inference and embeddings | (not set) |
23-
| OPENAI_BASE_URL | Base URL for OpenAI compatible provider | `https://api.openai.com` |
23+
| OPENAI_BASE_URL | Base URL for OpenAI compatible provider | (not set) |
2424
| OPENROUTER_API_KEY | [OpenRouter](https://openrouter.ai/) API key, used for LLM inference | (not set) |
25-
| JINA_API_KEY | [Jina](https://jina.ai/) API key, used for embeddings | (not set) |
25+
| JINA_API_KEY | [Jina](https://jina.ai/) API key, used for embeddings and weblink parsing | (not set) |
2626
| FIREWORKS_API_KEY | [Fireworks](https://fireworks.ai/) API key, used for embedding | (not set) |
2727
| SERPER_API_KEY | [Serper](https://serper.dev/) API key, used for online search | (not set) |
2828
| MARKER_API_KEY | [Marker](https://www.datalab.to/) API key, used for PDF parsing | (not set) |

guide/self-deploy/index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Notes on must-set environment variables:
4545
- **Envs for Web Search**:
4646
- `SERPER_API_KEY`: [Serper](https://serper.dev/) API key
4747

48-
::: tip
48+
::: info
4949
A comprehensive list of all the configuration options is available in the [Configuration](../configuration.md).
5050
:::
5151

@@ -55,6 +55,10 @@ A comprehensive list of all the configuration options is available in the [Confi
5555
docker compose up -d
5656
```
5757

58+
::: tip For passionate users
59+
By default, the docker compose file will pull the `latest` image, which is the latest stable version. If you want to use the up-to-date version synced with the Refly Cloud, you can replace image tag `latest` with `nightly` in the `docker-compose.yml` file.
60+
:::
61+
5862
You can run `docker ps` to check the status of the containers. The expected status for each container should be `Up` and `healthy`. An example output is shown below:
5963

6064
```bash
@@ -84,7 +88,7 @@ Models are configured via the `refly.model_infos` table within the `refly_db` Po
8488

8589
| Provider | `OPENAI_BASE_URL` | SQL File |
8690
| -------- | ----------------- | -------- |
87-
| [OpenAI](https://platform.openai.com/) | `https://api.openai.com` | [openai.sql](https://github.com/refly-ai/refly/blob/main/deploy/model-providers/openai.sql) |
91+
| [OpenAI](https://platform.openai.com/) | (empty) | [openai.sql](https://github.com/refly-ai/refly/blob/main/deploy/model-providers/openai.sql) |
8892
| [OpenRouter](https://openrouter.ai/) | `https://openrouter.ai/api/v1` | [openrouter.sql](https://github.com/refly-ai/refly/blob/main/deploy/model-providers/openrouter.sql) |
8993
| [DeepSeek](https://platform.deepseek.com/) | `https://api.deepseek.com` | [deepseek.sql](https://github.com/refly-ai/refly/blob/main/deploy/model-providers/deepseek.sql) |
9094
| [Ollama](https://ollama.com/) | `http://host.docker.internal:11434/v1` | [ollama.sql](https://github.com/refly-ai/refly/blob/main/deploy/model-providers/ollama.sql) |

zh/guide/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
| 环境变量 | 说明 | 默认值 |
2121
| --- | --- | --- |
2222
| OPENAI_API_KEY | [OpenAI](https://openai.com/) 或其他兼容供应方的 API 密钥,用于 LLM 推理和嵌入 | (未设置) |
23-
| OPENAI_BASE_URL | OpenAI 兼容供应方的基础 URL,用于 LLM 推理和嵌入 | `https://api.openai.com` |
23+
| OPENAI_BASE_URL | OpenAI 兼容供应方的基础 URL,用于 LLM 推理和嵌入 | (未设置) |
2424
| OPENROUTER_API_KEY | [OpenRouter](https://openrouter.ai/) API 密钥,用于 LLM 推理 | (未设置) |
25-
| JINA_API_KEY | [Jina](https://jina.ai/) API 密钥,用于嵌入 | (未设置) |
25+
| JINA_API_KEY | [Jina](https://jina.ai/) API 密钥,用于嵌入和网页解析 | (未设置) |
2626
| FIREWORKS_API_KEY | [Fireworks](https://fireworks.ai/) API 密钥,用于嵌入 | (未设置) |
2727
| SERPER_API_KEY | [Serper](https://serper.dev/) API 密钥,用于在线搜索 | (未设置) |
2828
| MARKER_API_KEY | [Marker](https://www.datalab.to/) API 密钥,用于 PDF 解析 | (未设置) |

zh/guide/self-deploy/index.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ cp ../../apps/api/.env.example .env
4545
- **网络搜索相关环境变量**
4646
- `SERPER_API_KEY`[Serper](https://serper.dev/) API 密钥
4747

48-
::: tip
48+
::: info
4949
所有配置选项的完整列表可以在[配置指南](../configuration.md)中找到。
5050
:::
5151

@@ -55,6 +55,10 @@ cp ../../apps/api/.env.example .env
5555
docker compose up -d
5656
```
5757

58+
::: tip 对于热情的用户
59+
默认情况下,docker compose 文件会拉取 `latest` 镜像,这是最新的稳定版本。如果您想使用与 Refly Cloud 同步的最新开发版本,可以在 `docker-compose.yml` 文件中将镜像标签 `latest` 替换为 `nightly`
60+
:::
61+
5862
您可以运行 `docker ps` 来检查容器的状态。每个容器的预期状态应该是 `Up``healthy`。以下是示例输出:
5963

6064
```bash
@@ -82,9 +86,9 @@ e7b398dbd02b postgres:16-alpine "docker-entrypoint.s
8286

8387
模型配置通过 `refly_db` PostgreSQL 数据库中的 `refly.model_infos` 表进行管理。我们为一些常见的提供商准备了推荐的模型 SQL 文件:
8488

85-
| 提供商 | `OPENAI_BASE_URL` | SQL 文件
89+
| 提供商 | `OPENAI_BASE_URL` | SQL 文件 |
8690
| -------- | ----------------- | -------- |
87-
| [OpenAI](https://platform.openai.com/) | `https://api.openai.com` | [openai.sql](https://github.com/refly-ai/refly/blob/main/deploy/model-providers/openai.sql) |
91+
| [OpenAI](https://platform.openai.com/) | (空) | [openai.sql](https://github.com/refly-ai/refly/blob/main/deploy/model-providers/openai.sql) |
8892
| [OpenRouter](https://openrouter.ai/) | `https://openrouter.ai/api/v1` | [openrouter.sql](https://github.com/refly-ai/refly/blob/main/deploy/model-providers/openrouter.sql) |
8993
| [DeepSeek](https://platform.deepseek.com/) | `https://api.deepseek.com` | [deepseek.sql](https://github.com/refly-ai/refly/blob/main/deploy/model-providers/deepseek.sql) |
9094
| [Ollama](https://ollama.com/) | `http://host.docker.internal:11434/v1` | [ollama.sql](https://github.com/refly-ai/refly/blob/main/deploy/model-providers/ollama.sql) |

0 commit comments

Comments
 (0)