From 24e0805f505889a60002eafb75d9e9ea135529e5 Mon Sep 17 00:00:00 2001 From: hajdul88 <52442977+hajdul88@users.noreply.github.com> Date: Tue, 18 Mar 2025 11:17:23 +0100 Subject: [PATCH] =?UTF-8?q?chore:=20deletes=20error=20log=20when=20there?= =?UTF-8?q?=20is=20no=20collection.=20Using=20dynamic=20c=E2=80=A6=20(#651?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …ollection handling its not an error ## Description Deletes error logging from ChromaDB adapter ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin ## Summary by CodeRabbit - **Refactor** - Updated internal error handling to ensure more consistent responses during unforeseen issues. This change streamlines the system’s approach to managing errors, reducing unnecessary internal error logs while maintaining reliable operations and a stable user experience. These refinements contribute to improved system stability and efficient error management. Internal operations are now better optimized to handle unexpected scenarios gracefully. --- .../databases/vector/chromadb/ChromaDBAdapter.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cognee/infrastructure/databases/vector/chromadb/ChromaDBAdapter.py b/cognee/infrastructure/databases/vector/chromadb/ChromaDBAdapter.py index 91d135f08..1aec470c5 100644 --- a/cognee/infrastructure/databases/vector/chromadb/ChromaDBAdapter.py +++ b/cognee/infrastructure/databases/vector/chromadb/ChromaDBAdapter.py @@ -222,8 +222,7 @@ class ChromaDBAdapter(VectorDBInterface): ) return scored_results - except Exception as e: - logger.error(f"Error in get_distance_from_collection_elements: {str(e)}") + except Exception: return [] async def search(