From 2a781dfb9160c942647f2ccfe6c60034450d0242 Mon Sep 17 00:00:00 2001 From: yangdx Date: Fri, 15 Aug 2025 19:14:38 +0800 Subject: [PATCH] Update Neo4j database naming in env.example --- env.example | 2 +- lightrag/kg/neo4j_impl.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/env.example b/env.example index 39d6da68..187a7064 100644 --- a/env.example +++ b/env.example @@ -268,7 +268,7 @@ POSTGRES_IVFFLAT_LISTS=100 NEO4J_URI=neo4j+s://xxxxxxxx.databases.neo4j.io NEO4J_USERNAME=neo4j NEO4J_PASSWORD='your_password' -# NEO4J_DATABASE=chunk_entity_relation +# NEO4J_DATABASE=chunk-entity-relation NEO4J_MAX_CONNECTION_POOL_SIZE=100 NEO4J_CONNECTION_TIMEOUT=30 NEO4J_CONNECTION_ACQUISITION_TIMEOUT=30 diff --git a/lightrag/kg/neo4j_impl.py b/lightrag/kg/neo4j_impl.py index febd07e5..2a32307a 100644 --- a/lightrag/kg/neo4j_impl.py +++ b/lightrag/kg/neo4j_impl.py @@ -155,7 +155,7 @@ class Neo4JStorage(BaseGraphStorage): except neo4jExceptions.ServiceUnavailable as e: logger.error( f"[{self.workspace}] " - + f"{database} at {URI} is not available".capitalize() + + f"Database {database} at {URI} is not available" ) raise e except neo4jExceptions.AuthError as e: @@ -167,7 +167,7 @@ class Neo4JStorage(BaseGraphStorage): if e.code == "Neo.ClientError.Database.DatabaseNotFound": logger.info( f"[{self.workspace}] " - + f"{database} at {URI} not found. Try to create specified database.".capitalize() + + f"Database {database} at {URI} not found. Try to create specified database." ) try: async with self._driver.session() as session: @@ -177,7 +177,7 @@ class Neo4JStorage(BaseGraphStorage): await result.consume() # Ensure result is consumed logger.info( f"[{self.workspace}] " - + f"{database} at {URI} created".capitalize() + + f"Database {database} at {URI} created" ) connected = True except (