ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Question]: Why can't the chat find the content in the knowledge base?

Open BogenZ opened this issue 9 months ago • 7 comments

Self Checks

  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (Language Policy).
  • [x] Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
  • [x] Please do not modify this template :) and fill in all the required fields.

Describe your problem

The knowledge base retrieval test can find the content, but the chat cannot find the content when entering the same question.

Image

Image

Image

BogenZ avatar Mar 28 '25 08:03 BogenZ

Hello, @BogenZ! I'm here to help you with bugs, questions, and more while you wait for a human maintainer. Let's tackle this issue together!

I found a similar open issue where the knowledge base retrieval test was successful, but the chat interface failed to find the content using the same query. The suggested solutions for similar issues include:

  1. Disabling self-RAG, which is deprecated in the latest version.
  2. Switching to other large language models (LLMs) if the current one has limitations in answering retrieved chunks [1].

Additionally, there are key differences in the retrieval process between the knowledge base search test and the chat interface in RagFlow. The AI search uses a single-turn conversation with a predefined retrieval strategy, while the AI chat supports multi-turn conversations and allows for more advanced retrieval strategies, which might affect the retrieval outcomes [2][3].

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

dosubot[bot] avatar Mar 28 '25 08:03 dosubot[bot]

I have the same issue. Both search and agent window can retrieve content from the knowledge base, but in the chat window, no matter what question I input, {knowledge} always returns an empty value. So I think it's not a problem about LLMs.

ffbum avatar Mar 28 '25 13:03 ffbum

You could click the little lamp to see wether it's been retrieved? If it is, it goes to LLM.

Image

KevinHuSh avatar Mar 31 '25 02:03 KevinHuSh

Image

BogenZ avatar Mar 31 '25 03:03 BogenZ

@BogenZ Did you apply Table as chunking method?

KevinHuSh avatar Mar 31 '25 07:03 KevinHuSh

The knowledge base uses General, and the files use Q&A and General respectively.

Image

Image

BogenZ avatar Apr 01 '25 00:04 BogenZ

@BogenZ Have you solved it? I have the same problem. What version are you using? Mine is v0.17.2-208-g31296ad7 full. The previous v0.17.2 worked fine, but after the upgrade, it stopped working. Even when I switched back, it still didn't work. I don't know what's going on.

myplxdm avatar Apr 02 '25 07:04 myplxdm