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,