Knowledge base ingestion seems to saturate OpenAI API #11472

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

Originally created by @benjamin-mogensen on GitHub (Mar 17, 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

0.15.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

We are facing issues when creating knowledge bases via UI when we are using Excel spreadsheets as input. E.g. a 3.4mb sheet with about 3500 rows will take 3-4 hours after which it fails. The error is related to calling the embedding API outside Dify in OpenAI, have attached some screenshots.

If we run a script and use the knowledge API instead, parsing each row and sending for embedding it works fine - the OpenAI API does not seem to be "overloaded" that way. I am wondering if it is the way that Dify via UI handles the file as one large piece of data?

Image Image

Steps:

  1. create a new knowledge
    Upload excel with max chunk size 3000 and chunk overlap 100
    Add delimiter /n and add in chunk setting.
    Index method :High quality
    Hybrid search and click Process
    After some chunks it fails with the error attached

✔️ Expected Behavior

That the whole document would be processed successfully.

Actual Behavior

Embedding fails done from UI (but we are able to do row by row via knowledge API)

Originally created by @benjamin-mogensen on GitHub (Mar 17, 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 0.15.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce We are facing issues when creating knowledge bases via UI when we are using Excel spreadsheets as input. E.g. a 3.4mb sheet with about 3500 rows will take 3-4 hours after which it fails. The error is related to calling the embedding API outside Dify in OpenAI, have attached some screenshots. If we run a script and use the knowledge API instead, parsing each row and sending for embedding it works fine - the OpenAI API does not seem to be "overloaded" that way. I am wondering if it is the way that Dify via UI handles the file as one large piece of data? <img width="442" alt="Image" src="https://github.com/user-attachments/assets/c2e3cb57-e07d-4b8a-93b3-fb2083e5afb0" /> <img width="2310" alt="Image" src="https://github.com/user-attachments/assets/2f022647-f0f2-45dc-9f93-bf68e1c13f85" /> Steps: 1. create a new knowledge Upload excel with max chunk size 3000 and chunk overlap 100 Add delimiter /n and add in chunk setting. Index method :High quality Hybrid search and click Process After some chunks it fails with the error attached ### ✔️ Expected Behavior That the whole document would be processed successfully. ### ❌ Actual Behavior Embedding fails done from UI (but we are able to do row by row via knowledge API)
yindo added the 🐞 bug label 2026-02-21 19:00:08 -05:00
yindo closed this issue 2026-02-21 19:00:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#11472