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.46k stars 4.69k forks source link

外部系统导入知识库文件 #1988

Closed SDAIer closed 3 months ago

SDAIer commented 3 months ago

本地4.8.4

使用开源版,调用知识库接口,将附件导入fast知识库,提示找不到文件

[root@ceshi fastgpt]# curl --location --request POST 'http://172.22.1.39:18080/api/core/dataset/collection/create/localFile' \

--header 'Authorization: Bearer fastgpt-v9hRPgVKnyi8y1fAMLd9htnPtmmWl3YQOCMoO1NPKSRKdQ8JnfSq6V7DYi' \ --form 'file=@"D:\1\test1.docx"' \ --form 'data="{\"datasetId\":\"668b900f25346058ae7227db\",\"parentId\":null,\"trainingType\":\"chunk\",\"chunkSize\":512,\"chunkSplitter\":\"\",\"qaPrompt\":\"\",\"metadata\":{}}"' curl: (26) couldn't open file "D:\1\test1.docx" [root@ceshi fastgpt]#

xy3xy3 commented 3 months ago

你在linux上用windows路径?

SDAIer commented 3 months ago

发错了 请看issue2003