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://fastgpt.in
Other
15.58k stars 4.09k forks source link

最大文档字符不超过64? #1980

Closed martin0359 closed 1 week ago

martin0359 commented 1 week ago

例行检查

你的版本

问题描述, 日志截图

复现步骤

预期结果

相关截图 date stream content 2024/07/07 11:47:41 stdout INFO: 172.17.0.1:38408 - "POST /v1/rerank HTTP/1.1" 200 OK 2024/07/07 11:47:41 stderr [ERROR][2024-07-07 03:47:41.928] openapi_requestor.py:258 [t:140683129891712]: api request req_id: as-iy3zuhyrdn failed with error code: 336221, err msg: max number of documents is 64, please check https://cloud.baidu.com/doc/WENXINWORKSHOP/s/tlmyncueh 2024/07/07 11:47:41 stdout api return error, req_id: as-iy3zuhyrdn code: 336221, msg: max number of documents is 64 2024/07/07 11:47:41 stdout 报错: 2024/07/07 11:46:35 stdout INFO: 172.17.0.1:38356 - "POST /v1/rerank HTTP/1.1" 200 OK 2024/07/07 11:46:35 stdout api return error, req_id: as-48ug1xzh5h code: 336221, msg: max number of documents is 64 2024/07/07 11:46:35 stdout 报错: 2024/07/07 11:46:35 stderr [ERROR][2024-07-07 03:46:35.462] openapi_requestor.py:258 [t:140683129891712]: api request req_id: as-48ug1xzh5h failed with error code: 336221, err msg: max number of documents is 64, please check https://cloud.baidu.com/doc/WENXINWORKSHOP/s/tlmyncueh 2024/07/07 11:46:29 stdout INFO: 172.17.0.1:38342 - "GET / HTTP/1.1" 404 Not Found 2024/07/07 11:46:28 stderr INFO: Uvicorn running on http://0.0.0.0:6008/ (Press CTRL+C to quit) 2024/07/07 11:46:28 stderr INFO: Application startup complete. 2024/07/07 11:46:28 stderr INFO: Waiting for application startup. 2024/07/07 11:46:28 stderr INFO: Started server process [1]

goodstudy12 commented 1 week ago

百度那边只接收64个文档,fastgpt这边默认是发送100个文档的。要不就自己写个脚本中转一下,如果超过64个文档就拆掉,只给百度64个

c121914yu commented 1 week ago

考虑自定义脚本里拆分成多次请求