--- license: cc-by-4.0 language: - en tags: - education - curriculum - standards - mathematics - science - ela - social-studies - computer-science - embeddings - sqlite pretty_name: StandardGraph — K-12 Curriculum Standards Graph size_categories: - 100K np.ndarray: resp = httpx.post("http://localhost:11434/api/embed", json={"model": "nomic-embed-text", "input": [text]}) return np.array(resp.json()["embeddings"][0], dtype=np.float32) def search(query: str, system: str, k: int = 5, conn=conn): rows = conn.execute( "SELECT s.id, e.vector FROM standards s JOIN embeddings e ON e.standard_id=s.id WHERE s.system=?", (system,) ).fetchall() ids = [r[0] for r in rows] vecs = np.array([np.frombuffer(r[1], dtype=np.float32) for r in rows]) vecs /= np.linalg.norm(vecs, axis=1, keepdims=True) + 1e-9 q = embed(query) q /= np.linalg.norm(q) + 1e-9 sims = vecs @ q top = np.argsort(sims)[::-1][:k] return [(ids[i], float(sims[i])) for i in top] search("adding fractions with unlike denominators", "ccss") # [('CCSS.MATH.5.NF.A.2', 0.91), ('CCSS.MATH.5.NF.A.1', 0.88), ...] ``` --- ## MCP server StandardGraph ships as a [Model Context Protocol](https://modelcontextprotocol.io) server for direct use inside Claude, Cursor, and other MCP-compatible AI tools. ```bash git clone https://github.com/swoopeagle/standardgraph cd standardgraph uv run python -m common_core.server ``` Tools: `search_standards`, `get_standard`, `find_crosswalk`, `list_systems`, `get_system_overview`. See the [GitHub repo](https://github.com/swoopeagle/standardgraph) for the one-line installer for Claude Desktop. --- ## Evaluation Run the automated eval suite against the DB: ```bash git clone https://github.com/swoopeagle/standardgraph cd standardgraph uv run python scripts/eval/run_all.py ``` Current results (June 2026): | Check | Result | |---|---| | Coverage (15 required IDs + hub counts) | ✅ Pass | | Crosswalk quality (confidence distribution + routing) | ✅ Pass | | Search quality — Recall@5 on 15 golden queries | ✅ 93% (threshold: 70%) | | Duplicate detection | ✅ Pass (WARNs are intentional cross-grade text sharing in source standards) | --- ## Sources | System | Source | |---|---| | CCSS Math & ELA, NGSS, CSTA, C3 | Common Standards Project API (achieve.org) | | US state standards (50 states + DC, 5 subjects) | Common Standards Project API | | Singapore MOE | Ministry of Education Singapore (official syllabi PDFs) | | Japan MEXT | Ministry of Education, Culture, Sports, Science and Technology | | Hong Kong EDB | Education Bureau Hong Kong | | Australia ACARA | Australian Curriculum, Assessment and Reporting Authority | | New Zealand | Ministry of Education New Zealand | | Scotland CfE | Education Scotland (Curriculum for Excellence) | | Ireland NCCA | National Council for Curriculum and Assessment | | India NCERT | National Council of Educational Research and Training (grades 1-12) | | Quebec MEES | Ministère de l'Éducation et de l'Enseignement supérieur | | Ghana NaCCA | National Council for Curriculum and Assessment | | South Africa CAPS | Department of Basic Education | | Rwanda REB | Rwanda Education Board | | AP Courses | College Board (Course and Exam Descriptions, PDFs) | | Cambridge IGCSE | Cambridge Assessment International Education | | IB MYP/DP | International Baccalaureate Organization | | New Hampshire CS | NH Department of Education CS Standards (2018) | | Wisconsin CS | Wisconsin DPI CS Standards (December 2025) | International and AP standards were extracted from official PDF documents using Gemma 4 31B (via Ollama). --- ## License **Embeddings and crosswalk mappings:** original work, released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). **Standards text:** reproduced from official public government and organizational documents. Each standard's `source_url` field links to the authoritative source. This compilation is released under CC BY 4.0; users should verify compliance with the originating body's terms for their use case.