Skip to content

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

fix: Avoid logging user context (#1328)

Chandrasekharan M6e7f61f394ae
diff --git a/prompt-service/src/unstract/prompt_service/core/retrievers/simple.py b/prompt-service/src/unstract/prompt_service/core/retrievers/simple.py
index 57a243752..d2a850330 100644
--- a/prompt-service/src/unstract/prompt_service/core/retrievers/simple.py
+++ b/prompt-service/src/unstract/prompt_service/core/retrievers/simple.py
@@ -9,8 +9,10 @@ from unstract.prompt_service.core.retrievers.base_retriever import BaseRetriever
class SimpleRetriever(BaseRetriever):
def retrieve(self) -> set[str]:
+ app.logger.info(
+ f"Retrieving context for prompt: {self.prompt} with doc_id: {self.doc_id}"
+ )
context = self._simple_retrieval()
- app.logger.info(f"context {context}")
if not context:
# UN-1288 For Pinecone, we are seeing an inconsistent case where
# query with doc_id fails even though indexing just happened.