Merge branch 'master' into branch-0.2.9

This commit is contained in:
wvivi2023 2024-01-05 09:12:46 +08:00
commit 76c08d4746
6 changed files with 8 additions and 4 deletions

View File

@ -148,7 +148,7 @@ $ python startup.py -a
[![Telegram](https://img.shields.io/badge/Telegram-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white "langchain-chatglm")](https://t.me/+RjliQ3jnJ1YyN2E9) [![Telegram](https://img.shields.io/badge/Telegram-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white "langchain-chatglm")](https://t.me/+RjliQ3jnJ1YyN2E9)
### 项目交流群 ### 项目交流群
<img src="img/qr_code_82.jpg" alt="二维码" width="300" /> <img src="img/qr_code_83.jpg" alt="二维码" width="300" />
🎉 Langchain-Chatchat 项目微信交流群,如果你也对本项目感兴趣,欢迎加入群聊参与讨论交流。 🎉 Langchain-Chatchat 项目微信交流群,如果你也对本项目感兴趣,欢迎加入群聊参与讨论交流。

View File

@ -102,6 +102,10 @@ kbs_config = {
"index_name": "test_index", "index_name": "test_index",
"user": "", "user": "",
"password": "" "password": ""
},
"milvus_kwargs":{
"search_params":{"metric_type": "L2"}, #在此处增加search_params
"index_params":{"metric_type": "L2","index_type": "HNSW"} # 在此处增加index_params
} }
} }

BIN
img/qr_code_83.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB

View File

@ -52,7 +52,7 @@ pysrt~=1.1.2
# Online api libs dependencies # Online api libs dependencies
zhipuai>=1.0.7<=2.0.0 # zhipu zhipuai>=1.0.7, <=2.0.0 # zhipu
dashscope>=1.13.6 # qwen dashscope>=1.13.6 # qwen
# volcengine>=1.0.119 # fangzhou # volcengine>=1.0.119 # fangzhou

View File

@ -52,7 +52,7 @@ pysrt~=1.1.2
# Online api libs dependencies # Online api libs dependencies
zhipuai>=1.0.7<=2.0.0 # zhipu zhipuai>=1.0.7, <=2.0.0 # zhipu
dashscope>=1.13.6 # qwen dashscope>=1.13.6 # qwen
# volcengine>=1.0.119 # fangzhou # volcengine>=1.0.119 # fangzhou

View File

@ -320,7 +320,7 @@ class ApiRequest:
# pprint(data) # pprint(data)
response = self.post("/chat/agent_chat", json=data, stream=True) response = self.post("/chat/agent_chat", json=data, stream=True)
return self._httpx_stream2generator(response) return self._httpx_stream2generator(response, as_json=True)
def knowledge_base_chat( def knowledge_base_chat(
self, self,