-
Notifications
You must be signed in to change notification settings - Fork 554
fix: Add beta version of RTEB related benchmarks #3048
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
fb6bde4
Add RTEB related benchmarks
fzoll 259f280
Add RTEB related benchmarks
fzoll 1994344
Merge branch 'embeddings-benchmark:main' into add_rteb_benchmarks
fzoll c5f9e1d
Merge branch 'embeddings-benchmark:main' into add_rteb_benchmarks
fzoll d64e1bf
Correcting the task names in the RTEB benchmarks
fzoll 7576530
Update mteb/leaderboard/benchmark_selector.py
fzoll bc1c360
Merge branch 'embeddings-benchmark:main' into add_rteb_benchmarks
fzoll 0ce65cc
Adding the CURE dataset to RTEB benchmarks
fzoll 8c7570b
Use the right language subset
fzoll 2415c1a
Merge branch 'embeddings-benchmark:main' into add_rteb_benchmarks
fzoll 017aac3
Fix broken finance icon URL in RTEB benchmarks
fzoll 62f8deb
Add the rteb_benchmarks to the BENCHMARK_REGISTRY
fzoll 70eec28
Add the rteb_benchmarks to the BENCHMARK_REGISTRY
fzoll 656c25c
Add the rteb_benchmarks to the BENCHMARK_REGISTRY
fzoll 4bfe882
Add the rteb_benchmarks to the BENCHMARK_REGISTRY
fzoll bcf8783
Add the rteb_benchmarks to the BENCHMARK_REGISTRY
fzoll 1e58bb8
Add the rteb_benchmarks to the BENCHMARK_REGISTRY
fzoll 2473a35
Add the rteb_benchmarks to the BENCHMARK_REGISTRY
fzoll File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,94 @@ | ||
| from __future__ import annotations | ||
|
|
||
| from mteb.benchmarks.benchmark import Benchmark | ||
| from mteb.benchmarks.benchmarks.benchmarks import ( | ||
| MTEB_EN, | ||
| MTEB_ENG_CLASSIC, | ||
| MTEB_MAIN_RU, | ||
| RU_SCI_BENCH, | ||
| MTEB_RETRIEVAL_WITH_INSTRUCTIONS, | ||
| MTEB_RETRIEVAL_LAW, | ||
| MTEB_RETRIEVAL_MEDICAL, | ||
| MTEB_MINERS_BITEXT_MINING, | ||
| SEB, | ||
| CoIR, | ||
| RAR_b, | ||
| MTEB_FRA, | ||
| MTEB_DEU, | ||
| MTEB_KOR, | ||
| MTEB_POL, | ||
| MTEB_code, | ||
| MTEB_multilingual, | ||
| MTEB_multilingual, | ||
| MTEB_JPN, | ||
| MTEB_INDIC, | ||
| MTEB_EU, | ||
| LONG_EMBED, | ||
| BRIGHT, | ||
| BRIGHT_LONG, | ||
| CODE_RAG, | ||
| BEIR, | ||
| NANOBEIR, | ||
| C_MTEB, | ||
| FA_MTEB, | ||
| CHEMTEB, | ||
| BEIR_NL, | ||
| MIEB_ENG, | ||
| MIEB_MULTILINGUAL, | ||
| MIEB_LITE, | ||
| MIEB_IMG, | ||
| BUILT_MTEB, | ||
| ENCODECHKA, | ||
| VIDORE, | ||
| VIDORE_V2, | ||
| VISUAL_DOCUMENT_RETRIEVAL, | ||
| R2MED, | ||
| VN_MTEB, | ||
| JINA_VDR, | ||
| ) | ||
|
|
||
| __all__ = [ | ||
| "Benchmark", | ||
| "MTEB_EN", | ||
| "MTEB_ENG_CLASSIC", | ||
| "MTEB_MAIN_RU", | ||
| "RU_SCI_BENCH", | ||
| "MTEB_RETRIEVAL_WITH_INSTRUCTIONS", | ||
| "MTEB_RETRIEVAL_LAW", | ||
| "MTEB_RETRIEVAL_MEDICAL", | ||
| "MTEB_MINERS_BITEXT_MINING", | ||
| "SEB", | ||
| "CoIR", | ||
| "RAR_b", | ||
| "MTEB_FRA", | ||
| "MTEB_DEU", | ||
| "MTEB_KOR", | ||
| "MTEB_POL", | ||
| "MTEB_code", | ||
| "MTEB_multilingual", | ||
| "MTEB_JPN", | ||
| "MTEB_INDIC", | ||
| "MTEB_EU", | ||
| "LONG_EMBED", | ||
| "BRIGHT", | ||
| "BRIGHT_LONG", | ||
| "CODE_RAG", | ||
| "BEIR", | ||
| "NANOBEIR", | ||
| "C_MTEB", | ||
| "FA_MTEB", | ||
| "CHEMTEB", | ||
| "BEIR_NL", | ||
| "MIEB_ENG", | ||
| "MIEB_MULTILINGUAL", | ||
| "MIEB_LITE", | ||
| "MIEB_IMG", | ||
| "BUILT_MTEB", | ||
| "ENCODECHKA", | ||
| "VIDORE", | ||
| "VIDORE_V2", | ||
| "VISUAL_DOCUMENT_RETRIEVAL", | ||
| "R2MED", | ||
| "VN_MTEB", | ||
| "JINA_VDR", | ||
| ] | ||
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,177 @@ | ||
| # RTEB Benchmarks - Retrieval Embedding Benchmark | ||
| from __future__ import annotations | ||
|
|
||
| from mteb.benchmarks.benchmark import Benchmark | ||
| from mteb.overview import get_tasks | ||
|
|
||
| RTEB_CITATION = r"""@article{rteb2024, | ||
| author = {RTEB Authors}, | ||
| title = {RTEB: Retrieval Embedding Benchmark for Multi-Domain Text Retrieval}, | ||
| year = {2024}, | ||
| }""" | ||
|
|
||
| RTEB_MAIN = Benchmark( | ||
| name="RTEB(beta)", | ||
| display_name="RTEB Retrieval Embedding Benchmark", | ||
| icon="https://github.com/DennisSuitters/LibreICONS/raw/2d2172d15e3c6ca03c018629d60050e4b99e5c55/svg-color/libre-gui-search.svg", | ||
| tasks=get_tasks( | ||
| tasks=[ | ||
| "AILACasedocs", | ||
| "AILAStatutes", | ||
| "LegalSummarization", | ||
| "LegalQuAD", | ||
| "FinanceBenchRetrieval", | ||
| "HC3FinanceRetrieval", | ||
| "FinQARetrieval", | ||
| "AppsRetrieval", | ||
| "DS1000Retrieval", | ||
| "HumanEvalRetrieval", | ||
| "MBPPRetrieval", | ||
| "WikiSQLRetrieval", | ||
| "FreshStackRetrieval", | ||
| "ChatDoctorRetrieval", | ||
| "CUREv1", | ||
| ], | ||
| ), | ||
| description="RTEB (Retrieval Embedding Benchmark) is a comprehensive benchmark for evaluating text retrieval models across multiple specialized domains including legal, finance, code, and healthcare. It contains 15 diverse retrieval tasks designed to test models' ability to understand domain-specific terminology and retrieve relevant documents in specialized contexts.", | ||
| citation=RTEB_CITATION, | ||
| contacts=["fzowl"], | ||
| ) | ||
|
|
||
| RTEB_ENGLISH = Benchmark( | ||
| name="RTEB(eng, beta)", | ||
| display_name="RTEB English", | ||
| icon="https://github.com/lipis/flag-icons/raw/refs/heads/main/flags/4x3/us.svg", | ||
| tasks=get_tasks( | ||
| tasks=[ | ||
| "AILACasedocs", | ||
| "AILAStatutes", | ||
| "LegalSummarization", | ||
| "FinanceBenchRetrieval", | ||
| "HC3FinanceRetrieval", | ||
| "FinQARetrieval", | ||
| "AppsRetrieval", | ||
| "DS1000Retrieval", | ||
| "HumanEvalRetrieval", | ||
| "MBPPRetrieval", | ||
| "WikiSQLRetrieval", | ||
| "FreshStackRetrieval", | ||
| "ChatDoctorRetrieval", | ||
| "CUREv1", | ||
| ], | ||
| languages=["eng"], | ||
| ), | ||
| description="RTEB English subset containing retrieval tasks in English across legal, finance, code, and healthcare domains.", | ||
| citation=RTEB_CITATION, | ||
| contacts=["fzowl"], | ||
| ) | ||
|
|
||
| RTEB_FRENCH = Benchmark( | ||
| name="RTEB(fr, beta)", | ||
| display_name="RTEB French", | ||
| icon="https://github.com/lipis/flag-icons/raw/260c91531be024944c6514130c5defb2ebb02b7d/flags/4x3/fr.svg", | ||
| tasks=get_tasks( | ||
| tasks=[ | ||
| "CUREv1", | ||
| ], | ||
| languages=["fra"], | ||
| ), | ||
| description="RTEB French subset containing retrieval tasks in French across multiple domains.", | ||
| citation=RTEB_CITATION, | ||
| contacts=["fzowl"], | ||
| ) | ||
|
|
||
| RTEB_GERMAN = Benchmark( | ||
| name="RTEB(deu, beta)", | ||
| display_name="RTEB German", | ||
| icon="https://github.com/lipis/flag-icons/raw/260c91531be024944c6514130c5defb2ebb02b7d/flags/4x3/de.svg", | ||
| tasks=get_tasks( | ||
| tasks=[ | ||
| "LegalQuAD", | ||
| ], | ||
| ), | ||
| description="RTEB German subset containing retrieval tasks in German, focusing on legal domain.", | ||
| citation=RTEB_CITATION, | ||
| contacts=["fzowl"], | ||
| ) | ||
|
|
||
| RTEB_JAPANESE = Benchmark( | ||
| name="RTEB(jpn, beta)", | ||
| display_name="RTEB Japanese", | ||
| icon="https://github.com/lipis/flag-icons/raw/260c91531be024944c6514130c5defb2ebb02b7d/flags/4x3/jp.svg", | ||
| tasks=get_tasks( | ||
| tasks=[ | ||
| # Japanese tasks would go here when available | ||
| ], | ||
| ), | ||
| description="RTEB Japanese subset containing retrieval tasks in Japanese across multiple domains.", | ||
| citation=RTEB_CITATION, | ||
| contacts=["fzowl"], | ||
| ) | ||
|
|
||
| RTEB_FINANCE = Benchmark( | ||
| name="RTEB(fin, beta)", | ||
| display_name="RTEB Finance", | ||
| icon="https://github.com/DennisSuitters/LibreICONS/raw/2d2172d15e3c6ca03c018629d60050e4b99e5c55/svg-color/libre-gui-price-tag.svg", | ||
| tasks=get_tasks( | ||
| tasks=[ | ||
| "FinanceBenchRetrieval", | ||
| "HC3FinanceRetrieval", | ||
| "FinQARetrieval", | ||
| ], | ||
| ), | ||
| description="RTEB Finance subset containing retrieval tasks specifically focused on financial domain including finance benchmarks, Q&A, and financial document retrieval.", | ||
| citation=RTEB_CITATION, | ||
| contacts=["fzowl"], | ||
| ) | ||
|
|
||
| RTEB_LEGAL = Benchmark( | ||
| name="RTEB(Law, beta)", | ||
| display_name="RTEB Legal", | ||
| icon="https://github.com/DennisSuitters/LibreICONS/raw/2d2172d15e3c6ca03c018629d60050e4b99e5c55/svg-color/libre-map-library.svg", | ||
| tasks=get_tasks( | ||
| tasks=[ | ||
| "AILACasedocs", | ||
| "AILAStatutes", | ||
| "LegalSummarization", | ||
| "LegalQuAD", | ||
| ], | ||
| ), | ||
| description="RTEB Legal subset containing retrieval tasks specifically focused on legal domain including case documents, statutes, legal summarization, and legal Q&A.", | ||
| citation=RTEB_CITATION, | ||
| contacts=["fzowl"], | ||
| ) | ||
|
|
||
| RTEB_CODE = Benchmark( | ||
| name="RTEB(Code, beta)", | ||
| display_name="RTEB Code", | ||
| icon="https://github.com/DennisSuitters/LibreICONS/raw/2d2172d15e3c6ca03c018629d60050e4b99e5c55/svg-color/libre-tech-electronics.svg", | ||
| tasks=get_tasks( | ||
| tasks=[ | ||
| "AppsRetrieval", | ||
| "DS1000Retrieval", | ||
| "HumanEvalRetrieval", | ||
| "MBPPRetrieval", | ||
| "WikiSQLRetrieval", | ||
| "FreshStackRetrieval", | ||
| ], | ||
| ), | ||
| description="RTEB Code subset containing retrieval tasks specifically focused on programming and code domains including algorithmic problems, data science tasks, code evaluation, and SQL retrieval.", | ||
| citation=RTEB_CITATION, | ||
| contacts=["fzowl"], | ||
| ) | ||
|
|
||
| RTEB_HEALTHCARE = Benchmark( | ||
| name="RTEB(Health, beta)", | ||
| display_name="RTEB Healthcare", | ||
| icon="https://github.com/DennisSuitters/LibreICONS/raw/2d2172d15e3c6ca03c018629d60050e4b99e5c55/svg-color/libre-map-hospital.svg", | ||
| tasks=get_tasks( | ||
| tasks=[ | ||
| "ChatDoctorRetrieval", | ||
| "CUREv1", | ||
| ], | ||
| ), | ||
| description="RTEB Healthcare subset containing retrieval tasks specifically focused on healthcare and medical domains including medical Q&A, healthcare information retrieval, and cross-lingual medical retrieval.", | ||
| citation=RTEB_CITATION, | ||
| contacts=["fzowl"], | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.