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] Line item extraction file read fix (#1143)
Deepak Ka588297cafba
diff --git a/prompt-service/src/unstract/prompt_service/helper.py b/prompt-service/src/unstract/prompt_service/helper.pyindex b1f4d70c5..cb70f9f50 100644--- a/prompt-service/src/unstract/prompt_service/helper.py+++ b/prompt-service/src/unstract/prompt_service/helper.py@@ -427,7 +427,7 @@ def extract_line_item(raise FileNotFoundError(f"The file at path '{extract_file_path}' does not exist.")- context = fs_instance.read(path=extract_file_path, encoding="utf-8", mode="rb")+ context = fs_instance.read(path=extract_file_path, encoding="utf-8", mode="r")prompt = construct_prompt(preamble=tool_settings.get(PSKeys.PREAMBLE, ""),