Datasets:
File size: 7,298 Bytes
de93c55 ebdb7c9 de93c55 db365d5 de93c55 7592ded e9207ed db365d5 89ffe2e de93c55 7592ded e9207ed db365d5 89ffe2e de93c55 081ea50 ebdb7c9 081ea50 f9576b5 081ea50 ef206bc 081ea50 0a74b46 3b620c0 0a74b46 93545d6 0a74b46 081ea50 93545d6 849f3f8 93545d6 069f66d 081ea50 069f66d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 |
---
license: cc-by-sa-4.0
size_categories:
- 10K<n<100K
task_categories:
- question-answering
dataset_info:
- config_name: angular
features:
- name: _id
dtype: string
- name: text
dtype: string
- name: metadata
struct:
- name: end_byte
dtype: int64
- name: start_byte
dtype: int64
- name: url
dtype: string
splits:
- name: train
num_bytes: 361016560
num_examples: 117288
download_size: 71892184
dataset_size: 361016560
- config_name: godot
features:
- name: _id
dtype: string
- name: text
dtype: string
- name: metadata
struct:
- name: end_byte
dtype: int64
- name: start_byte
dtype: int64
- name: url
dtype: string
splits:
- name: train
num_bytes: 103982046
num_examples: 25482
download_size: 33422376
dataset_size: 103982046
- config_name: langchain
features:
- name: _id
dtype: string
- name: text
dtype: string
- name: metadata
struct:
- name: end_byte
dtype: int64
- name: start_byte
dtype: int64
- name: url
dtype: string
splits:
- name: train
num_bytes: 215838691
num_examples: 49514
download_size: 70930374
dataset_size: 215838691
- config_name: laravel
features:
- name: _id
dtype: string
- name: text
dtype: string
- name: metadata
struct:
- name: end_byte
dtype: int64
- name: start_byte
dtype: int64
- name: url
dtype: string
splits:
- name: train
num_bytes: 141634148
num_examples: 52351
download_size: 39525810
dataset_size: 141634148
- config_name: yolo
features:
- name: _id
dtype: string
- name: text
dtype: string
- name: metadata
struct:
- name: end_byte
dtype: int64
- name: start_byte
dtype: int64
- name: url
dtype: string
splits:
- name: train
num_bytes: 134629730
num_examples: 27207
download_size: 42140310
dataset_size: 134629730
configs:
- config_name: angular
data_files:
- split: train
path: angular/train-*
- config_name: godot
data_files:
- split: train
path: godot/train-*
- config_name: langchain
data_files:
- split: train
path: langchain/train-*
- config_name: laravel
data_files:
- split: train
path: laravel/train-*
- config_name: yolo
data_files:
- split: train
path: yolo/train-*
---
# Dataset Card for FreshStack (Corpus)
[Homepage](https://fresh-stack.github.io) |
[Repository](https://github.com/fresh-stack/freshstack) |
[Paper](https://arxiv.org/abs/2504.13128)
FreshStack is a holistic framework to construct challenging IR/RAG evaluation datasets that focuses on search across niche and recent topics.
This dataset (October 2024) contains the query, nuggets, answers and nugget-level relevance judgments of 5 niche topics focused on software engineering and machine learning.
The queries and answers (accepted) are taken from Stack Overflow, GPT-4o generates the nuggets and labels the relevance between each nugget and a given document list.
This repository contains the corpus of GitHub chunked documents of five niche topics in freshstack. The queries, answers and nuggets can be found [here](https://huggingface.co/datasets/freshstack/queries-oct-2024).
## Dataset Structure
To access the data using HuggingFace `datasets`:
```
topic='langchain' # or any of the 5 topics
freshstack = datasets.load_dataset('freshstack/corpus-oct-2024', topic)
# train set
for data in freshstack['train']:
doc_id = data['_id']
doc_text = data['text']
```
## Dataset Statistics
The following table contains the number of documents (`#D`) and the number of GitHub repositories used (`#G`) in the FreshStack collection.
| Topic | Versions | Domain | Train | |
|:----:|:-----:|:-----:|:-----:|:------:|
| | | | **#D**| **#G** |
| langchain | - |Machine Learning | 49,514 | 10 |
| yolo | v7 & v8 | Computer Vision | 27,207 | 5 |
| laravel | 10 & 11 | Back-end Development | 52,351 | 9 |
| angular | 16, 17 & 18 | Front-end Development| 117,288 | 4 |
| godot | 4 | Game Development | 25,482 | 6 |
The following table contains the list of original GitHub repositories used to construct the following corpus for each topic.
| Topic | GitHub Repositories |
|:----:|:-----|
| langchain | [LangChain (Python)](https://github.com/langchain-ai/langchain), [LangChain (JS)](https://github.com/langchain-ai/langchainjs), [LangChain Next.js Template](https://github.com/langchain-ai/langchain-nextjs-template), [Chroma Vector DB](https://github.com/chroma-core/chroma), [OpenAI Cookbook](https://github.com/openai/openai-cookbook), [OpenAI Python Library](https://github.com/openai/openai-python), [LlamaIndex](https://github.com/run-llama/llama_index), [Azure OpenAI Samples](https://github.com/Azure-Samples/openai), [Azure Search OpenAI Demo](https://github.com/Azure-Samples/azure-search-openai-demo), [Hugging Face Transformers](https://github.com/huggingface/transformers) |
| yolo | [Ultralytics YOLOv8](https://github.com/ultralytics/ultralytics), [YOLOv8 Documentation](https://github.com/ultralytics/docs), [PyTorch Framework](https://github.com/pytorch/pytorch), [YOLOv7 Implementation](https://github.com/WongKinYiu/yolov7), [OpenCV Library](https://github.com/opencv/opencv) |
| laravel | [Laravel Framework](https://github.com/laravel/framework), [Laravel Application Skeleton](https://github.com/laravel/laravel), [Laravel Official Website](https://github.com/laravel/laravel.com), [Laravel Documentation](https://github.com/laravel/docs), [Laravel Breeze (Auth Starter)](https://github.com/laravel/breeze), [Livewire (Full-stack Framework)](https://github.com/livewire/livewire), [PHP Language Source](https://github.com/php/php-src), [PHP Official Documentation](https://github.com/php/doc-en), [PHP Website Source](https://github.com/php/web-php) |
| angular | [Angular Framework](https://github.com/angular/angular), [Angular Components](https://github.com/angular/components), [Angular CLI](https://github.com/angular/angular-cli), [TypeScript Language](https://github.com/microsoft/TypeScript) |
| godot | [Godot Engine](https://github.com/godotengine/godot), [Godot Demo Projects](https://github.com/godotengine/godot-demo-projects), [Godot Documentation](https://github.com/godotengine/godot-docs), [Godot Official Website](https://github.com/godotengine/godot-website), [Learn GDScript with GDQuest](https://github.com/GDQuest/learn-gdscript), [C# Language](https://github.com/dotnet/csharplang) |
## License
The FreshStack datasets are provided under the CC-BY-SA 4.0 license.
> The original GitHub repositories used for constructing the corpus may contain non-permissive licenses; we advise the reader to check the licenses for each repository carefully.
## Citation
```
@misc{thakur2025freshstack,
title={FreshStack: Building Realistic Benchmarks for Evaluating Retrieval on Technical Documents},
author={Nandan Thakur and Jimmy Lin and Sam Havens and Michael Carbin and Omar Khattab and Andrew Drozdov},
year={2025},
eprint={2504.13128},
archivePrefix={arXiv},
primaryClass={cs.IR},
url={https://arxiv.org/abs/2504.13128},
}
``` |