From b0075cdd4e71a90eb83c408e0ff7d57dbf963915 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 10 Jan 2025 17:51:22 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- examples/llm/hotpot_qa.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/llm/hotpot_qa.py b/examples/llm/hotpot_qa.py index beb33c65d451..bb2896dd6f80 100644 --- a/examples/llm/hotpot_qa.py +++ b/examples/llm/hotpot_qa.py @@ -149,7 +149,8 @@ golden_triples = relevant_triples[QA_pair] # Again, redundant since TXT2KG already provides lowercase # in case loading a KG that was made some other way without lowercase - golden_triples = [(i[0].lower(), i[1].lower(), i[2].lower()) for i in golden_triples] + golden_triples = [(i[0].lower(), i[1].lower(), i[2].lower()) + for i in golden_triples] q = QA_pair[0] retrieved_subgraph = query_loader.query(q) retrieved_triples = retrieved_subgraph.triples