Zhi-guo Huang
Zhi-guo Huang
1. 优化了[FEATURE]#617,增加了api.py的stream_chat_bing接口; 2. 优化了api.py的stream_chat的接口,更改为在请求体中选择knowledge_base_id,从而无需两次指定knowledge_base_id; 3. 在api.py里增加了如何调用stream_chat和steam_chat_bing的方法: 如果想测试websocket的流式问答,需要使用支持websocket的测试工具,如postman,insomnia 强烈推荐开源的insomnia,使用insomnia调用的方式如下: 在测试时选择new websocket request,并将url的协议改为ws,如ws://localhost:7861/local_doc_qa/stream_chat_bing 4. 优化了cli_demo.py的逻辑: 4.1 增加了输入提示; 4.2 支持多个文件输入; 4.3 支持文件输入错误有再次输入,而非直接因报错而退出; 4.4 支持部分文件因路径错误而未加载成功后,可选再次加载。
For some regions and countries, `load_dataset` casually raise ConnectionError, so recursively downloading the dataset would make the project more robust. Presumably, this commit would partly solve the isssue #165