CoolFace
Datasetpublic

NecroMOnk/khan-math-algebra

Khan Math – Algebra Algebra problems from Khan Academy in ChatML format. Covers topics such as equations, polynomials, functions, and more. Quick Start from datasets import load_dataset dataset = load_dataset("NecroMOnk/khan-math-algebra") print(dataset["train"][0]) Example record: { "messages": [ {"role": "system", "content": "You are a mathematics tutor. Answer the following math problem."}, {"role": "user", "content": "Find the arclength of the… See the full description on the dataset page: https://huggingface.co/datasets/NecroMOnk/khan-math-algebra.

sourceHugging Facemitupdated 7mo agoView on Hugging Face
0likes12downloads
Dataset Card

Khan Math – Algebra

Algebra problems from Khan Academy in ChatML format. Covers topics such as equations, polynomials, functions, and more.

Quick Start

python
from datasets import load_dataset

dataset = load_dataset("NecroMOnk/khan-math-algebra")

print(dataset["train"][0])

Example record:

json
{
  "messages": [
    {"role": "system", "content": "You are a mathematics tutor. Answer the following math problem."},
    {"role": "user", "content": "Find the arclength of the function $f(x) = \\log(2x)$ on the interval $x=4$ to $x=5$"},
    {"role": "assistant", "content": "$-\\sqrt{17}+\\sqrt{26}+\\tanh^{-1}\\left(\\sqrt{17}\\right)-\\tanh^{-1}\\left(\\sqrt{26}\\right)$"}
  ],
  "topic": "calculus",
  "subtopic": "arclength"
}

Dataset Stats

  • 1.24M problems
  • ChatML format
  • Source: Khan Academy algebra materials
  • Language: English
  • Math notation: LaTeX

Fields

FieldTypeDescription
messageslistChatML turns: system, user, assistant
topicstringTop-level math topic (e.g. calculus)
subtopicstringSpecific subtopic (e.g. arclength)

Source

Problems sourced from Khan Academy via the AMPS dataset. Problems and answers are in LaTeX format.

Versions

  • v1 – raw extraction, minor artifacts possible (e.g. degenerate intervals, +- notation)
  • v2 – cleaned formulas, extraction artifacts removed (coming soon)