LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
issue fix in hitl queue and fe issue (#1177)
vishnuszipstack841d698c1d7d
diff --git a/backend/workflow_manager/endpoint_v2/destination.py b/backend/workflow_manager/endpoint_v2/destination.pyindex 2e5573ffd..4105e0912 100644--- a/backend/workflow_manager/endpoint_v2/destination.py+++ b/backend/workflow_manager/endpoint_v2/destination.py@@ -140,6 +140,7 @@ class DestinationConnector(BaseConnector):file_name: str,workflow: Workflow,input_file_path: str,+ file_execution_id: str,) -> None:result = self.get_result()meta_data = self.get_metadata()@@ -149,6 +150,7 @@ class DestinationConnector(BaseConnector):result=result,input_file_path=input_file_path,meta_data=meta_data,+ file_execution_id=file_execution_id,)def handle_output(@@ -159,6 +161,7 @@ class DestinationConnector(BaseConnector):input_file_path: str,error: Optional[str] = None,use_file_history: bool = True,+ file_execution_id: str = None,) -> None:"""Handle the output based on the connection type."""connection_type = self.endpoint.connection_type@@ -181,7 +184,12 @@ class DestinationConnector(BaseConnector):if WorkflowUtil.validate_db_rule(result, workflow, file_hash.file_destination):- self._push_data_to_queue(file_name, workflow, input_file_path)+ self._push_data_to_queue(+ file_name,+ workflow,+ input_file_path,+ file_execution_id,+ )else:self.insert_into_db(input_file_path=input_file_path)elif connection_type == WorkflowEndpoint.ConnectionType.API:@@ -191,7 +199,12 @@ class DestinationConnector(BaseConnector):file_name=file_name, error=error, result=result, metadata=exec_metadata)elif connection_type == WorkflowEndpoint.ConnectionType.MANUALREVIEW:- self._push_data_to_queue(file_name, workflow, input_file_path)+ self._push_data_to_queue(+ file_name,+ workflow,+ input_file_path,+ file_execution_id,+ )if self.execution_service:self.execution_service.publish_log(message=f"File '{file_name}' processed successfully"@@ -551,6 +564,7 @@ class DestinationConnector(BaseConnector):result: Optional[str] = None,input_file_path: Optional[str] = None,meta_data: Optional[dict[str, Any]] = None,+ file_execution_id: str = None,) -> None:"""Handle the Manual Review QUEUE result.@@ -597,7 +611,7 @@ class DestinationConnector(BaseConnector):workflow_id=str(self.workflow_id),file_content=file_content_base64,whisper_hash=whisper_hash,- execution_id=self.execution_id,+ file_execution_id=file_execution_id,).to_dict()# Convert the result dictionary to a JSON stringqueue_result_json = json.dumps(queue_result)diff --git a/backend/workflow_manager/endpoint_v2/queue_utils.py b/backend/workflow_manager/endpoint_v2/queue_utils.pyindex d3687e2d5..2ad715f8a 100644--- a/backend/workflow_manager/endpoint_v2/queue_utils.py+++ b/backend/workflow_manager/endpoint_v2/queue_utils.py@@ -39,7 +39,7 @@ class QueueResult:workflow_id: strfile_content: strwhisper_hash: Optional[str] = None- execution_id: Optional[str] = None+ file_execution_id: Optional[str] = Nonedef to_dict(self) -> Any:return {@@ -49,5 +49,5 @@ class QueueResult:"result": self.result,"workflow_id": self.workflow_id,"file_content": self.file_content,- "execution_id": self.execution_id,+ "file_execution_id": self.file_execution_id,}diff --git a/backend/workflow_manager/workflow_v2/workflow_helper.py b/backend/workflow_manager/workflow_v2/workflow_helper.pyindex e91dc3a64..c6e899637 100644--- a/backend/workflow_manager/workflow_v2/workflow_helper.py+++ b/backend/workflow_manager/workflow_v2/workflow_helper.py@@ -273,6 +273,7 @@ class WorkflowHelper:input_file_path=input_file,error=error,use_file_history=execution_service.use_file_history,+ file_execution_id=file_execution_id,)execution_service.publish_update_log(LogState.SUCCESS,diff --git a/frontend/src/components/agency/ds-settings-card/DsSettingsCard.jsx b/frontend/src/components/agency/ds-settings-card/DsSettingsCard.jsxindex 6435c8703..d41064a6c 100644--- a/frontend/src/components/agency/ds-settings-card/DsSettingsCard.jsx+++ b/frontend/src/components/agency/ds-settings-card/DsSettingsCard.jsx@@ -101,17 +101,6 @@ function DsSettingsCard({ type, endpointDetails, message }) {});};- useEffect(() => {- try {- const inputOption =- require("../../../plugins/dscard-input-options/DsSettingsCardInputOptions").inputOption;- if (inputOption) {- setUpdatedInputoptions(inputOption);- }- } catch {- // The component will remain null of it is not available- }- }, []);useEffect(() => {try {const inputOption =