From 46e3fca2280a37f6ecc675eaeebdf5b3f1b304f2 Mon Sep 17 00:00:00 2001 From: hajdul88 <52442977+hajdul88@users.noreply.github.com> Date: Wed, 17 Sep 2025 16:11:09 +0200 Subject: [PATCH] Fix: fixes infinite loop introduced in combined search refactor (#1434) ## Description Fixes infinite loop introduced in combined search refactor ## Type of Change - [x] Bug fix (non-breaking change that fixes an issue) - [ ] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update - [ ] Code refactoring - [ ] Performance improvement - [ ] Other (please specify): ## Changes Made Fixes infinite loop introduced in combined search refactor ## Testing Manual ## Screenshots/Videos (if applicable) None ## Pre-submission Checklist - [x] **I have tested my changes thoroughly before submitting this PR** - [x] **This PR contains minimal changes necessary to address the issue/feature** - [x] My code follows the project's coding standards and style guidelines - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have added necessary documentation (if applicable) - [x] All new and existing tests pass - [x] I have searched existing PRs to ensure this change hasn't been submitted already - [x] I have linked any relevant issues in the description - [x] My commits have clear and descriptive messages ## Related Issues https://github.com/topoteretes/cognee/pull/1341 ## Additional Notes None ## 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. --- cognee/modules/retrieval/temporal_retriever.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cognee/modules/retrieval/temporal_retriever.py b/cognee/modules/retrieval/temporal_retriever.py index c5fe2094c..f080ed18f 100644 --- a/cognee/modules/retrieval/temporal_retriever.py +++ b/cognee/modules/retrieval/temporal_retriever.py @@ -113,7 +113,7 @@ class TemporalRetriever(GraphCompletionRetriever): logger.info( "No timestamps identified based on the query, performing retrieval using triplet search on events and entities." ) - triplets = await self.get_context(query) + triplets = await self.get_triplets(query) return await self.resolve_edges_to_text(triplets) if ids: @@ -122,7 +122,7 @@ class TemporalRetriever(GraphCompletionRetriever): logger.info( "No events identified based on timestamp filtering, performing retrieval using triplet search on events and entities." ) - triplets = await self.get_context(query) + triplets = await self.get_triplets(query) return await self.resolve_edges_to_text(triplets) vector_engine = get_vector_engine()