Stack Exchange AI Dataset — Code, Math & Reasoning RLHF
Pricing
from $2.00 / 1,000 results
Stack Exchange AI Dataset — Code, Math & Reasoning RLHF
Extract high-quality Q&A pairs with accepted answers, scores, and markdown bodies across Stack Overflow, Math, and 170+ communities for RLHF and LLM training.
Pricing
from $2.00 / 1,000 results
Rating
0.0
(0)
Developer
Axery
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
5 days ago
Last modified
Categories
Share
Stack Exchange AI Dataset Scraper
Extract high-quality reasoning, programming, and mathematical Question & Answer pairs across Stack Exchange communities — tailored specifically for LLM fine-tuning, SFT (Supervised Fine-Tuning), DPO, and RLHF reward modeling.
Pure HTTP via Stack Exchange REST API. No browser overhead. Fast, clean, and reliable.
⚡ What makes this different for AI builders
| Generic Scraping | What this Actor gives you | |
|---|---|---|
| RLHF Signal | Unranked text blobs | Direct pairing of question + acceptedAnswer + topAlternativeAnswers with exact scores for preference optimization |
| Clean Formatting | Tangled HTML with scripts | Clean code blocks (`code` and ``` blocks) and clean plain text |
| Quality Filter | Scrapes low-effort/spam questions | Configurable minScore and acceptedOnly to extract only golden, human-vetted knowledge |
| Multi-Domain | Just Stack Overflow | Supports 170+ communities: Math, Cross Validated (Statistics), Server Fault (DevOps), Physics, Ask Ubuntu |
📥 Input Parameters
{"site": "stackoverflow","tagged": "python;pandas","minScore": 5,"acceptedOnly": true,"maxItems": 50}
| Field | Type | Default | Description |
|---|---|---|---|
site | string | stackoverflow | stackoverflow, math, stats, superuser, serverfault, askubuntu, ai, physics, etc. |
tagged | string | python | Filter by tags (e.g. machine-learning, calculus, docker). |
intitle | string | null | Optional keyword search in title. |
minScore | integer | 3 | Minimum net upvotes. Filters out noise. |
acceptedOnly | boolean | true | Only return questions with a verified accepted answer (RLHF gold standard). |
includeAnswers | boolean | true | Fetch and pair full accepted answer and alternative answers. |
sort | string | votes | votes (highest quality first), activity, or creation. |
maxItems | integer | 50 | Maximum Q&A pairs to extract. |
📤 Output Structure
Each record is an instruction-tuning ready pair:
{"questionId": 231767,"site": "stackoverflow","title": "What does the \"yield\" keyword do in Python?","bodyText": "What functionality does the yield keyword provide in Python?...","score": 13135,"tags": ["python", "iterator", "generator", "yield"],"isAnswered": true,"hasAcceptedAnswer": true,"acceptedAnswerId": 231855,"acceptedAnswer": {"answerId": 231855,"isAccepted": true,"score": 18318,"bodyText": "To understand what yield does, you must understand what generators are...","creationDate": "2008-10-23T22:21:11+00:00","author": "e-satis"},"topAlternativeAnswers": [{"answerId": 231835,"score": 4200,"bodyText": "Think of it like a return statement, but instead of exiting the function..."}],"url": "https://stackoverflow.com/questions/231767","creationDate": "2008-10-23T22:13:40+00:00"}