Skip to content

Commit

Permalink
Doc (labring#2910)
Browse files Browse the repository at this point in the history
* feat: add app chat openapi (labring#2908)

* add chat openapi

* create question guide openapi

* change auth method

* add chat openapi doc

* delete unused code

* feat: chat openapi doc

* rerank doc

* add chat detail openapi & doc

* update chat openapi doc

---------

Co-authored-by: heheer <[email protected]>
Co-authored-by: heheer <[email protected]>
  • Loading branch information
3 people authored Oct 14, 2024
1 parent 27ef4dc commit d55ccc9
Show file tree
Hide file tree
Showing 28 changed files with 897 additions and 83 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ https://github.com/labring/FastGPT/assets/15308462/7d3a38df-eb0e-4388-9250-2409b
`4` OpenAPI 接口
- [x] completions 接口 (chat 模式对齐 GPT 接口)
- [x] 知识库 CRUD
- [ ] 对话 CRUD
- [x] 对话 CRUD

`5` 运营能力
- [x] 免登录分享窗口
Expand Down
23 changes: 22 additions & 1 deletion docSite/content/zh-cn/docs/development/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,27 @@ weight: 708
}
```

### ReRank 接入(硅基流动)

有免费的 `bge-reranker-v2-m3` 模型可以使用。

1. 注册硅基流动账号: https://siliconflow.cn/
2. 进入控制台,获取 API key: https://cloud.siliconflow.cn/account/ak
3. 修改 FastGPT 配置文件

```json
{
"reRankModels": [
{
"model": "BAAI/bge-reranker-v2-m3", // 这里的model需要对应 siliconflow 的模型名
"name": "BAAI/bge-reranker-v2-m3",
"requestUrl": "https://api.siliconflow.cn/v1/rerank",
"requestAuth": "siliconflow 上申请的 key"
}
]
}
```

### ReRank 接入(Cohere)

这个重排模型对中文不是很好,不如 bge 的好用。
Expand All @@ -239,7 +260,7 @@ weight: 708
"reRankModels": [
{
"model": "rerank-multilingual-v2.0", // 这里的model需要对应 cohere 的模型名
"name": "检索重排", // 随意
"name": "rerank-multilingual-v2.0",
"requestUrl": "https://api.cohere.ai/v1/rerank",
"requestAuth": "Coherer上申请的key"
}
Expand Down
Loading

0 comments on commit d55ccc9

Please sign in to comment.