LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
UN-4069 [FIX] Raise prompt_output upload limit to 50 MB for dense table highlights (#2333)
harini-venkataraman51067c077dc6
diff --git a/backend/prompt_studio/prompt_studio_core_v2/internal_views.py b/backend/prompt_studio/prompt_studio_core_v2/internal_views.pyindex 3fcdba182..9463dd2b0 100644--- a/backend/prompt_studio/prompt_studio_core_v2/internal_views.py+++ b/backend/prompt_studio/prompt_studio_core_v2/internal_views.py@@ -20,9 +20,10 @@ from django.views.decorators.csrf import csrf_exemptfrom django.views.decorators.http import require_http_methodsfrom rest_framework import status-# 10 MB — agentic table extraction output with highlight coordinates+# 50 MB — agentic table extraction output with highlight coordinates# can exceed Django's default 2.5 MB DATA_UPLOAD_MAX_MEMORY_SIZE.-_PROMPT_OUTPUT_MAX_BODY = 10 * 1024 * 1024+# Dense tables (1000+ rows with per-cell coordinates) can reach 10-20 MB.+_PROMPT_OUTPUT_MAX_BODY = 50 * 1024 * 1024logger = logging.getLogger(__name__)@@ -134,7 +135,7 @@ def prompt_output(request):Uses ``request.read()`` instead of ``request.body`` to bypassDjango's ``DATA_UPLOAD_MAX_MEMORY_SIZE`` check. Agentic tableextraction output with highlight coordinates can exceed the default- 2.5 MB limit; this view enforces its own 10 MB cap instead.+ 2.5 MB limit; this view enforces its own 50 MB cap instead."""content_length = int(request.META.get("CONTENT_LENGTH") or 0)if content_length > _PROMPT_OUTPUT_MAX_BODY: