mirror of
https://github.com/microsoft/graphrag.git
synced 2026-01-14 09:07:20 +08:00
deduplicate sources in local search context (#1468)
Co-authored-by: Alonso Guevara <alonsog@microsoft.com>
This commit is contained in:
parent
5ff2d3c76d
commit
b1f2ca785e
@ -334,6 +334,7 @@ class LocalSearchMixedContext(LocalContextBuilder):
|
||||
num_relationships = count_relationships(
|
||||
entity_relationships, selected_unit
|
||||
)
|
||||
text_unit_ids_set.add(text_id)
|
||||
unit_info_list.append((selected_unit, index, num_relationships))
|
||||
|
||||
# sort by entity_order and the number of relationships desc
|
||||
|
||||
Loading…
Reference in New Issue
Block a user