Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

UN-2444 [FIX] Adding metadata key to Rent rolls response (#1404)

harini-venkataraman18ab0f5b0d4d
diff --git a/prompt-service/src/unstract/prompt_service/controllers/answer_prompt.py b/prompt-service/src/unstract/prompt_service/controllers/answer_prompt.py
index fa0854429..3e8ad369b 100644
--- a/prompt-service/src/unstract/prompt_service/controllers/answer_prompt.py
+++ b/prompt-service/src/unstract/prompt_service/controllers/answer_prompt.py
@@ -229,6 +229,8 @@ def prompt_processor() -> Any:
# TODO: Add metadata
response = {
PSKeys.OUTPUT: extraction_result,
+ PSKeys.METADATA: {},
+ PSKeys.METRICS: {},
}
app.logger.info("Rent roll extraction completed successfully")
return response