Regarding the Dify knowledge base search, #13652

Closed
opened 2026-02-21 19:13:10 -05:00 by yindo · 2 comments
Owner

Originally created by @lanqy123 on GitHub (May 6, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.1.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Regarding the Dify knowledge base search,, whether it is vector retrieval or hybrid retrieval, the retrieval results are unstable and often fail to retrieve the expected answers.
For instance, when I ask "VA004 verification logic", no relevant slice about VA004 verification logic is retrieved. However, when I ask "VA004 verification logic" with an additional space, the relevant slice about VA004 verification logic is retrieved. The only difference between the two questions is a single space.
Embedding model: bge-m3
Rerank model: bge-reranker-v2-m3
Image

Image

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @lanqy123 on GitHub (May 6, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.1.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Regarding the Dify knowledge base search,, whether it is vector retrieval or hybrid retrieval, the retrieval results are unstable and often fail to retrieve the expected answers. For instance, when I ask "VA004 verification logic", no relevant slice about VA004 verification logic is retrieved. However, when I ask "VA004 verification logic" with an additional space, the relevant slice about VA004 verification logic is retrieved. The only difference between the two questions is a single space. Embedding model: bge-m3 Rerank model: bge-reranker-v2-m3 ![Image](https://github.com/user-attachments/assets/f717e685-50f6-4bb3-a99d-87e420703f84) ![Image](https://github.com/user-attachments/assets/8eafa220-5ed3-4009-807c-82b13b27e881) ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 19:13:10 -05:00
yindo closed this issue 2026-02-21 19:13:10 -05:00
Author
Owner

@lanqy123 commented on GitHub (May 6, 2025):

Image

@lanqy123 commented on GitHub (May 6, 2025): ![Image](https://github.com/user-attachments/assets/ec42fa83-11d0-45c1-b381-9b01a9cd80d1)
Author
Owner

@crazywoola commented on GitHub (May 6, 2025):

Whether or not there is a space can indeed lead to different vector representations. This is expected behavior, as even minor changes in input—such as whitespace—can affect the resulting embeddings.

@crazywoola commented on GitHub (May 6, 2025): Whether or not there is a space can indeed lead to different vector representations. This is expected behavior, as even minor changes in input—such as whitespace—can affect the resulting embeddings.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#13652