pip install -r requirements.txt
python retrieval_experiments.py --task chunk
python retrieval_experiments.py --task single
python retrieval_experiments.py --task multi_dense
python retrieval_experiments.py --task hybrid
python retrieval_experiments.py --task rerank
python retrieval_experiments.py --task query_expand --hf_token <HF Token>
python llm_experiments.py \
--approach vanilla \
--prompt_type base \
NOTE: You can run the experiments with other configurations.
--approach: ["vanilla", "citations"]
--prompt_type: [ "base", "cot", "one-shot"]
python llm_experiments.py \
--retrieval_type base \
--approach retrieval \
--prompt_type base \
--hf_token <HF Token> \
NOTE: You can run the experiments with other configurations.
--retrieval_type: ["base", "best"]
--approach: ["retrieval", "stepback"]
--prompt_type: ["base", "cot", "one-shot"]
### config.py
HF_TOKEN = None # replace with your <HF Token>
python app.py