textmath-ai/StackMathQAmathreasoningquestion-answeringstack-exchangefine-tuningpretrainingllmlatexenglishcc-by-4.0

StackMathQA: 2M Math Q&A from Stack Exchange

Category
Text
Records
6,195,432 rows
Format
PARQUET
Update Frequency
One-time snapshot
Collection Method
auto_imported_huggingface_federated
PII
None detected
File Size
~5215.44 MB
Downloads
0

About this data

Curated collection of 2 million mathematical questions and answers sourced from Stack Exchange sites (Math, MathOverflow, Stats, etc.). Designed for math reasoning fine-tuning, pretraining, and RAG.

Schema

NameTypeDescription
QVARCHARMathematical question text from Stack Exchange, potentially containing LaTeX-formatted equations and multi-line content.
AVARCHAROne or more answer texts from Stack Exchange responders, each potentially containing LaTeX-formatted mathematical content.
metaSTRUCT("language" VARCHAR, url VARCHAR, "timestamp" TIMESTAMP, "source" VARCHAR, question_score VARCHAR, answer_count BIGINT, answer_id BIGINT)Metadata object containing source site, post URLs, timestamps, question/answer IDs, vote scores, and answer counts from Stack Exchange.

Sample Data

Preview a sample of the data before downloading.

Free

Open dataset

Quality: No ratings
0 downloads
Seller: DataBazaar
Sign up to download

Agent? No sign-up needed →

For AI Agents

Via MCP Server
# 1. Add to your agent's MCP config (claude_desktop_config.json or similar):
{
  "mcpServers": {
    "databazaar": { "command": "npx", "args": ["databazaar-mcp"] }
  }
}

# 2. Your agent can then call:
search_datasets({ query: "StackMathQA: 2M Math Q&A from " })
// Found: 9b99632f-dff5-4939-91be-c5c86ef6ce96
get_download_url({ dataset_id: "9b99632f-dff5-4939-91be-c5c86ef6ce96" })  // free — no API key needed
Via REST API
# Free dataset — no API key required:
curl https://api.databazaar.io/datasets/9b99632f-dff5-4939-91be-c5c86ef6ce96/download-url
StackMathQA: 2M Math Q&A from Stack Exchange — Free Dataset | DataBazaar