Fix SSE route dependency and align architecture docs

This commit is contained in:
ash66
2026-05-18 16:32:42 +08:00
parent 86b9ac806a
commit 3f69cad404
149 changed files with 4786 additions and 5957 deletions

View File

@@ -96,19 +96,16 @@ pip install -r backend/requirements.txt
---
## 四、下载嵌入模型
## 四、配置解析与 embedding
BGE-M3模型约2GB首次使用需下载。
当前主链路不再依赖本地 BGE-M3 模型文件,必须配置:
### 方式A自动下载联网环境
首次启动API时自动下载到 `~/.cache/huggingface/`
### 方式B手动下载离线环境
```bash
# 从ModelScope下载
python -c "from modelscope import snapshot_download; snapshot_download('Xorbits/bge-m3', cache_dir='~/.cache/modelscope')"
```env
ALIBABA_ACCESS_KEY_ID=your_aliyun_access_key_id
ALIBABA_ACCESS_KEY_SECRET=your_aliyun_access_key_secret
EMBEDDING_API_KEY=your_embedding_api_key_here
EMBEDDING_MODEL=text-embedding-v3
EMBEDDING_DIM=1536
```
---
@@ -320,7 +317,7 @@ export HF_ENDPOINT=https://hf-mirror.com
或手动下载:
```bash
python -c "from modelscope import snapshot_download; snapshot_download('Xorbits/bge-m3')"
当前版本无需下载本地 BGE-M3 模型;请改为确认 `EMBEDDING_API_KEY` 与阿里云文档解析凭据已配置。
```
### Q3: LLM调用失败