From f017875a3f30f458b109771df86ff9e235a79132 Mon Sep 17 00:00:00 2001 From: HuangHai <10402852@qq.com> Date: Tue, 1 Jul 2025 15:35:20 +0800 Subject: [PATCH] 'commit' --- dsRag/Neo4j/TestNeo4j.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dsRag/Neo4j/TestNeo4j.py b/dsRag/Neo4j/TestNeo4j.py index 9eefce3c..cdce9645 100644 --- a/dsRag/Neo4j/TestNeo4j.py +++ b/dsRag/Neo4j/TestNeo4j.py @@ -1,15 +1,14 @@ +# conda activate rag # pip install neo4j from neo4j import GraphDatabase # 连接配置 neo4j_url = "bolt://localhost:7687" # 建议使用bolt协议 neo4j_user = "neo4j" -neo4j_pwd = "your_password" +neo4j_pwd = "neo4j" # 创建驱动 with GraphDatabase.driver(neo4j_url, auth=(neo4j_user, neo4j_pwd)) as driver: # 验证连接 driver.verify_connectivity() print("成功连接到Neo4j数据库") -neo4j_user = "neo4j" -neo4j_pwd = "neo4j"