You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
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.
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.
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.
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.
问题描述 / Problem Description
知识库问答出处显示None
复现问题的步骤 / Steps to Reproduce
知识库问答中,点击知识库匹配结果,出处显示“None”。
点击None 的超链接,显示Internal Server Error。
环境信息 / 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
The text was updated successfully, but these errors were encountered: