Fix typo in relationship extraction log messages

This commit is contained in:
yangdx 2025-08-31 17:45:16 +08:00
parent 97c9600085
commit 75de40da41

View file

@ -384,9 +384,9 @@ async def _handle_single_relationship_extraction(
if len(record_attributes) < 6 or '"relationship"' not in record_attributes[0]:
if len(record_attributes) > 1 and '"relationship"' in record_attributes[0]:
logger.warning(
f"Relationship extraction failed in {chunk_key}: expecting 6 fields but got {len(record_attributes)}"
f"Relation extraction failed in {chunk_key}: expecting 6 fields but got {len(record_attributes)}"
)
logger.warning(f"Relationship extracted: {record_attributes[1]}")
logger.warning(f"Relation extracted: {record_attributes[1]}")
return None
try: