We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa87906 commit d5bbdcbCopy full SHA for d5bbdcb
graphgen/operators/partition/partition_kg.py
@@ -60,7 +60,7 @@ async def partition_kg(
60
nodes, edges = batch
61
for node_id, node_data in nodes:
62
entity_type = node_data.get("entity_type")
63
- if "image" in entity_type.lower():
+ if entity_type and "image" in entity_type.lower():
64
node_id = node_id.strip('"').lower()
65
image_data = await chunk_storage.get_by_id(node_id)
66
if image_data:
0 commit comments