MCPcopy Create free account
hub / github.com/Agent-RL/ReCall / ircot

Function ircot

scripts/evaluation/run_eval.py:57–72  ·  view source on GitHub ↗

Reference: Harsh Trivedi et al. "Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questions" in ACL 2023

(args, config_dict)

Source from the content-addressed store, hash-verified

55 result = pipeline.run(test_data)
56
57def ircot(args, config_dict):
58 """
59 Reference:
60 Harsh Trivedi et al. "Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questions"
61 in ACL 2023
62 """
63 from flashrag.pipeline import IRCOTPipeline
64
65 # preparation
66 config = Config(args.config_path, config_dict)
67 all_split = get_dataset(config)
68 test_data = all_split[args.split]
69 print(config["generator_model_path"])
70 pipeline = IRCOTPipeline(config, max_iter=5)
71
72 result = pipeline.run(test_data)
73
74def re_call(args, config_dict):
75 config = Config(args.config_path, config_dict)

Callers

nothing calls this directly

Calls 4

runMethod · 0.95
ConfigClass · 0.90
get_datasetFunction · 0.90
IRCOTPipelineClass · 0.90

Tested by

no test coverage detected