From 78eadc1d6c742c8cfe6ae7382e4fcaf755621082 Mon Sep 17 00:00:00 2001 From: yangdx Date: Thu, 11 Sep 2025 23:21:27 +0800 Subject: [PATCH] Rename function to clarify rebuild vs process extraction contexts --- lightrag/operate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightrag/operate.py b/lightrag/operate.py index 77afbbf0..c29156b7 100644 --- a/lightrag/operate.py +++ b/lightrag/operate.py @@ -531,7 +531,7 @@ async def _rebuild_knowledge_from_chunks( # process multiple LLM extraction results for a single chunk_id for extraction_result in extraction_results: - entities, relationships = await _parse_extraction_result( + entities, relationships = await _rebuild_from_extraction_result( text_chunks_storage=text_chunks_storage, extraction_result=extraction_result, chunk_id=chunk_id, @@ -974,7 +974,7 @@ async def _process_extraction_result( return dict(maybe_nodes), dict(maybe_edges) -async def _parse_extraction_result( +async def _rebuild_from_extraction_result( text_chunks_storage: BaseKVStorage, extraction_result: str, chunk_id: str ) -> tuple[dict, dict]: """Parse cached extraction result using the same logic as extract_entities