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

知识库问答出处显示None #4031

Open
zixiaotan21 opened this issue May 16, 2024 · 1 comment
Open

知识库问答出处显示None #4031

zixiaotan21 opened this issue May 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@zixiaotan21
Copy link

问题描述 / Problem Description
知识库问答出处显示None

复现问题的步骤 / Steps to Reproduce
知识库问答中,点击知识库匹配结果,出处显示“None”。

点击None 的超链接,显示Internal Server Error。

image image

环境信息 / Environment Information
langchain-ChatGLM 版本/commit 号:v0.2.10
是否使用 Docker 部署(是/否):否
使用的模型(ChatGLM2-6B / Qwen-7B 等):qwen-api
使用的 Embedding 模型(moka-ai/m3e-base 等):bge-large-zh-v1.5
使用的向量库类型 (faiss / milvus / pg_vector 等): faiss
操作系统及版本 / Operating system and version: :Windows-10-10.0.22631-SP0.
Python 版本 / Python version: :3.11.8
其他相关环境信息 / Other relevant environment information:
附加信息 / Additional Information

@zixiaotan21 zixiaotan21 added the bug Something isn't working label May 16, 2024
Copy link

dosubot bot commented May 16, 2024

The issue where the knowledge base answer source displays as "None" and the "Internal Server Error" you're encountering could be due to several factors within the Langchain-ChatGLM application. Here's a focused approach to troubleshoot and potentially resolve these issues:

  1. Check Document Queries: Ensure that the queries you're using can successfully match documents within your knowledge base. If no documents are found, the system might default to showing "None" as the source.

  2. Verify Document Metadata: The "source" key in your document's metadata is crucial. If this key is missing or the value is not correctly formatted, it could result in the source being displayed as "None". Ensure that each document in your knowledge base includes a properly formatted "source" key in its metadata.

  3. Review Application Logs: The "Internal Server Error" suggests a server-side issue. Reviewing the application's logs can provide insights into what's causing this error when attempting to retrieve and display the source of a knowledge base answer. Look for any error messages or exceptions related to this process.

  4. Codebase Examination: For a more in-depth analysis, consider examining specific parts of the codebase that handle the retrieval and display of knowledge base answer sources. Relevant files include knowledge_base_chat.py, basic_config.py.example, and kb_config.py.example within the Langchain-ChatGLM repository.

By following these steps, you should be able to identify and address the root cause of the issues you're experiencing. If you need further assistance or have more questions, feel free to ask.

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

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