LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
updated jsondump with jsondump method from filestorage (#859)
ali78ae55ea5189
diff --git a/unstract/workflow-execution/src/unstract/workflow_execution/execution_file_handler.py b/unstract/workflow-execution/src/unstract/workflow_execution/execution_file_handler.pyindex 84af11a47..74d0efd3d 100644--- a/unstract/workflow-execution/src/unstract/workflow_execution/execution_file_handler.py+++ b/unstract/workflow-execution/src/unstract/workflow_execution/execution_file_handler.py@@ -131,7 +131,7 @@ class ExecutionFileHandler:if check_feature_flag_status(FeatureFlag.REMOTE_FILE_STORAGE):file_system = FileSystem(FileStorageType.WORKFLOW_EXECUTION)file_storage = file_system.get_file_storage()- file_storage.write(path=metadata_path, mode="w", data=json.dumps(content))+ file_storage.json_dump(path=metadata_path, data=content)else:with fsspec.open(f"file://{metadata_path}", "w") as local_file:json.dump(content, local_file)