Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
riship committed Jan 10, 2025
1 parent 4d71797 commit c2670ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions torch_geometric/utils/rag/backend_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ def make_pcst_filter(triples: List[Tuple[str, str, str]],
if DataFrame is None:
raise Exception("PCST requires `pip install pandas`")
nodes = []
triples = list(dict.fromkeys(triples))
for h, r, t in triples:
for node in (h, t):
nodes.append(node)
Expand Down

0 comments on commit c2670ed

Please sign in to comment.