youtu-graphrag
youtu-graphrag copied to clipboard
_get_one_hop_triples_from_nodes如果节点没有实体类型,则全部加入到检索,不合理
Also include nodes without schema_type for backward compatibility
elif not node_schema_type and node_data.get('label') == 'entity':
filtered_nodes.append(node_id) 这样导致检索到的节点太多了