fixed last update
This commit is contained in:
@@ -70,7 +70,7 @@ def main():
|
||||
),
|
||||
vector_storage="FaissVectorDBStorage",
|
||||
vector_db_storage_cls_kwargs={
|
||||
"cosine_better_than_threshold": 0.3 # Your desired threshold
|
||||
"cosine_better_than_threshold": 0.2 # Your desired threshold
|
||||
},
|
||||
)
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
from .lightrag import LightRAG as LightRAG, QueryParam as QueryParam
|
||||
|
||||
__version__ = "1.1.7"
|
||||
__version__ = "1.1.10"
|
||||
__author__ = "Zirui Guo"
|
||||
__url__ = "https://github.com/HKUDS/LightRAG"
|
||||
|
@@ -16,12 +16,12 @@ import pipmaster as pm
|
||||
|
||||
if not pm.is_installed("networkx"):
|
||||
pm.install("networkx")
|
||||
|
||||
if not pm.is_installed("graspologic"):
|
||||
pm.install("graspologic")
|
||||
|
||||
from graspologic import embed
|
||||
import networkx as nx
|
||||
|
||||
from graspologic import embed
|
||||
|
||||
@final
|
||||
@dataclass
|
||||
|
@@ -738,9 +738,8 @@ class LightRAG:
|
||||
if new_kg is None:
|
||||
logger.info("No new entities or relationships extracted.")
|
||||
else:
|
||||
async with self._entity_lock:
|
||||
logger.info("New entities or relationships extracted.")
|
||||
self.chunk_entity_relation_graph = new_kg
|
||||
logger.info("New entities or relationships extracted.")
|
||||
self.chunk_entity_relation_graph = new_kg
|
||||
|
||||
except Exception as e:
|
||||
logger.error("Failed to extract entities and relationships")
|
||||
|
Reference in New Issue
Block a user