Aside from rank_llm's general setup, install the following:
pip install -U FlagEmbedding
Running bge
We can run bge with a simple command in the rank_llm directory as follows:
# if you want to remove progress bars, pass env var TQDM_DISABLE=1
python src/rank_llm/scripts/run_rank_llm.py --model_path=insert_model_name_on_hf --dataset=insert_dataset_path_or_name --retrieval_method=_insert_retrieval_method --prompt_mode=bge-reranker-v2 --batch_size=insert_batch_size --context_size=Insert_context_size
Tests
Here are some tests on the Deep Learning 2019 dataset, just to make sure things work.
Pull Request Checklist
Reference Issue
ref: N/A
Checklist Items
Before submitting your pull request, please review these items:
PR Type
Documentation
Dependencies
Aside from rank_llm's general setup, install the following:
Running bge
We can run bge with a simple command in the rank_llm directory as follows:
Tests
Here are some tests on the Deep Learning 2019 dataset, just to make sure things work.