YanSte commited on
Commit
9bc4562
·
1 Parent(s): cc4d7e1

fixed last update

Browse files
examples/test_faiss.py CHANGED
@@ -70,7 +70,7 @@ def main():
70
  ),
71
  vector_storage="FaissVectorDBStorage",
72
  vector_db_storage_cls_kwargs={
73
- "cosine_better_than_threshold": 0.3 # Your desired threshold
74
  },
75
  )
76
 
 
70
  ),
71
  vector_storage="FaissVectorDBStorage",
72
  vector_db_storage_cls_kwargs={
73
+ "cosine_better_than_threshold": 0.2 # Your desired threshold
74
  },
75
  )
76
 
lightrag/__init__.py CHANGED
@@ -1,5 +1,5 @@
1
  from .lightrag import LightRAG as LightRAG, QueryParam as QueryParam
2
 
3
- __version__ = "1.1.7"
4
  __author__ = "Zirui Guo"
5
  __url__ = "https://github.com/HKUDS/LightRAG"
 
1
  from .lightrag import LightRAG as LightRAG, QueryParam as QueryParam
2
 
3
+ __version__ = "1.1.10"
4
  __author__ = "Zirui Guo"
5
  __url__ = "https://github.com/HKUDS/LightRAG"
lightrag/kg/networkx_impl.py CHANGED
@@ -16,12 +16,12 @@ import pipmaster as pm
16
 
17
  if not pm.is_installed("networkx"):
18
  pm.install("networkx")
 
19
  if not pm.is_installed("graspologic"):
20
  pm.install("graspologic")
21
 
22
- from graspologic import embed
23
  import networkx as nx
24
-
25
 
26
  @final
27
  @dataclass
 
16
 
17
  if not pm.is_installed("networkx"):
18
  pm.install("networkx")
19
+
20
  if not pm.is_installed("graspologic"):
21
  pm.install("graspologic")
22
 
 
23
  import networkx as nx
24
+ from graspologic import embed
25
 
26
  @final
27
  @dataclass
lightrag/lightrag.py CHANGED
@@ -738,9 +738,8 @@ class LightRAG:
738
  if new_kg is None:
739
  logger.info("No new entities or relationships extracted.")
740
  else:
741
- async with self._entity_lock:
742
- logger.info("New entities or relationships extracted.")
743
- self.chunk_entity_relation_graph = new_kg
744
 
745
  except Exception as e:
746
  logger.error("Failed to extract entities and relationships")
 
738
  if new_kg is None:
739
  logger.info("No new entities or relationships extracted.")
740
  else:
741
+ logger.info("New entities or relationships extracted.")
742
+ self.chunk_entity_relation_graph = new_kg
 
743
 
744
  except Exception as e:
745
  logger.error("Failed to extract entities and relationships")