Our code is based on python 3.10. We suggest you create a conda environment for this project to avoid conflicts with others.
conda create -n AGGD python=3.10
Then, you can activate the conda environment:
conda activate AGGD
Please install all the dependency packages using the following command:
pip install -r requirements.txt
In order to run Contriever model, please clone the Contriever source code.
git clone https://github.com/facebookresearch/contriever.git
You do not need to download datasets. When running our code, the datasets will be automatically downloaded and saved in datasets
.
In order to reproduce the experimental result
bash run.sh
To evaluate the result, first, run
bash ./scripts/eval_beir.sh
Then run `
bash run_eval.sh