Skip to content

Commit 45eceb0

Browse files
authored
Merge pull request HKUDS#123 from tpoisonooo/patch-2
typo(lightrag/lightrag.py): typo
2 parents a168316 + ef41871 commit 45eceb0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎lightrag/lightrag.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ async def ainsert(self, string_or_strings):
208208
logger.info("[Entity Extraction]...")
209209
maybe_new_kg = await extract_entities(
210210
inserting_chunks,
211-
knwoledge_graph_inst=self.chunk_entity_relation_graph,
211+
knowledge_graph_inst=self.chunk_entity_relation_graph,
212212
entity_vdb=self.entities_vdb,
213213
relationships_vdb=self.relationships_vdb,
214214
global_config=asdict(self),

‎lightrag/operate.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,14 @@ async def _handle_single_relationship_extraction(
124124
async def _merge_nodes_then_upsert(
125125
entity_name: str,
126126
nodes_data: list[dict],
127-
knwoledge_graph_inst: BaseGraphStorage,
127+
knowledge_graph_inst: BaseGraphStorage,
128128
global_config: dict,
129129
):
130130
already_entitiy_types = []
131131
already_source_ids = []
132132
already_description = []
133133

134-
already_node = await knwoledge_graph_inst.get_node(entity_name)
134+
already_node = await knowledge_graph_inst.get_node(entity_name)
135135
if already_node is not None:
136136
already_entitiy_types.append(already_node["entity_type"])
137137
already_source_ids.extend(

0 commit comments

Comments
 (0)