File size: 1,209 Bytes
cdb36af
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: mit
tags:
- code
---
# StackOverflow QA Dataset for RAG

## Description

This dataset contains question–answer pairs extracted from the public StackOverflow data dump.

Each example consists of a question with its accepted answer, along with metadata such as tags, scores, and engagement statistics. The dataset is designed for retrieval-augmented generation (RAG), semantic search, and information retrieval tasks.

---

## Dataset Structure

Each row is a JSON object with the following fields:

- `question_id` — unique ID of the question  
- `answer_id` — unique ID of the accepted answer  
- `title` — question title  
- `question_body` — cleaned text of the question  
- `answer_body` — cleaned text of the accepted answer  
- `question_text` — title + question body  
- `combined_text` — title + question + answer (used for retrieval)  
- `tags` — list of StackOverflow tags  
- `question_score` — score of the question  
- `answer_score` — score of the answer  
- `view_count` — number of views  
- `answer_count` — number of answers  
- `favorite_count` — number of favorites  
- `question_creation_date` — timestamp  
- `answer_creation_date` — timestamp