fixed last update

This commit is contained in:
Yannick Stephan
2025-02-20 14:12:19 +01:00
parent 3e820cc68e
commit 214e3e8ad5
4 changed files with 6 additions and 7 deletions

View File

@@ -70,7 +70,7 @@ def main():
), ),
vector_storage="FaissVectorDBStorage", vector_storage="FaissVectorDBStorage",
vector_db_storage_cls_kwargs={ vector_db_storage_cls_kwargs={
"cosine_better_than_threshold": 0.3 # Your desired threshold "cosine_better_than_threshold": 0.2 # Your desired threshold
}, },
) )

View File

@@ -1,5 +1,5 @@
from .lightrag import LightRAG as LightRAG, QueryParam as QueryParam from .lightrag import LightRAG as LightRAG, QueryParam as QueryParam
__version__ = "1.1.7" __version__ = "1.1.10"
__author__ = "Zirui Guo" __author__ = "Zirui Guo"
__url__ = "https://github.com/HKUDS/LightRAG" __url__ = "https://github.com/HKUDS/LightRAG"

View File

@@ -16,12 +16,12 @@ import pipmaster as pm
if not pm.is_installed("networkx"): if not pm.is_installed("networkx"):
pm.install("networkx") pm.install("networkx")
if not pm.is_installed("graspologic"): if not pm.is_installed("graspologic"):
pm.install("graspologic") pm.install("graspologic")
from graspologic import embed
import networkx as nx import networkx as nx
from graspologic import embed
@final @final
@dataclass @dataclass

View File

@@ -738,9 +738,8 @@ class LightRAG:
if new_kg is None: if new_kg is None:
logger.info("No new entities or relationships extracted.") logger.info("No new entities or relationships extracted.")
else: else:
async with self._entity_lock: logger.info("New entities or relationships extracted.")
logger.info("New entities or relationships extracted.") self.chunk_entity_relation_graph = new_kg
self.chunk_entity_relation_graph = new_kg
except Exception as e: except Exception as e:
logger.error("Failed to extract entities and relationships") logger.error("Failed to extract entities and relationships")