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] 简洁阐述问题 PIP部署时出现运行报错 #5188

Open
LQH0220 opened this issue Jan 14, 2025 · 3 comments
Open

[BUG] 简洁阐述问题 PIP部署时出现运行报错 #5188

LQH0220 opened this issue Jan 14, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@LQH0220
Copy link

LQH0220 commented Jan 14, 2025

问题描述 / Problem Description
用简洁明了的语言描述这个问题 / Describe the problem in a clear and concise manner.
按照步骤使用PIP部署,在init和知识库embedding之后,运行start -a指令成功启动了webUI 能够正常使用非启用agent的多功能对话,但是启用agent后 无法打开复选框 ,切换至RAG功能 同样报错
复现问题的步骤 / Steps to Reproduce

  1. 执行 '...' / Run '...'
  2. 点击 '...' / Click '...'
  3. 滚动到 '...' / Scroll to '...'
  4. 问题出现 / Problem occurs
    报错
    报错2

预期的结果 / Expected Result
描述应该出现的结果 / Describe the expected result.
启用agent应该能够选择不同的tool
实际结果 / Actual Result
描述实际发生的结果 / Describe the actual result.
选框出于不可选状态
环境信息 / Environment Information

  • Langchain-Chatchat 版本 / commit 号:(例如:0.3.1 或 commit 123456) / Langchain-Chatchat version / commit number: (e.g., 0.3.1 or commit 123456)
  • 部署方式(pypi 安装 / 源码部署 / docker 部署):pypi 安装 / Deployment method (pypi installation / dev deployment / docker deployment): pypi installation
  • 使用的模型推理框架(Xinference / Ollama / OpenAI API 等):Xinference / Model serve method(Xinference / Ollama / OpenAI API, etc.): Xinference
  • 使用的 LLM 模型(GLM-4-9B / Qwen2-7B-Instruct 等):GLM-4-9B / LLM used (GLM-4-9B / Qwen2-7B-Instruct, etc.): GLM-4-9B
  • 使用的 Embedding 模型(bge-large-zh-v1.5 / m3e-base 等):bge-large-zh-v1.5 / Embedding model used (bge-large-zh-v1.5 / m3e-base, etc.): bge-large-zh-v1.5
  • 使用的向量库类型 (faiss / milvus / pg_vector 等): faiss / Vector library used (faiss, milvus, pg_vector, etc.): faiss
  • 操作系统及版本 / Operating system and version: MacOS
  • Python 版本 / Python version: 3.8
  • 推理使用的硬件(GPU / CPU / MPS / NPU 等) / Inference hardware (GPU / CPU / MPS / NPU, etc.): GPU
  • 其他相关环境信息 / Other relevant environment information:

附加信息 / Additional Information
添加与问题相关的任何其他信息 / Add any other information related to the issue.
在另一台电脑上与2024年12月进行过源码部署 当时是可以运行的

@LQH0220 LQH0220 added the bug Something isn't working label Jan 14, 2025
Copy link

dosubot bot commented Jan 14, 2025

@LQH0220 你好!我是Dosu,一个可以帮助您解决软件错误、回答问题并成为贡献者的机器人。我在等待人类维护者的过程中可以帮助您。

I found a similar discussion regarding a startup error after running python startup.py -a in the Langchain-Chatchat repository. You can view the discussion here [1]. However, it appears to be unsolved.

Regarding the issues you're facing:

  1. TypeError with 'proxies' argument: The Client.__init__() method in the Langchain-Chatchat codebase sets the 'proxies' argument to an empty dictionary if no value is provided. This means that if the 'proxies' argument is not specified during initialization, it defaults to an empty dictionary [2].

  2. AttributeError with api.list_knowledge_bases(): The api.list_knowledge_bases() function is expected to return a list of knowledge bases. If it returns None, it could cause an iteration error. The function should return an empty list if no knowledge bases are available or if the request fails [3].

  3. Agent and RAG functionality: In version 0.3.1.3, the rerank functionality related to RAG cannot be enabled through configuration alone because the rerank-related code is commented out. You would need to modify the source code by uncommenting the reranker implementation to enable this feature [4].

  4. Known issues with Xinference: There is a known issue where Langchain-Chatchat cannot be installed together with Xinference, which may cause some plugins to have bugs. It is recommended to install Langchain-Chatchat in a separate virtual environment to avoid these conflicts [5][6].

These points might help you troubleshoot the issues you're encountering.

To continue talking to Dosu, mention @dosu.


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

@yifeiwang-ep
Copy link

你好我遇到了同样的问题,请问你解决了吗

@yifeiwang-ep
Copy link

你好我遇到了同样的问题,请问你解决了吗

解决:pip install httpx==0.27.2 -U

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

2 participants