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: Cell type related minor fix (#1287)
Chandrasekharan M2138d324714a
diff --git a/prompt-service/src/unstract/prompt_service/controllers/answer_prompt.py b/prompt-service/src/unstract/prompt_service/controllers/answer_prompt.pyindex e04202e8a..57a533c4c 100644--- a/prompt-service/src/unstract/prompt_service/controllers/answer_prompt.py+++ b/prompt-service/src/unstract/prompt_service/controllers/answer_prompt.py@@ -65,7 +65,7 @@ def prompt_processor() -> Any:{"tool_id": tool_id, "run_id": run_id, "doc_name": doc_name},LogLevel.DEBUG,RunLevel.RUN,- f"Preparing to execute {len(prompts)} prompt(s)",+ f"Preparing to execute '{len(prompts)}' prompt(s)",)# Rename "output" to "prompt"for output in prompts: # type:ignore@@ -85,10 +85,8 @@ def prompt_processor() -> Any:# line-item, table and record.if execution_source == PSKeys.TOOL:if output[PSKeys.TYPE] == PSKeys.LINE_ITEM:- try:- output[PSKeys.TABLE_SETTINGS]- except KeyError:- output[PSKeys.TYPE] == PSKeys.JSON+ if PSKeys.TABLE_SETTINGS not in output:+ output[PSKeys.TYPE] = PSKeys.JSONif (output[PSKeys.TYPE] == PSKeys.TABLE) or (output[PSKeys.TYPE] == PSKeys.RECORD):@@ -104,7 +102,7 @@ def prompt_processor() -> Any:doc_name=doc_name,)- app.logger.info(f"[{tool_id}] Executing prompt: {prompt_name}")+ app.logger.info(f"[{tool_id}] Executing prompt: '{prompt_name}'")publish_log(log_events_id,{