labring / FastGPT

FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, and visual AI workflow orchestration, letting you easily develop and deploy complex question-answering systems without the need for extensive setup or configuration.
https://tryfastgpt.ai
Other
17.45k stars 4.69k forks source link

接入rerank模型知识库检索调用重排时报错 object of type 'NoneType' has no len() INFO: 172.17.0.1:36218 - "POST /v1/rerank HTTP/1.1" 200 OK #2881

Closed MusicOfWind closed 5 days ago

MusicOfWind commented 1 week ago

fastgpt 版本:v4.6.7 rerank 版本:官网的 docker 镜像 registry.cn-hangzhou.aliyunccs.com/fastgpt/bge-rerank-base:v0.1 linux 使用 curl 测试能正常得到结果: curl -X 'POST' \ 'http://192.168.50.63:6006/v1/rerank' \ -H 'Authorization: Bearer sk-aaaabbbcccdddeeeefffggghhhiiijjjkkkk' \ -H 'Content-Type: application/json' \ --data '{ "query": "who are you", "documents": ["I want to go to sleep", "I am Bob", "Today is Friday"] }' config.json 该部分配置: "reRankModels": [ { "model": "bge-reranker-base", "name": "reranker", "charsPointsPrice": 0, "requestUrl": "http://192.168.50.63:6006/v1/rerank", "requestAuth": "sk-aaaabbbcccdddeeeefffggghhhiiijjjkkkk" } ] 知识库使用重排时前端都显示正常,但是查看 rerank 容器 log 有报错: object of type 'NoneType' has no len() INFO: 172.17.0.1:36218 - "POST /v1/rerank HTTP/1.1" 200 OK

c121914yu commented 5 days ago

v4.6.7 无法使用registry.cn-hangzhou.aliyunccs.com/fastgpt/bge-rerank-base 镜像,可以翻下文档变更记录,有个个人的镜像。ruanshaotong/xxx 好像