From c2670edf0509fa490a404160ca9b76f2701d05d7 Mon Sep 17 00:00:00 2001 From: riship Date: Fri, 10 Jan 2025 11:48:46 -0800 Subject: [PATCH] debug --- torch_geometric/utils/rag/backend_utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/torch_geometric/utils/rag/backend_utils.py b/torch_geometric/utils/rag/backend_utils.py index 8716404ef60b..443720a4b997 100644 --- a/torch_geometric/utils/rag/backend_utils.py +++ b/torch_geometric/utils/rag/backend_utils.py @@ -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)