Skip to content

Graph-Native Infrastructure for Context and Accountable AI Systems

fix: Secure error handling in explainable_retrieval() method

KaifAhmad107d9193719a6
diff --git a/semantica/context/context_retriever.py b/semantica/context/context_retriever.py
index f9af1e3b..c1131f7d 100644
--- a/semantica/context/context_retriever.py
+++ b/semantica/context/context_retriever.py
@@ -2323,7 +2323,7 @@ Answer:"""
except Exception as e:
self.logger.error(f"Failed explainable retrieval: {e}")
- return {"error": str(e)}
+ return {"error": "An error occurred during explainable retrieval. Please check the logs for details."}
def dynamic_context_traversal(
self,