license:mit size_categories:1K<n<10K format:parquet modality:text library:datasets library:pandas library:mlcroissant library:polars region:us
---
license: mit
dataset_info:
  features:
  - name: tag
    dtype: string
  - name: question_body
    dtype: string
  - name: choosen
    list:
    - name: content
      dtype: string
    - name: role
      dtype: string
  - name: rejected
    list:
    - name: content
      dtype: string
    - name: role
      dtype: string
  splits:
  - name: train
    num_bytes: 17189190
    num_examples: 2270
  - name: test
    num_bytes: 4420653
    num_examples: 568
  download_size: 9907733
  dataset_size: 21609843
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
  - split: test
    path: data/test-*
---
# Mathematics Q&A Dataset for ORPO Fine-Tuning

This dataset contains questions and answers focused on various topics within the field of mathematics. The data is optimized for ORPO (Ordered Response Pair Optimization) fine-tuning and includes columns for tags, question bodies, and structured answer formats.

## Table of Contents
- [Dataset Overview](#dataset-overview)
- [Topics Covered](#topics-covered)
- [Data Columns](#data-columns)
- [Usage](#usage)

## Dataset Overview
The Mathematics Q&A Dataset consists of questions and their corresponding answers from various mathematical topics. This dataset is valuable for research and development in natural language processing (NLP), machine learning (ML), and educational applications. The data has been optimized for ORPO fine-tuning, which involves structuring the answers into "chosen" and "rejected" formats.

## Topics Covered
The dataset covers a variety of mathematical topics:
- Combinatorics
- Differentiation
- Game Theory
- Geometry
- Linear Algebra
- Logic
- Matrices
- Number Theory
- Probability

## Data Columns
The dataset is structured into the following columns:

- `tag`: The category or topic of the question.
- `question_body`: The full text of the question.
- `choosen`: A JSON structure of the question and the accepted answer.
- `rejected`: A JSON structure of the question and an additional, non-accepted answer.

### Example
| tag            | question_body                                                    | choosen                                                        | rejected                                                       |
|----------------|------------------------------------------------------------------|----------------------------------------------------------------|----------------------------------------------------------------|
| probability    | What is the probability of getting heads in a coin toss?         | [{"role": "user", "content": "What is the probability..."}...  | [{"role": "user", "content": "What is the probability..."}...  |
| linear-algebra | How do you find the determinant of a matrix?                     | [{"role": "user", "content": "How do you find the..."}...      | [{"role": "user", "content": "How do you find the..."}...      |

## Usage
The dataset can be used for various purposes, including but not limited to:
- Training machine learning models for question answering systems.
- Fine-tuning models using the ORPO methodology.
- Developing educational tools and applications.
- Conducting research in NLP and text mining.
