LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
[FIX] Fixing exporting line-item for new prompts (#1285)
harini-venkataramaneff30e86c21e
diff --git a/backend/prompt_studio/prompt_studio_registry_v2/constants.py b/backend/prompt_studio/prompt_studio_registry_v2/constants.pyindex 49bc1de04..01914e796 100644--- a/backend/prompt_studio/prompt_studio_registry_v2/constants.py+++ b/backend/prompt_studio/prompt_studio_registry_v2/constants.py@@ -11,6 +11,7 @@ class PromptStudioRegistryKeys:UNDEFINED = "undefined"TABLE = "table"RECORD = "record"+ LINE_ITEM = "line-item"class PromptStudioRegistryErrors:diff --git a/backend/prompt_studio/prompt_studio_registry_v2/prompt_studio_registry_helper.py b/backend/prompt_studio/prompt_studio_registry_v2/prompt_studio_registry_helper.pyindex 51e21c375..2787b0978 100644--- a/backend/prompt_studio/prompt_studio_registry_v2/prompt_studio_registry_helper.py+++ b/backend/prompt_studio/prompt_studio_registry_v2/prompt_studio_registry_helper.py@@ -342,10 +342,12 @@ class PromptStudioRegistryHelper:output[JsonSchemaKey.SECTION] = prompt.profile_manager.sectionoutput[JsonSchemaKey.REINDEX] = prompt.profile_manager.reindexoutput[JsonSchemaKey.EMBEDDING_SUFFIX] = embedding_suffix-+ # Retaining the old fields in condition+ # for backward compatibility. To be removed in future.if (prompt.enforce_type == PromptStudioRegistryKeys.TABLEor prompt.enforce_type == PromptStudioRegistryKeys.RECORD+ or prompt.enforce_type == PromptStudioRegistryKeys.LINE_ITEM):for modifier_plugin in modifier_plugins:cls = modifier_plugin[ModifierConfig.METADATA][