metadata
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 questionanswer_id— unique ID of the accepted answertitle— question titlequestion_body— cleaned text of the questionanswer_body— cleaned text of the accepted answerquestion_text— title + question bodycombined_text— title + question + answer (used for retrieval)tags— list of StackOverflow tagsquestion_score— score of the questionanswer_score— score of the answerview_count— number of viewsanswer_count— number of answersfavorite_count— number of favoritesquestion_creation_date— timestampanswer_creation_date— timestamp