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
47.43k stars 6.76k forks source link

workflow 批量执行报错:“第2行:对话值超过最大长度48”。但是单个运行就不会报错 #3969

Closed yang605222 closed 5 months ago

yang605222 commented 5 months ago

Self Checks

Dify version

0.6

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

workflow 批量执行报错:在上传csv文件后,执行报错“第2行:对话值超过最大长度48”。但是单个运行就不会报错

✔️ Expected Behavior

期望可以执行csv文件中的数据

❌ Actual Behavior

报错“第2行:对话值超过最大长度48”

dosubot[bot] commented 5 months ago

To address the error "第2行:对话值超过最大长度48" during batch execution in your self-hosted Dify setup, consider the following steps:

  1. Review Dify Configuration: Look for settings related to batch processing or input size limits in Dify's configuration files. Key settings to check include WEAVIATE_BATCH_SIZE, UPLOAD_FILE_SIZE_LIMIT, UPLOAD_FILE_BATCH_LIMIT, UPLOAD_IMAGE_FILE_SIZE_LIMIT, and BATCH_UPLOAD_LIMIT. Adjust these settings if they are set to values that might restrict the size of inputs you're working with.

  2. Adjust Workflow Design: Ensure your batch workflows are designed to handle inputs without exceeding size limits. This might involve modifying how data is aggregated or processed in batches.

  3. Check Service Limits: Verify that none of the services Dify relies on (like databases or caches) have configuration limits that could affect batch processing. Adjust these service configurations if necessary to accommodate larger batch sizes or input lengths.

  4. Consult Dify Documentation and Support: If the above steps do not resolve the issue, refer to Dify's official documentation or contact their support for specific guidance on handling batch input size limits.

These steps should help you resolve the issue with batch execution errors related to input size limits.

#### Details **Sources** - [docker/docker-compose.middleware.yaml](https://github.com/langgenius/dify/blob/main/docker/docker-compose.middleware.yaml) - [api/config.py](https://github.com/langgenius/dify/blob/main/api/config.py) - [api/.env.example](https://github.com/langgenius/dify/blob/main/api/.env.example) - [web/app/components/share/text-generation/index.tsx](https://github.com/langgenius/dify/blob/main/web/app/components/share/text-generation/index.tsx) - [docker/docker-compose.yaml](https://github.com/langgenius/dify/blob/main/docker/docker-compose.yaml) - [en/getting-started/install-self-hosted/environments.md](https://github.com/langgenius/dify-docs/blob/main/en/getting-started/install-self-hosted/environments.md) - [web/config/index.ts](https://github.com/langgenius/dify/blob/main/web/config/index.ts) - [en/features/datasets/README.md](https://github.com/langgenius/dify-docs/blob/main/en/features/datasets/README.md) - [web/app/components/share/text-generation/run-batch/csv-reader/index.tsx](https://github.com/langgenius/dify/blob/main/web/app/components/share/text-generation/run-batch/csv-reader/index.tsx) - [web/app/components/datasets/documents/detail/batch-modal/csv-downloader.tsx](https://github.com/langgenius/dify/blob/main/web/app/components/datasets/documents/detail/batch-modal/csv-downloader.tsx) - [web/app/components/app/annotation/batch-add-annotation-modal/index.tsx](https://github.com/langgenius/dify/blob/main/web/app/components/app/annotation/batch-add-annotation-modal/index.tsx) - [web/i18n/zh-Hans/app-debug.ts](https://github.com/langgenius/dify/blob/main/web/i18n/zh-Hans/app-debug.ts) - [api/core/model_runtime/model_providers/yi/llm/yi-34b-chat-200k.yaml](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/model_providers/yi/llm/yi-34b-chat-200k.yaml) - [sdks/php-client/dify-client.php](https://github.com/langgenius/dify/blob/main/sdks/php-client/dify-client.php)
**About Dosu** This response is meant to be useful and save you time. It is **not meant to be a precise solution**, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.