From bcaaaad9598cf89b248af84d228b68a7220d1096 Mon Sep 17 00:00:00 2001
From: LarFii <834462287@qq.com>
Date: Tue, 19 Nov 2024 16:52:26 +0800
Subject: [PATCH] Update
---
README.md | 8 ++++++--
lightrag/kg/neo4j_impl.py | 2 +-
lightrag/lightrag.py | 3 +--
3 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index b62f01a1..d7e3d418 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,9 @@
+
+
@@ -35,8 +37,10 @@ This repository hosts the code of LightRAG. The structure of this code is based
## Algorithm Flowchart
-
-
+
+*Figure 1: LightRAG Indexing Flowchart*
+
+*Figure 2: LightRAG Retrieval and Querying Flowchart*
## Install
diff --git a/lightrag/kg/neo4j_impl.py b/lightrag/kg/neo4j_impl.py
index 32bfbe2e..f9fcb46d 100644
--- a/lightrag/kg/neo4j_impl.py
+++ b/lightrag/kg/neo4j_impl.py
@@ -214,7 +214,7 @@ class Neo4JStorage(BaseGraphStorage):
neo4jExceptions.ServiceUnavailable,
neo4jExceptions.TransientError,
neo4jExceptions.WriteServiceUnavailable,
- neo4jExceptions.ClientError
+ neo4jExceptions.ClientError,
)
),
)
diff --git a/lightrag/lightrag.py b/lightrag/lightrag.py
index ce27e76d..7fafadcf 100644
--- a/lightrag/lightrag.py
+++ b/lightrag/lightrag.py
@@ -173,8 +173,7 @@ class LightRAG:
embedding_func=self.embedding_func,
)
self.chunk_entity_relation_graph = self.graph_storage_cls(
- namespace="chunk_entity_relation",
- global_config=asdict(self)
+ namespace="chunk_entity_relation", global_config=asdict(self)
)
####
# add embedding func by walter over