ConnectAI-E / DataChat-API

👨‍🌾 基于langchain实现的知识库对话引擎,DataChat的后端核心API接口 A knowledge base dialogue engine based on langchain,
MIT License
15 stars 2 forks source link

往知识库中导入文档格式未text的文档,任务显示成功,但无法在知识库列表中获取 #2

Open Leizhenpeng opened 1 year ago

Leizhenpeng commented 1 year ago

问题复现

curl --location --request POST 'http://47.106.72.199/api/collection/64ae3cda4927ea0019123c93/documents?file=' \
--header 'User-Agent: Apifox/1.0.0 (https://www.apifox.cn)' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer 3c7f2c86-92bb-4df6-8f28-867e80b1ec69' \
--data-raw '{
    "fileType": "text",
    "content": "hello what is ur name"
}'

返回

{
    "code": 0,
    "data": {
        "task_id": "48f5fb87-c268-415e-973b-d79ff4d2d1c1"
    },
    "msg": "success"
}

但是查询知识库中文档列表,始终无法找到

curl --location --request GET 'http://47.106.72.199/api/collection/64ae3cda4927ea0019123c93/documents?page=1&size=10' \
--header 'User-Agent: Apifox/1.0.0 (https://www.apifox.cn)' \
--header 'Authorization: Bearer 3c7f2c86-92bb-4df6-8f28-867e80b1ec69'