From fc3208cf5bfc05cd91f38ffb868c6604bffe7665 Mon Sep 17 00:00:00 2001 From: yangdx Date: Wed, 2 Apr 2025 12:53:17 +0800 Subject: [PATCH] Filter nodes by :base for entity label retrieval in Neo4j --- lightrag/kg/neo4j_impl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightrag/kg/neo4j_impl.py b/lightrag/kg/neo4j_impl.py index 237d42d3..c56c6a42 100644 --- a/lightrag/kg/neo4j_impl.py +++ b/lightrag/kg/neo4j_impl.py @@ -906,7 +906,7 @@ class Neo4JStorage(BaseGraphStorage): # Method 2: Query compatible with older versions query = """ - MATCH (n) + MATCH (n:base) WHERE n.entity_id IS NOT NULL RETURN DISTINCT n.entity_id AS label ORDER BY label