hit-testing gets duplicated chunks #18277

Closed
opened 2026-02-21 19:45:42 -05:00 by yindo · 0 comments
Owner

Originally created by @fish404 on GitHub (Sep 26, 2025).

Originally assigned to: @JohnJyong on GitHub.

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • 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, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.9.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Create a Knowledge Base
    A new knowledge base has been successfully created, named "Test Knowledge Base" (default system name, editable later).

  2. Add a Chunk
    Title: Download Link
    Content: The download link is http://www.google.com
    This chunk has been successfully added and saved to the knowledge base.

  3. Recall Test (Hybrid Retrieval with Weighted Mode)
    Retrieval Mode: Hybrid retrieval (combining keyword-based and semantic retrieval)
    Weight Settings: Semantic weight = 0.7, Keyword weight = 0.3
    Query Input: download

✔️ Expected Behavior

uniqe one chunk ,

Actual Behavior

get two chunkds , duplicated

{
"segment": {
"id": "4e93fe50-7be9-4354-9c9f-8830d38fede5",
"position": 1,
"document_id": "34aac853-16d2-4921-908b-81d0107b1432",
.......
},
"child_chunks": null,
"score": 0.4820114181465313,
"tsne_position": null
}
{
"segment": {
"id": "4e93fe50-7be9-4354-9c9f-8830d38fede5",
"position": 1,
"document_id": "34aac853-16d2-4921-908b-81d0107b1432",
.......
},
"child_chunks": null,
"score": 0.48201135215330954,
"tsne_position": null
}

Originally created by @fish404 on GitHub (Sep 26, 2025). Originally assigned to: @JohnJyong on GitHub. ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [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, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.9.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 1. Create a Knowledge Base ✅ A new knowledge base has been successfully created, named "Test Knowledge Base" (default system name, editable later). 2. Add a Chunk Title: Download Link Content: The download link is http://www.google.com ✅ This chunk has been successfully added and saved to the knowledge base. 3. Recall Test (Hybrid Retrieval with Weighted Mode) Retrieval Mode: Hybrid retrieval (combining keyword-based and semantic retrieval) Weight Settings: Semantic weight = 0.7, Keyword weight = 0.3 Query Input: download ### ✔️ Expected Behavior uniqe one chunk , ### ❌ Actual Behavior get two chunkds , duplicated { "segment": { "id": "4e93fe50-7be9-4354-9c9f-8830d38fede5", "position": 1, "document_id": "34aac853-16d2-4921-908b-81d0107b1432", ....... }, "child_chunks": null, "score": 0.4820114181465313, "tsne_position": null } { "segment": { "id": "4e93fe50-7be9-4354-9c9f-8830d38fede5", "position": 1, "document_id": "34aac853-16d2-4921-908b-81d0107b1432", ....... }, "child_chunks": null, "score": 0.48201135215330954, "tsne_position": null }
yindo added the 🐞 bugKnowledge Pipeline labels 2026-02-21 19:45:42 -05:00
yindo closed this issue 2026-02-21 19:45:42 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#18277