langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
46.67k stars 6.59k forks source link

[Cloud] You have reached the batch upload limit of 20 #5532

Closed davidphamle closed 2 months ago

davidphamle commented 3 months ago

Self Checks

Dify version

0.6.11

Cloud or Self Hosted

Cloud

Steps to reproduce

  1. Click on Knowledge
  2. Click on a Knowledge Base connecting to Notion
  3. Click Add Page
  4. Select a few checkboxes (total of uploaded page + newly selected page > 20)
  5. Click on Save

✔️ Expected Behavior

❌ Actual Behavior

dosubot[bot] commented 3 months ago

To resolve the issue of encountering a "You have reached the batch upload limit of 20" error when adding pages to a Knowledge Base connected to Notion in Dify version 0.6.11 on the Cloud platform, you need to ensure that you are not exceeding the batch upload limit. The error message indicates that the maximum number of pages you can upload in a single batch is 20, as defined in the configuration.

Here is the relevant part of the configuration that defines this limit:

batch_upload_limit = int(current_app.config['BATCH_UPLOAD_LIMIT'])
if count > batch_upload_limit:
    raise ValueError(f"You have reached the batch upload limit of {batch_upload_limit}.")

To avoid this error, you should:

  1. Ensure that you are uploading no more than 20 pages at a time.
  2. If you need to upload more than 20 pages, split the pages into multiple batches, each containing 20 pages or fewer.

By following these steps, you can successfully add pages to your Knowledge Base without encountering the batch upload limit error [1].

To continue talking to Dosu, mention @dosu.

crazywoola commented 3 months ago

Please upgrade your account to Pro or team to upload more documents.

davidphamle commented 3 months ago

Dear @crazywoola,

I am a Pro customer and I got this issue. Do you actually review the issue????

crazywoola commented 3 months ago

image I think it's because the error message is overlapping the account type badge. :)