Langchain-Chatchat
Langchain-Chatchat copied to clipboard
使用流式输出的时候,curl调用的格式是什么?
app.websocket("/local_doc_qa/stream-chat/{knowledge_base_id}")(stream_chat)中的knowledge_base_id应该填什么???
curl -X 'POST'
'http://127.0.0.1:8000/local_doc_qa/stream-chat/{knowledge_base_id'
-H 'accept: application/json'
-H 'Content-Type: application/json'
-d '{
"knowledge_base_id": "aaaaaaaaaaaaaaaaaaa",
"question": "卡塔尔世界杯冠军是谁",
"history": []
}'
填本地知识库名称
cristianohello @.***>于2023年6月2日 周五18:48写道:
app.websocket("/local_doc_qa/stream-chat/{knowledge_base_id}")(stream_chat)中的knowledge_base_id应该填什么???
curl -X 'POST' 'http://127.0.0.1:8000/local_doc_qa/stream-chat/{knowledge_base_id' -H 'accept: application/json' -H 'Content-Type: application/json' -d '{ "knowledge_base_id": "aaaaaaaaaaaaaaaaaaa", "question": "卡塔尔世界杯冠军是谁", "history": [] }'
— Reply to this email directly, view it on GitHub https://github.com/imClumsyPanda/langchain-ChatGLM/issues/536, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLH5ETKBFAB6DLB32MCFB3XJHAHLANCNFSM6AAAAAAYYEXLFA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
@imClumsyPanda 这个本地知识库名称指的是txt文件名称吧?还是txt转为faiss向量后的文件名称?
@cristianohello 向量库名称,目前默认选用faiss所以对应vector_store路径下文件夹
@imClumsyPanda
比如我本地vector_store有个baoxian_FAISS_20230602_172352向量文件夹。是这样调用吗?
curl -X 'POST'
'http://127.0.0.1:8000/local_doc_qa/stream-chat/baoxian_FAISS_20230602_172352'
-H 'accept: application/json'
-H 'Content-Type: application/json'
-d '{
"knowledge_base_id": "baoxian_FAISS_20230602_172352",
"question": "卡塔尔世界杯冠军是谁",
"history": []
}'
@imClumsyPanda 这样调用会报错