Skip to content

Commit

Permalink
adding tqdm to retrieval step
Browse files Browse the repository at this point in the history
  • Loading branch information
riship committed Jan 7, 2025
1 parent 032c2cd commit c010843
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/llm/hotpot_qa.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@
https://github.com/pyg-team/pytorch_geometric/pull/9806
"""
precisions = []
for QA_pair in relevant_triples.keys():
if args.verbose:
loader = relevant_triples.keys()
else:
loader = tqdm(relevant_triples.keys())
for QA_pair in loader:
golden_triples = relevant_triples[QA_pair]
q = QA_pair[0]
retrieved_subgraph = query_loader.query(q)
Expand Down

0 comments on commit c010843

Please sign in to comment.