Datasets:
mteb
/

Modalities:
Text
Formats:
parquet
Languages:
code
ArXiv:
Libraries:
Datasets
Dask
License:
fzoll commited on
Commit
96e41c4
·
verified ·
1 Parent(s): c856e97

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +140 -0
README.md CHANGED
@@ -1,4 +1,15 @@
1
  ---
 
 
 
 
 
 
 
 
 
 
 
2
  dataset_info:
3
  - config_name: corpus
4
  features:
@@ -53,4 +64,133 @@ configs:
53
  data_files:
54
  - split: train
55
  path: queries/train-*
 
 
 
56
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ annotations_creators:
3
+ - derived
4
+ language:
5
+ - code
6
+ license: cc-by-sa-4.0
7
+ multilinguality: monolingual
8
+ source_datasets:
9
+ - mteb/CodeRAGStackoverflowPosts_unconverted
10
+ task_categories:
11
+ - text-ranking
12
+ task_ids: []
13
  dataset_info:
14
  - config_name: corpus
15
  features:
 
64
  data_files:
65
  - split: train
66
  path: queries/train-*
67
+ tags:
68
+ - mteb
69
+ - text
70
  ---
71
+ <!-- adapted from https://github.com/huggingface/huggingface_hub/blob/v0.30.2/src/huggingface_hub/templates/datasetcard_template.md -->
72
+
73
+ <div align="center" style="padding: 40px 20px; background-color: white; border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); max-width: 600px; margin: 0 auto;">
74
+ <h1 style="font-size: 3.5rem; color: #1a1a1a; margin: 0 0 20px 0; letter-spacing: 2px; font-weight: 700;">CodeRAGStackoverflowPosts</h1>
75
+ <div style="font-size: 1.5rem; color: #4a4a4a; margin-bottom: 5px; font-weight: 300;">An <a href="https://github.com/embeddings-benchmark/mteb" style="color: #2c5282; font-weight: 600; text-decoration: none;" onmouseover="this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'">MTEB</a> dataset</div>
76
+ <div style="font-size: 0.9rem; color: #2c5282; margin-top: 10px;">Massive Text Embedding Benchmark</div>
77
+ </div>
78
+
79
+ Evaluation of StackOverflow post retrieval using CodeRAG-Bench. Tests the ability to retrieve relevant StackOverflow posts given code-related queries.
80
+
81
+ | | |
82
+ |---------------|---------------------------------------------|
83
+ | Task category | t2t |
84
+ | Domains | Programming |
85
+ | Reference | https://arxiv.org/pdf/2406.14497 |
86
+
87
+ Source datasets:
88
+ - [mteb/CodeRAGStackoverflowPosts_unconverted](https://huggingface.co/datasets/mteb/CodeRAGStackoverflowPosts_unconverted)
89
+
90
+
91
+ ## How to evaluate on this task
92
+
93
+ You can evaluate an embedding model on this dataset using the following code:
94
+
95
+ ```python
96
+ import mteb
97
+
98
+ task = mteb.get_task("CodeRAGStackoverflowPosts")
99
+ evaluator = mteb.MTEB([task])
100
+
101
+ model = mteb.get_model(YOUR_MODEL)
102
+ evaluator.run(model)
103
+ ```
104
+
105
+ <!-- Datasets want link to arxiv in readme to autolink dataset with paper -->
106
+ To learn more about how to run models on `mteb` task check out the [GitHub repository](https://github.com/embeddings-benchmark/mteb).
107
+
108
+ ## Citation
109
+
110
+ If you use this dataset, please cite the dataset as well as [mteb](https://github.com/embeddings-benchmark/mteb), as this dataset likely includes additional processing as a part of the [MMTEB Contribution](https://github.com/embeddings-benchmark/mteb/tree/main/docs/mmteb).
111
+
112
+ ```bibtex
113
+
114
+ @misc{wang2024coderagbenchretrievalaugmentcode,
115
+ archiveprefix = {arXiv},
116
+ author = {Zora Zhiruo Wang and Akari Asai and Xinyan Velocity Yu and Frank F. Xu and Yiqing Xie and Graham Neubig and Daniel Fried},
117
+ eprint = {2406.14497},
118
+ primaryclass = {cs.SE},
119
+ title = {CodeRAG-Bench: Can Retrieval Augment Code Generation?},
120
+ url = {https://arxiv.org/abs/2406.14497},
121
+ year = {2024},
122
+ }
123
+
124
+
125
+ @article{enevoldsen2025mmtebmassivemultilingualtext,
126
+ title={MMTEB: Massive Multilingual Text Embedding Benchmark},
127
+ author={Kenneth Enevoldsen and Isaac Chung and Imene Kerboua and Márton Kardos and Ashwin Mathur and David Stap and Jay Gala and Wissam Siblini and Dominik Krzemiński and Genta Indra Winata and Saba Sturua and Saiteja Utpala and Mathieu Ciancone and Marion Schaeffer and Gabriel Sequeira and Diganta Misra and Shreeya Dhakal and Jonathan Rystrøm and Roman Solomatin and Ömer Çağatan and Akash Kundu and Martin Bernstorff and Shitao Xiao and Akshita Sukhlecha and Bhavish Pahwa and Rafał Poświata and Kranthi Kiran GV and Shawon Ashraf and Daniel Auras and Björn Plüster and Jan Philipp Harries and Loïc Magne and Isabelle Mohr and Mariya Hendriksen and Dawei Zhu and Hippolyte Gisserot-Boukhlef and Tom Aarsen and Jan Kostkan and Konrad Wojtasik and Taemin Lee and Marek Šuppa and Crystina Zhang and Roberta Rocca and Mohammed Hamdy and Andrianos Michail and John Yang and Manuel Faysse and Aleksei Vatolin and Nandan Thakur and Manan Dey and Dipam Vasani and Pranjal Chitale and Simone Tedeschi and Nguyen Tai and Artem Snegirev and Michael Günther and Mengzhou Xia and Weijia Shi and Xing Han Lù and Jordan Clive and Gayatri Krishnakumar and Anna Maksimova and Silvan Wehrli and Maria Tikhonova and Henil Panchal and Aleksandr Abramov and Malte Ostendorff and Zheng Liu and Simon Clematide and Lester James Miranda and Alena Fenogenova and Guangyu Song and Ruqiya Bin Safi and Wen-Ding Li and Alessia Borghini and Federico Cassano and Hongjin Su and Jimmy Lin and Howard Yen and Lasse Hansen and Sara Hooker and Chenghao Xiao and Vaibhav Adlakha and Orion Weller and Siva Reddy and Niklas Muennighoff},
128
+ publisher = {arXiv},
129
+ journal={arXiv preprint arXiv:2502.13595},
130
+ year={2025},
131
+ url={https://arxiv.org/abs/2502.13595},
132
+ doi = {10.48550/arXiv.2502.13595},
133
+ }
134
+
135
+ @article{muennighoff2022mteb,
136
+ author = {Muennighoff, Niklas and Tazi, Nouamane and Magne, Loïc and Reimers, Nils},
137
+ title = {MTEB: Massive Text Embedding Benchmark},
138
+ publisher = {arXiv},
139
+ journal={arXiv preprint arXiv:2210.07316},
140
+ year = {2022}
141
+ url = {https://arxiv.org/abs/2210.07316},
142
+ doi = {10.48550/ARXIV.2210.07316},
143
+ }
144
+ ```
145
+
146
+ # Dataset Statistics
147
+ <details>
148
+ <summary> Dataset Statistics</summary>
149
+
150
+ The following code contains the descriptive statistics from the task. These can also be obtained using:
151
+
152
+ ```python
153
+ import mteb
154
+
155
+ task = mteb.get_task("CodeRAGStackoverflowPosts")
156
+
157
+ desc_stats = task.metadata.descriptive_stats
158
+ ```
159
+
160
+ ```json
161
+ {
162
+ "train": {
163
+ "num_samples": 47078036,
164
+ "number_of_characters": 57728116335,
165
+ "documents_text_statistics": {
166
+ "total_text_length": 52714842616,
167
+ "min_text_length": 0,
168
+ "average_text_length": 2239.466515383097,
169
+ "max_text_length": 267046,
170
+ "unique_texts": 23368871
171
+ },
172
+ "documents_image_statistics": null,
173
+ "queries_text_statistics": {
174
+ "total_text_length": 5013273719,
175
+ "min_text_length": 3,
176
+ "average_text_length": 212.97718192832002,
177
+ "max_text_length": 29007,
178
+ "unique_texts": 23537082
179
+ },
180
+ "queries_image_statistics": null,
181
+ "relevant_docs_statistics": {
182
+ "num_relevant_docs": 23539018,
183
+ "min_relevant_docs_per_query": 1,
184
+ "average_relevant_docs_per_query": 1.0,
185
+ "max_relevant_docs_per_query": 1,
186
+ "unique_relevant_docs": 23539018
187
+ },
188
+ "top_ranked_statistics": null
189
+ }
190
+ }
191
+ ```
192
+
193
+ </details>
194
+
195
+ ---
196
+ *This dataset card was automatically generated using [MTEB](https://github.com/embeddings-benchmark/mteb)*