Add chunk key to entity extraction logging output

This commit is contained in:
yangdx 2025-09-17 02:21:11 +08:00
parent fdf8b176ad
commit 77569ddea2

View file

@ -2163,7 +2163,7 @@ async def extract_entities(
processed_chunks += 1
entities_count = len(maybe_nodes)
relations_count = len(maybe_edges)
log_message = f"Chunk {processed_chunks} of {total_chunks} extracted {entities_count} Ent + {relations_count} Rel"
log_message = f"Chunk {processed_chunks} of {total_chunks} extracted {entities_count} Ent + {relations_count} Rel {chunk_key}"
logger.info(log_message)
if pipeline_status is not None:
async with pipeline_status_lock: