Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 执行chatchat-config kb --set_default_vs_type milvus 修改配置时报错: unexpected keyword argument 'default_vs_type' #4375

Closed
2345free opened this issue Jul 2, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@2345free
Copy link

2345free commented Jul 2, 2024

问题描述
执行chatchat-config kb --set_default_vs_type milvus 修改配置时报错:
File "/home/develop/miniconda3/envs/langchain-chatchat-0.3.0/lib/python3.11/site-packages/chatchat/config_work_space.py", line 187, in kb
config_kb_workspace.set_default_vs_type(
TypeError: ConfigKbWorkSpace.set_default_vs_type() got an unexpected keyword argument 'default_vs_type'

环境信息

  • langchain-ChatGLM 版本:0.3.0
  • 是否使用 Docker 部署:否
  • 使用的模型: Qwen2-7B-Instruct
  • 使用的 Embedding 模型:bge-large-zh-v1.5
  • 使用的向量库类型: faiss
  • 操作系统及版本: Ubuntu24.04
  • Python 版本: conda python3.11
@2345free 2345free added the bug Something isn't working label Jul 2, 2024
@jiusi9
Copy link

jiusi9 commented Jul 3, 2024

遇到了同样的问题

@fosfree
Copy link

fosfree commented Jul 9, 2024

改源码~
venv\LangChain03Demo\Lib\site-packages\chatchat\configs_kb_config.py文件280行(左右)
修改前:
def set_default_vs_type(self, vs_type: str):
self._config_factory.DEFAULT_VS_TYPE = vs_type
self.store_config()
修改后:
def set_default_vs_type(self, default_vs_type: str):
self._config_factory.DEFAULT_VS_TYPE = default_vs_type
self.store_config()

@liunux4odoo
Copy link
Collaborator

0.3.1 版已经发布,优化了配置方式,修改配置项无需重启服务器,可以更新尝试。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants