Skip to content
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

fix: Add Korean AutoRAGRetrieval #1388

Merged
merged 10 commits into from
Nov 11, 2024
1 change: 0 additions & 1 deletion mteb/benchmarks/benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from collections.abc import Sequence
from dataclasses import dataclass
from functools import lru_cache
from typing import Annotated

from pydantic import AnyUrl, BeforeValidator, TypeAdapter
Expand Down
1 change: 1 addition & 0 deletions mteb/tasks/Retrieval/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
from .jpn.NLPJournalTitleAbsRetrieval import *
from .jpn.NLPJournalTitleIntroRetrieval import *
from .kat.GeorgianFAQRetrieval import *
from .kor.AutoRAGRetrieval import *
from .kor.KoStrategyQA import *
from .multilingual.BelebeleRetrieval import *
from .multilingual.CrossLingualSemanticDiscriminationWMT19 import *
Expand Down
51 changes: 51 additions & 0 deletions mteb/tasks/Retrieval/kor/AutoRAGRetrieval.py
KennethEnevoldsen marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
from __future__ import annotations

from mteb.abstasks.TaskMetadata import TaskMetadata

from ....abstasks.AbsTaskRetrieval import AbsTaskRetrieval


class AutoRAGRetrieval(AbsTaskRetrieval):
metadata = TaskMetadata(
name="AutoRAGRetrieval",
description="Korean Retrieval Task origniated from AutoRAG",
KennethEnevoldsen marked this conversation as resolved.
Show resolved Hide resolved
reference="https://arxiv.org/abs/2410.20878",
dataset={
"path": "yjoonjang/markers_bm",
"revision": "fd7df84ac089bbec763b1c6bb1b56e985df5cc5c",
},
type="Retrieval",
prompt=None,
KennethEnevoldsen marked this conversation as resolved.
Show resolved Hide resolved
category="s2p",
modalities=["text"],
eval_splits=["test"],
eval_langs=["kor-Hang"],
main_score="ndcg_at_10",
date=("2024-08-03", "2024-08-03"),
domains=["Government", "Medical", "Legal", "Social"],
task_subtypes=["Article retrieval"],
license="not specified",
KennethEnevoldsen marked this conversation as resolved.
Show resolved Hide resolved
annotations_creators="human-annotated",
dialect=[],
sample_creation="created",
bibtex_citation="""@misc{kim2024autoragautomatedframeworkoptimization,
title={AutoRAG: Automated Framework for optimization of Retrieval Augmented Generation Pipeline},
author={Dongkyu Kim and Byoungwook Kim and Donggeon Han and Matouš Eibich},
year={2024},
eprint={2410.20878},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2410.20878},
}""",
descriptive_stats={
Samoed marked this conversation as resolved.
Show resolved Hide resolved
"avg_character_length": {
"test": {
"average_document_length": 983.8421052631579,
"average_query_length": 69.6140350877193,
"num_documents": 114,
"num_queries": 114,
"average_relevant_docs_per_query": 1.0,
}
},
},
)
Loading