Knoewledge batch add chunk function is not woking in QA mode and Chunk Settings report error when editing. #12034

Closed
opened 2026-02-21 19:05:24 -05:00 by yindo · 4 comments
Owner

Originally created by @szkane on GitHub (Mar 24, 2025).

Originally assigned to: @WTW0313 on GitHub.

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.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I redeployed a new dify 1.12 docker, and during the process of creating the knowledge base, I found that two features were not working properly, which prevented me from deploying down.
我重新部署了一个新的dify 1.12 docker,在创建知识库过程中,发现两个功能工作不正常,导致无法往下部署。

Bug1: batch add chunk function is not workding

STEP1. import empty.txt file and use Q&A format, then save.

Image

STEP2. Click batch add and there is no response.

Image

0.15.3 version could show a Q&A file upload window.

Bug2: update Chunk Settings get error 400, error code below:

{
    "code": "invalid_param",
    "message": "1 validation error for KnowledgeConfig\nretrieval_model.weights.weight_type\n  Field required [type=missing, input_value={'keyword_setting': {'key...ing_provider_name': ''}}, input_type=dict]\n    For further information visit https://errors.pydantic.dev/2.9/v/missing",
    "status": 400
}

✔️ Expected Behavior

  1. batch add Q&A file via csv
  2. could be update when modify chunk setting

Actual Behavior

No response

Originally created by @szkane on GitHub (Mar 24, 2025). Originally assigned to: @WTW0313 on GitHub. ### 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.2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce > I redeployed a new dify 1.12 docker, and during the process of creating the knowledge base, I found that two features were not working properly, which prevented me from deploying down. > 我重新部署了一个新的dify 1.12 docker,在创建知识库过程中,发现两个功能工作不正常,导致无法往下部署。 ## Bug1: batch add chunk function is not workding STEP1. import empty.txt file and use Q&A format, then save. ![Image](https://github.com/user-attachments/assets/76a2fd16-5719-4527-a02c-090762a999a6) STEP2. Click batch add and there is no response. ![Image](https://github.com/user-attachments/assets/93449f72-716e-4e29-a01d-525e2ce0a670) 0.15.3 version could show a Q&A file upload window. ## Bug2: update Chunk Settings get error 400, error code below: ``` { "code": "invalid_param", "message": "1 validation error for KnowledgeConfig\nretrieval_model.weights.weight_type\n Field required [type=missing, input_value={'keyword_setting': {'key...ing_provider_name': ''}}, input_type=dict]\n For further information visit https://errors.pydantic.dev/2.9/v/missing", "status": 400 } ``` ### ✔️ Expected Behavior 1. batch add Q&A file via csv 2. could be update when modify chunk setting ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 19:05:24 -05:00
yindo closed this issue 2026-02-21 19:05:24 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 24, 2025):

The issues you're experiencing with the "batch add chunk" function not working in QA mode and the 400 error when updating Chunk Settings in Dify version 1.1.2 are due to a known bug in this version. The error message indicates a missing field required for the KnowledgeConfig, specifically retrieval_model.weights.weight_type. This issue occurs when uploading a second document to the knowledge base in versions 1.1.1 and 1.1.2, regardless of the file type.

This bug has been addressed in PR #16503 and will be fixed in the next version release. In the meantime, you can either wait for the update or revert to Dify version 1.1.0, where this issue does not occur [1][2].

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] commented on GitHub (Mar 24, 2025): <!-- Answer --> The issues you're experiencing with the "batch add chunk" function not working in QA mode and the 400 error when updating Chunk Settings in Dify version 1.1.2 are due to a known bug in this version. The error message indicates a missing field required for the `KnowledgeConfig`, specifically `retrieval_model.weights.weight_type`. This issue occurs when uploading a second document to the knowledge base in versions 1.1.1 and 1.1.2, regardless of the file type. This bug has been addressed in PR #16503 and will be fixed in the next version release. In the meantime, you can either wait for the update or revert to Dify version 1.1.0, where this issue does not occur <sup>[[1]](https://github.com/langgenius/dify/issues/16591)</sup><sup>[[2]](https://github.com/langgenius/dify/issues/16520)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/f7b4cb90-3790-4b9a-9b54-7262bf7913de?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/f7b4cb90-3790-4b9a-9b54-7262bf7913de?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/f7b4cb90-3790-4b9a-9b54-7262bf7913de?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/f7b4cb90-3790-4b9a-9b54-7262bf7913de?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/f7b4cb90-3790-4b9a-9b54-7262bf7913de?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/f7b4cb90-3790-4b9a-9b54-7262bf7913de?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/f7b4cb90-3790-4b9a-9b54-7262bf7913de?feedback_type=other)</sup>
Author
Owner
@crazywoola commented on GitHub (Mar 24, 2025): See https://github.com/langgenius/dify/issues/16609 Fixed in https://github.com/langgenius/dify/pull/16503 Duplicated - https://github.com/langgenius/dify/issues/16592 - https://github.com/langgenius/dify/issues/16591 - https://github.com/langgenius/dify/issues/16589 - https://github.com/langgenius/dify/issues/16411 - https://github.com/langgenius/dify/issues/16142
Author
Owner

@xuegao-tzx commented on GitHub (Mar 24, 2025):

Not fixed, still has issues in 1.1.3

Image Image
@xuegao-tzx commented on GitHub (Mar 24, 2025): Not fixed, still has issues in 1.1.3 <img width="369" alt="Image" src="https://github.com/user-attachments/assets/8fe7372c-a4d8-4d3b-90ec-da412ed2c7cc" /> <img width="495" alt="Image" src="https://github.com/user-attachments/assets/c6aa0460-91dd-46f9-b9d1-890269ffd503" />
Author
Owner

@WTW0313 commented on GitHub (Mar 24, 2025):

Bug2 should be fixed in version 1.1.3. Bug1 will be fixed soon.

@WTW0313 commented on GitHub (Mar 24, 2025): Bug2 should be fixed in version 1.1.3. Bug1 will be fixed soon.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#12034