Skip to content

Commit

Permalink
docs reranker.md the 'requirements' the word error
Browse files Browse the repository at this point in the history
  • Loading branch information
kenith-z authored Feb 19, 2024
1 parent b534163 commit b30fbc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docSite/content/docs/development/custom-models/reranker.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ weight: 910

1. 根据上面的环境配置配置好环境,具体教程自行 GPT;
2. 下载 [python 文件](https://github.com/labring/FastGPT/tree/main/python/reranker/bge-reranker-base)
3. 在命令行输入命令 `pip install -r requirments.txt`
3. 在命令行输入命令 `pip install -r requirements.txt`
4. 按照[https://huggingface.co/BAAI/bge-reranker-base](https://huggingface.co/BAAI/bge-reranker-base)下载模型仓库到app.py同级目录
5. 添加环境变量 `export ACCESS_TOKEN=XXXXXX` 配置 token,这里的 token 只是加一层验证,防止接口被人盗用,默认值为 `ACCESS_TOKEN`
6. 执行命令 `python app.py`
Expand Down Expand Up @@ -61,4 +61,4 @@ docker run -d --name reranker -p 6006:6006 -e ACCESS_TOKEN=mytoken luanshaotong/

## 接入 FastGPT

参考 [ReRank模型接入](/docs/development/configuration/#rerank-接入),host 变量为部署的域名。
参考 [ReRank模型接入](/docs/development/configuration/#rerank-接入),host 变量为部署的域名。

0 comments on commit b30fbc5

Please sign in to comment.