1.1.2 version error: can only export a document to the knowledge base once, error occurs the second time after change knowledge settings #11955

Closed
opened 2026-02-21 19:04:58 -05:00 by yindo · 1 comment
Owner

Originally created by @17738302 on GitHub (Mar 21, 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.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

When importing documents for the first time, the knowledge base can vectorize normally. After modifying the knowledge base retrieval settings, it is not possible to import any documents into the knowledge base again.

Step1:
Create new kb
Step2:
Import doc
Step3:
Set Kb settings and save
Step4:
Chang kb settings and save

Image
Step5:
Import doc then save & process, it feedback an error messages.

Image

1 validation error for KnowledgeConfig retrieval_model.weights.weight_type Field required [type=missing, input_value={'keyword_setting': {'key...ggenius/ollama/ollama'}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.9/v/missing

✔️ Expected Behavior

how can I fix that?

Actual Behavior

Can add new Doc to Knowledge

Originally created by @17738302 on GitHub (Mar 21, 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.2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce When importing documents for the first time, the knowledge base can vectorize normally. After modifying the knowledge base retrieval settings, it is not possible to import any documents into the knowledge base again. Step1: Create new kb Step2: Import doc Step3: Set Kb settings and save Step4: Chang kb settings and save ![Image](https://github.com/user-attachments/assets/076a62e2-56a4-4778-a75d-f9b0ae0e9553) Step5: Import doc then save & process, it feedback an error messages. ![Image](https://github.com/user-attachments/assets/281b7ed3-5122-41f6-b50a-585c53a205e7) 1 validation error for KnowledgeConfig retrieval_model.weights.weight_type Field required [type=missing, input_value={'keyword_setting': {'key...ggenius/ollama/ollama'}}, input_type=dict] For further information visit https://errors.pydantic.dev/2.9/v/missing ### ✔️ Expected Behavior how can I fix that? ### ❌ Actual Behavior Can add new Doc to Knowledge
yindo closed this issue 2026-02-21 19:04:58 -05:00
Author
Owner

@crazywoola commented on GitHub (Mar 21, 2025):

This is a known issue which has been mentioned here https://github.com/langgenius/dify/issues/16411

@crazywoola commented on GitHub (Mar 21, 2025): This is a known issue which has been mentioned here https://github.com/langgenius/dify/issues/16411
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#11955