fixed last update
This commit is contained in:
@@ -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
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -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"
|
||||||
|
@@ -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
|
||||||
|
@@ -738,7 +738,6 @@ 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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user