Skip to content

[BUG] chatchat kb -r初始化知识库失败 #5314

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

Open
wukl001 opened this issue Apr 22, 2025 · 1 comment
Open

[BUG] chatchat kb -r初始化知识库失败 #5314

wukl001 opened this issue Apr 22, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@wukl001
Copy link

wukl001 commented Apr 22, 2025

chatchat kb -r初始化知识库失败,报错内容说没开启ollama的11434的端口。我进入model_settings.yaml中删除除了xinfernece的一切配置,再次初始化,报错更离谱了。
2025-04-22 02:45:04.157 | WARNING | chatchat.server.utils:detect_xf_models:109 - error when connect to xinference server(http://:192.168,1.5:9997): Failed to parse: http://:192.168,1.5:9997/v1/cluster/auth

from chatchat.server.knowledge_base.utils import KnowledgeFile

File "/root/anaconda3/envs/langchain/lib/python3.11/site-packages/chatchat/server/knowledge_base/utils.py", line 19, in

from chatchat.server.utils import run_in_process_pool, run_in_thread_pool

File "/root/anaconda3/envs/langchain/lib/python3.11/site-packages/chatchat/server/utils.py", line 220, in

model_name: str = get_default_llm(),

^^^^^^^^^^^^^^^^^

File "/root/anaconda3/envs/langchain/lib/python3.11/site-packages/chatchat/server/utils.py", line 206, in get_default_llm

f"using {available_llms【0】} instead")IndexError: list index out of range

@wukl001 wukl001 added the bug Something isn't working label Apr 22, 2025
@wukl001 wukl001 changed the title [BUG] 简洁阐述问题 / Concise description of the issue [BUG] chatchat kb -r初始化知识库失败 Apr 22, 2025
Copy link

dosubot bot commented Apr 22, 2025

Hello @wukl001! I'm here to help you solve bugs, answer questions, and assist you in becoming a contributor. I'm a bot designed to support you while you wait for a human maintainer. Let’s tackle your issue together!

I found some similar discussions that might be relevant to your issue:

  1. 基于README_dev.md搭建环境,在初始化返回502错误的问题 - This discussion is about initialization errors, which might provide insights into your problem [1].

  2. 启动langchain-chatchat的时候,加载模型阶段出现问题,请大神们帮忙看看问题出在哪里? - This discussion involves issues during the model loading phase, which could be related to your configuration changes [2].

Regarding your specific issue, the error message "IndexError: list index out of range" suggests that the list available_llms is empty when trying to access its first element. This could be due to incorrect or missing configurations in your model_settings.yaml file. Ensure that the file is correctly configured with at least one language model specified under LLM_MODEL_CONFIG and MODEL_PLATFORMS. You might need to verify that the models are correctly set up and available for use [3].

Additionally, the connection error with the Xinference server indicates a possible misconfiguration in the server URL. Double-check the URL format and ensure that the server is running and accessible at the specified address.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

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

1 participant