LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
[FEAT] Rolling window support fo (#1322)
harini-venkataramanc07516ed2c57
diff --git a/prompt-service/src/unstract/prompt_service/controllers/answer_prompt.py b/prompt-service/src/unstract/prompt_service/controllers/answer_prompt.pyindex 8faa7842c..30244c172 100644--- a/prompt-service/src/unstract/prompt_service/controllers/answer_prompt.py+++ b/prompt-service/src/unstract/prompt_service/controllers/answer_prompt.py@@ -178,6 +178,7 @@ def prompt_processor() -> Any:structured_output=structured_output,llm=llm,execution_source=execution_source,+ prompt=prompt_text,)metadata = UsageHelper.query_usage_metadata(token=platform_key, metadata=metadatadiff --git a/prompt-service/src/unstract/prompt_service/services/answer_prompt.py b/prompt-service/src/unstract/prompt_service/services/answer_prompt.pyindex 85f400780..595cdf010 100644--- a/prompt-service/src/unstract/prompt_service/services/answer_prompt.py+++ b/prompt-service/src/unstract/prompt_service/services/answer_prompt.py@@ -191,12 +191,13 @@ class AnswerPromptService:structured_output: dict[str, Any],llm: LLM,execution_source: str,+ prompt: str,) -> dict[str, Any]:table_settings = output[PSKeys.TABLE_SETTINGS]table_extractor: dict[str, Any] = PluginManager().get_plugin("table-extractor")if not table_extractor:raise APIError(- "Unable to extract line-item details. "+ "Unable to extract table details. ""Please contact admin to resolve this issue.")fs_instance: FileStorage = FileStorage(FileStorageProvider.LOCAL)@@ -211,10 +212,11 @@ class AnswerPromptService:env_name=FileStorageKeys.TEMPORARY_REMOTE_STORAGE,)try:- answer = table_extractor["entrypoint_cls"].extract_large_table(+ answer = table_extractor["entrypoint_cls"].run_table_extraction(llm=llm,table_settings=table_settings,fs_instance=fs_instance,+ prompt=prompt,)structured_output[output[PSKeys.NAME]] = answer# We do not support summary and eval for table.