From 36c72314e90ae94c5f93bee01bb391666713c6f7 Mon Sep 17 00:00:00 2001 From: Sven Seeberg Date: Thu, 2 Jan 2025 17:43:17 +0100 Subject: [PATCH] Remove sources in answer response --- integreat_chat/chatanswers/utils/rag_response.py | 1 - 1 file changed, 1 deletion(-) diff --git a/integreat_chat/chatanswers/utils/rag_response.py b/integreat_chat/chatanswers/utils/rag_response.py index 6fe89eb..1e84b99 100644 --- a/integreat_chat/chatanswers/utils/rag_response.py +++ b/integreat_chat/chatanswers/utils/rag_response.py @@ -58,7 +58,6 @@ def as_dict(self): "rag_language": self.request.use_language, "rag_message": self.request.translated_message, "rag_sources": [document.chunk_source_path for document in self.documents], - "sources": [], # legacy hack to not break the Integreat CMS. Can be removed later. "details": [{ "source": document.chunk_source_path, "score": document.score,