Skip to content

Commit e033d9d

Browse files
Fix typos
1 parent 4174a51 commit e033d9d

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

itrg/itrg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
@dataclass
1515
class ITRGAssistantConfig(GeneratorConfig, GenerationConfig, RetrieverConfig):
1616
max_iteration: int = 5
17-
retrieval_num: int = 5
17+
retrieved_num: int = 5
1818

1919

2020
@ASSISTANTS("itrg", "iter-retgen", config_class=ITRGAssistantConfig)
@@ -26,7 +26,7 @@ class ITRGAssistant(AssistantBase):
2626
def __init__(self, cfg: ITRGAssistantConfig) -> None:
2727
# load retriever
2828
self.retriever = RETRIEVERS.load(cfg)
29-
self.retriever.top_k = cfg.retrieval_num
29+
self.retriever.top_k = cfg.retrieved_num
3030

3131
# load generator
3232
self.generator = GENERATORS.load(cfg)

itrg/readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This is the reproduction of the paper:
88
ITRG & ITER-RETGEN iterate retrieval and generation. In each iteration, they leverages the model output from the previous iteration as a specific context to help retrieve more relevant knowledge, which may help improve model generation.
99

1010
<center>
11-
<img src="./image.png" alt="IRCoT" width="50%"/>
11+
<img src="./image.png" alt="ITRG" width="50%"/>
1212
</center>
1313

1414
## Running the Method
@@ -19,11 +19,11 @@ bash ./run_generator.sh
1919
This script will start a `Qwen2-7B-Instruct` model server on port 8000. You can change the `MODEL_NAME` in the script if you want to use a different model.
2020

2121

22-
Then, run the following command to evaluate the IRCoT on the test set of `Natural Questions`:
22+
Then, run the following command to evaluate the ITRG on the test set of `Natural Questions`:
2323
```bash
2424
bash ./run.sh
2525
```
26-
This script will run the IRCoT method on the test set of `Natural Questions` and save the results in the `results` directory. You can change the `DATASET_NAME` and the `SPLIT` variables in the script to evaluate on different datasets.
26+
This script will run the ITRG method on the test set of `Natural Questions` and save the results in the `results` directory. You can change the `DATASET_NAME` and the `SPLIT` variables in the script to evaluate on different datasets.
2727

2828
## Experiments
2929

react/readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This is the reproduction of the paper:
77
ReAct solves knowledge-intensive tasks by taking both reasoning and retrieving actions in an interleaved manner, allowing for greater synergy between the two: reasoning traces help the model induce, track, and update action plans as well as handle exceptions, while actions allow it to interface with and gather additional information from external sources such as knowledge bases or environments.
88

99
<center>
10-
<img src="./image.png" alt="IRCoT" width="50%"/>
10+
<img src="./image.png" alt="ReACT" width="50%"/>
1111
</center>
1212

1313
## Running the Method
@@ -18,11 +18,11 @@ bash ./run_generator.sh
1818
This script will start a `Qwen2-7B-Instruct` model server on port 8000. You can change the `MODEL_NAME` in the script if you want to use a different model.
1919

2020

21-
Then, run the following command to evaluate the IRCoT on the test set of `Natural Questions`:
21+
Then, run the following command to evaluate the ReACT on the test set of `Natural Questions`:
2222
```bash
2323
bash ./run.sh
2424
```
25-
This script will run the IRCoT method on the test set of `Natural Questions` and save the results in the `results` directory. You can change the `DATASET_NAME` and the `SPLIT` variables in the script to evaluate on different datasets.
25+
This script will run the ReACT method on the test set of `Natural Questions` and save the results in the `results` directory. You can change the `DATASET_NAME` and the `SPLIT` variables in the script to evaluate on different datasets.
2626

2727
## Citation
2828
If you use this code in your research, please cite the following paper:

0 commit comments

Comments
 (0)