NecroMOnk commited on
Commit
8f00c8c
·
verified ·
1 Parent(s): 5f998a8

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +24 -18
README.md CHANGED
@@ -17,31 +17,45 @@ size_categories:
17
 
18
  Algebra problems from Khan Academy in ChatML format. Covers topics such as equations, polynomials, functions, and more.
19
 
20
- ## Dataset size
21
 
22
- ~1.24M problem-answer pairs.
 
 
 
23
 
24
- ## Format
 
25
 
26
- Each record is in ChatML format:
27
 
28
  ```json
29
  {
30
  "messages": [
31
  {"role": "system", "content": "You are a mathematics tutor. Answer the following math problem."},
32
- {"role": "user", "content": "Find the curl of..."},
33
- {"role": "assistant", "content": "$\\left\\{...\\right\\}$"}
34
  ],
35
  "topic": "calculus",
36
- "subtopic": "curl"
37
  }
38
  ```
39
 
 
 
 
 
 
 
 
 
40
  ## Fields
41
 
42
- - `messages`: ChatML conversation with system, user, and assistant turns
43
- - `topic`: top-level math topic (algebra, calculus, etc.)
44
- - `subtopic`: specific subtopic derived from folder structure
 
 
45
 
46
  ## Source
47
 
@@ -52,11 +66,3 @@ Problems and answers are in LaTeX format.
52
 
53
  - **v1** – raw extraction, minor artifacts possible (e.g. degenerate intervals, `+-` notation)
54
  - **v2** – cleaned formulas, extraction artifacts removed *(coming soon)*
55
-
56
- ## Usage
57
-
58
- ```python
59
- from datasets import load_dataset
60
-
61
- ds = load_dataset("NecroMOnk/khan-math-algebra")
62
- ```
 
17
 
18
  Algebra problems from Khan Academy in ChatML format. Covers topics such as equations, polynomials, functions, and more.
19
 
20
+ ## Quick Start
21
 
22
+ ```python
23
+ from datasets import load_dataset
24
+
25
+ dataset = load_dataset("NecroMOnk/khan-math-algebra")
26
 
27
+ print(dataset["train"][0])
28
+ ```
29
 
30
+ Example record:
31
 
32
  ```json
33
  {
34
  "messages": [
35
  {"role": "system", "content": "You are a mathematics tutor. Answer the following math problem."},
36
+ {"role": "user", "content": "Find the arclength of the function $f(x) = \\log(2x)$ on the interval $x=4$ to $x=5$"},
37
+ {"role": "assistant", "content": "$-\\sqrt{17}+\\sqrt{26}+\\tanh^{-1}\\left(\\sqrt{17}\\right)-\\tanh^{-1}\\left(\\sqrt{26}\\right)$"}
38
  ],
39
  "topic": "calculus",
40
+ "subtopic": "arclength"
41
  }
42
  ```
43
 
44
+ ## Dataset Stats
45
+
46
+ - **1.24M** problems
47
+ - ChatML format
48
+ - Source: Khan Academy algebra materials
49
+ - Language: English
50
+ - Math notation: LaTeX
51
+
52
  ## Fields
53
 
54
+ | Field | Type | Description |
55
+ |---|---|---|
56
+ | `messages` | list | ChatML turns: system, user, assistant |
57
+ | `topic` | string | Top-level math topic (e.g. `calculus`) |
58
+ | `subtopic` | string | Specific subtopic (e.g. `arclength`) |
59
 
60
  ## Source
61
 
 
66
 
67
  - **v1** – raw extraction, minor artifacts possible (e.g. degenerate intervals, `+-` notation)
68
  - **v2** – cleaned formulas, extraction artifacts removed *(coming soon)*