Dify Knowledge Base Test issues when building bot assistants #21537
Replies: 1 comment
-
Hi @mianmianbing-design! I'm Dosu and I’m helping the dify team. Here are some common reasons why your uploaded documents might not be matching during recall in Dify:
To improve keyword identification and retrieval accuracy, enable keyword search in your retrieval model settings (recent updates added explicit support for this), and consider adding metadata to your documents for more precise filtering (source). Adjust chunk sizes and overlaps to ensure important keywords aren’t split across chunks. For best results: review your segmentation and retrieval settings, use metadata filtering, and validate your model configurations. If you’re still not seeing matches, try uploading a small test document and querying for an exact phrase to confirm the pipeline is working end-to-end. If you need more specific help, sharing your chunking settings and a sample document would help narrow things down. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
Content
I used the Dify knowledge base to design a process. My goal is to create a robot assistant that can answer questions based on the knowledge base. I designed a workflow where the user inputs a question, and the LLM first interprets it using the chat model, then searches through the knowledge base documents, and finally provides an answer to the user via the same chat model. Additionally, I configured the knowledge base recall settings to use the rerank model BGE-Reranker-v2-m3 along with the embedding model, both of which are deployed locally. I also set the document segmentation mode to parent-child.
However, I encountered some issues during testing:
Thank you very much for taking the time to read through my questions. As someone who is just starting out, I truly appreciate any guidance or suggestions you may have.
Beta Was this translation helpful? Give feedback.
All reactions