Skip to content

Commit

Permalink
deduplicate sources in local search context (#1468)
Browse files Browse the repository at this point in the history
Co-authored-by: Alonso Guevara <alonsog@microsoft.com>
  • Loading branch information
volksen and AlonsoGuevara authored Dec 6, 2024
1 parent 5ff2d3c commit b1f2ca7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ def _build_text_unit_context(
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
Expand Down

0 comments on commit b1f2ca7

Please sign in to comment.