Skip to content

Commit 0accd62

Browse files
committed
update eval args
1 parent dfe7e7c commit 0accd62

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

FlagEmbedding/abc/evaluation/arguments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class AbsEvalModelArgs:
8686
normalize_embeddings: bool = field(
8787
default=True, metadata={"help": "whether to normalize the embeddings"}
8888
)
89-
pooling_method: bool = field(
89+
pooling_method: str = field(
9090
default="cls", metadata={"help": "The pooling method fot the embedder."}
9191
)
9292
use_fp16: bool = field(

examples/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ torchrun --nproc_per_node 2 \
139139
We support evaluations on [MTEB](https://github.com/embeddings-benchmark/mteb), [BEIR](https://github.com/beir-cellar/beir), [MSMARCO](https://microsoft.github.io/msmarco/), [MIRACL](https://github.com/project-miracl/miracl), [MLDR](https://huggingface.co/datasets/Shitao/MLDR), [MKQA](https://github.com/apple/ml-mkqa), [AIR-Bench](https://github.com/AIR-Bench/AIR-Bench), and custom datasets. Below is an example of evaluating MSMARCO passages. For more details, please refer to the [evaluation examples](https://github.com/FlagOpen/FlagEmbedding/tree/master/examples/evaluation).
140140

141141
```shell
142+
pip install pytrec_eval
142143
pip install https://github.com/kyamagu/faiss-wheels/releases/download/v1.7.3/faiss_gpu-1.7.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
143144
```
144145

examples/evaluation/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,10 @@ In this section, we will first introduce the commonly used arguments across all
8686

8787
### Requirements
8888

89-
You need install faiss for evaluation:
89+
You need install `pytrec_eval` and `faiss` for evaluation:
9090

9191
```shell
92+
pip install pytrec_eval
9293
pip install https://github.com/kyamagu/faiss-wheels/releases/download/v1.7.3/faiss_gpu-1.7.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
9394
```
9495

0 commit comments

Comments
 (0)