Fix SSE route dependency and align architecture docs
This commit is contained in:
@@ -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调用失败
|
||||
|
||||
Reference in New Issue
Block a user