Merge pull request #123 from tpoisonooo/patch-2
typo(lightrag/lightrag.py): typo
This commit is contained in:
@@ -208,7 +208,7 @@ class LightRAG:
|
|||||||
logger.info("[Entity Extraction]...")
|
logger.info("[Entity Extraction]...")
|
||||||
maybe_new_kg = await extract_entities(
|
maybe_new_kg = await extract_entities(
|
||||||
inserting_chunks,
|
inserting_chunks,
|
||||||
knwoledge_graph_inst=self.chunk_entity_relation_graph,
|
knowledge_graph_inst=self.chunk_entity_relation_graph,
|
||||||
entity_vdb=self.entities_vdb,
|
entity_vdb=self.entities_vdb,
|
||||||
relationships_vdb=self.relationships_vdb,
|
relationships_vdb=self.relationships_vdb,
|
||||||
global_config=asdict(self),
|
global_config=asdict(self),
|
||||||
|
@@ -124,14 +124,14 @@ async def _handle_single_relationship_extraction(
|
|||||||
async def _merge_nodes_then_upsert(
|
async def _merge_nodes_then_upsert(
|
||||||
entity_name: str,
|
entity_name: str,
|
||||||
nodes_data: list[dict],
|
nodes_data: list[dict],
|
||||||
knwoledge_graph_inst: BaseGraphStorage,
|
knowledge_graph_inst: BaseGraphStorage,
|
||||||
global_config: dict,
|
global_config: dict,
|
||||||
):
|
):
|
||||||
already_entitiy_types = []
|
already_entitiy_types = []
|
||||||
already_source_ids = []
|
already_source_ids = []
|
||||||
already_description = []
|
already_description = []
|
||||||
|
|
||||||
already_node = await knwoledge_graph_inst.get_node(entity_name)
|
already_node = await knowledge_graph_inst.get_node(entity_name)
|
||||||
if already_node is not None:
|
if already_node is not None:
|
||||||
already_entitiy_types.append(already_node["entity_type"])
|
already_entitiy_types.append(already_node["entity_type"])
|
||||||
already_source_ids.extend(
|
already_source_ids.extend(
|
||||||
|
Reference in New Issue
Block a user