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
49 changes: 49 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,49 @@
from __future__ import annotations

from mteb.abstasks.TaskMetadata import TaskMetadata

from ....abstasks.AbsTaskRetrieval import AbsTaskRetrieval


class AutoRAGRetrieval(AbsTaskRetrieval):
metadata = TaskMetadata(
name="AutoRAGRetrieval",
description="AutoRAGRetrieval",
reference=None,
dataset={
"path": "yjoonjang/markers_bm",
"revision": "fd7df84ac089bbec763b1c6bb1b56e985df5cc5c",
},
type="Retrieval",
category="s2p",
eval_splits=["test"],
eval_langs=["kor-Hang"],
main_score="ndcg_at_10",
date=None,
form=None,
domains=None,
task_subtypes=None,
license=None,
socioeconomic_status=None,
annotations_creators=None,
dialect=None,
text_creation=None,
Copy link
Contributor

@KennethEnevoldsen KennethEnevoldsen Nov 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the metadata is not filled out you will get an error in the tests. Let me know if there are any problems with these.

bibtex_citation="""@misc{AutoRAG,
author = "Dongkyu Kim and Byoungwook Kim and Donggeon Han",
title = "AutoRAG",
year = {2024},
url = {https://github.com/Marker-Inc-Korea/AutoRAG}
}""",
descriptive_stats={
Samoed marked this conversation as resolved.
Show resolved Hide resolved
"n_samples": None,
"avg_character_length": {
"dev": {
"average_document_length": 983.8421052631579,
"average_query_length": 69.6140350877193,
"num_documents": 114,
"num_queries": 114,
"average_relevant_docs_per_query": 1.0,
}
},
},
)
Loading