create an empty knowledge and empty files, vector collection not created. #1662

Closed
opened 2026-02-21 17:36:20 -05:00 by yindo · 0 comments
Owner

Originally created by @liuzhenghua on GitHub (Mar 29, 2024).

Originally assigned to: @JohnJyong on GitHub.

Self Checks

  • 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).
  • Pleas do not modify this template :) and fill in all the required fields.

Dify version

0.5.10

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

bugs occured after the following steps:

  1. create an empty knowledge.
  2. add an empty file in web page or using create_by_text API, the text remains empty
{
    "name": "demo.txt",
    "text": "",
    "indexing_technique": "high_quality",
    "process_rule": {
        "mode": "automatic"
    }
}
  1. add chunk in web page or using add segments api

✔️ Expected Behavior

the segment should be enabled.
image

Actual Behavior

cause of the collection was not created when you upload an empty file, the chunk you created can't be successs.
image

Originally created by @liuzhenghua on GitHub (Mar 29, 2024). Originally assigned to: @JohnJyong on GitHub. ### Self Checks - [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] Pleas do not modify this template :) and fill in all the required fields. ### Dify version 0.5.10 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce bugs occured after the following steps: 1. create an empty knowledge. 2. add an empty file in web page or using create_by_text API, the text remains empty ``` { "name": "demo.txt", "text": "", "indexing_technique": "high_quality", "process_rule": { "mode": "automatic" } } ``` 3. add chunk in web page or using add segments api ### ✔️ Expected Behavior the segment should be enabled. ![image](https://github.com/langgenius/dify/assets/11787325/6c0ebf5e-88f4-46cf-8adf-b847c6843672) ### ❌ Actual Behavior cause of the collection was not created when you upload an empty file, the chunk you created can't be successs. ![image](https://github.com/langgenius/dify/assets/11787325/d010307f-fb73-44d5-9598-d4c317c56a7e)
yindo added the 🐞 bug label 2026-02-21 17:36:20 -05:00
yindo closed this issue 2026-02-21 17:36:20 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#1662