From 97bcf839763602aec59c15e65da15025c45bca7a Mon Sep 17 00:00:00 2001 From: phernandez Date: Sun, 19 Jan 2025 16:18:30 -0600 Subject: [PATCH] improve build_context results --- src/basic_memory/services/context_service.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/basic_memory/services/context_service.py b/src/basic_memory/services/context_service.py index 0284bc48..88513347 100644 --- a/src/basic_memory/services/context_service.py +++ b/src/basic_memory/services/context_service.py @@ -228,6 +228,7 @@ SELECT DISTINCT root_id, created_at FROM context_graph +WHERE (type, id) NOT IN ({values}) GROUP BY type, id, title, permalink, from_id, to_id, relation_type, category, entity_id,