github-actions[bot] commited on
Commit
e84bc8e
·
1 Parent(s): e305bc7

Auto-sync from demo at Tue Nov 4 06:46:07 UTC 2025

Browse files
graphgen/operators/partition/partition_kg.py CHANGED
@@ -56,15 +56,7 @@ async def partition_kg(
56
  logger.info("Partitioned the graph into %d communities.", len(communities))
57
  batches = await partitioner.community2batch(communities, g=kg_instance)
58
 
59
- for _, batch in enumerate(batches):
60
- nodes, edges = batch
61
- for node_id, node_data in nodes:
62
- entity_type = node_data.get("entity_type")
63
- 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:
67
- node_data["images"] = image_data
68
  return batches
69
 
70
 
 
56
  logger.info("Partitioned the graph into %d communities.", len(communities))
57
  batches = await partitioner.community2batch(communities, g=kg_instance)
58
 
59
+ batches = await attach_additional_data_to_node(batches, chunk_storage)
 
 
 
 
 
 
 
 
60
  return batches
61
 
62