reddit-qa-dataset / README.md
muzammil-eds's picture
Update README.md
1497059 verified
metadata
license: apache-2.0
language:
  - en
pretty_name: Reddit QA Dataset
task_categories:
  - question-answering
  - text-generation
tags:
  - reddit
  - qa
  - conversational
  - dialogue
  - sft
size_categories:
  - 100K<n<1M

Reddit QA Dataset

Dataset Summary

The Reddit QA Dataset by EnDevSols is a large-scale, conversational dataset curated from diverse community discussions on Reddit. It is designed to capture the authentic, natural flow of human dialogue, making it an excellent resource for training Large Language Models (LLMs) to handle casual, unstructured queries and complex, multi-turn community interactions.

By leveraging highly upvoted answers and community-vetted knowledge, this dataset bridges the gap between rigid, academic Q&A formats and the way humans actually communicate online.

Dataset Structure

Data Fields

(Note: Verify these column names against your exact PyArrow/Parquet schema)

  • question (string): The initial post title, prompt, or user query.
  • answer (string): The top-voted or most relevant community response.
  • subreddit (string): The specific community the data was sourced from (useful for domain-specific filtering or conditional training).
  • score (int): The net upvote score of the answer, serving as a proxy for human preference and response quality.

Motivation & Use Cases

While technical reasoning datasets (like [Multi-Domain-Reasoning-SFT](https://huggingface.co/datasets/EnDevSols/Multi-Domain-Reasoning-SFT)) teach models how to think, the Reddit QA Dataset teaches models how to speak to humans naturally.

Primary Use Cases:

  1. Conversational Fine-Tuning: Trains models to understand colloquialisms, internet slang, and casual phrasing, resulting in a more approachable and fluid AI persona.
  2. Preference Alignment (DPO/RLHF): The inherent scoring system of Reddit data makes it an excellent foundation for Direct Preference Optimization (DPO), teaching the model what types of answers humans naturally prefer.
  3. Diverse Knowledge Retrieval: Covers a massive breadth of topics, from troubleshooting niche tech issues to general life advice, expanding the model's zero-shot conversational capabilities.

Usage

Loading the Dataset

You can easily load this dataset using the Hugging Face datasets library:

from datasets import load_dataset

# Load the training split
dataset = load_dataset("EnDevSols/reddit-qa-dataset", split="train")

print(dataset.column_names)

Example Formatting for ChatML

If you are formatting this dataset for ChatML fine-tuning (e.g., Unsloth/TRL), you can map the questions and answers seamlessly:

def format_chatml(example):
    q = example["question"]
    a = example["answer"]
    
    return {
        "messages": [
            {"role": "user", "content": q},
            {"role": "assistant", "content": a}
        ]
    }

formatted_dataset = dataset.map(format_chatml)

License and Attribution

Created and maintained by EnDevSols. This dataset is built on publicly available internet data. Users should ensure compliance with relevant platform terms of service and standard data privacy guidelines when utilizing this dataset for commercial applications.