Fix special chars problem for Postgres

This commit is contained in:
yangdx
2025-04-17 22:58:36 +08:00
parent 14b4bc96ce
commit a3ca134e97
3 changed files with 10 additions and 5 deletions

View File

@@ -157,8 +157,8 @@ async def _handle_single_entity_extraction(
return None
# Clean and validate entity name
entity_name = clean_str(record_attributes[1]).strip('"')
if not entity_name.strip():
entity_name = clean_str(record_attributes[1]).strip()
if not entity_name:
logger.warning(
f"Entity extraction error: empty entity name in: {record_attributes}"
)