Skip to content

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

[FIX] Fixed issue where context is empty (#1211)

Deepak Kd8810cf5627d
diff --git a/prompt-service/src/unstract/prompt_service/main.py b/prompt-service/src/unstract/prompt_service/main.py
index 110887daa..397c75b98 100644
--- a/prompt-service/src/unstract/prompt_service/main.py
+++ b/prompt-service/src/unstract/prompt_service/main.py
@@ -782,6 +782,7 @@ def fetch_context_from_vector_db(
msg,
)
raise APIError(message=msg)
+ context.add(retrieved_context)
except SdkError as e:
msg = f"Unable to fetch context from vector DB. {str(e)}"
app.logger.error(