Skip to content

Schlaflied/Plot-Ark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

84 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

English | δΈ­ζ–‡

Plot Ark β€” Agentic Curriculum Engine

License: AGPL v3 GitHub stars GitHub forks Docker Python Flask React PostgreSQL Redis LightRAG xAPI Tavily IMS Awesome

Plot Ark Logo

An open-source agentic curriculum engine that generates pedagogically grounded course content through narrative frameworks.

Unlike static AI course generators, Plot Ark applies evidence-based instructional design principles β€” Bloom's Taxonomy, Krashen's i+1 difficulty scaffolding, and Cognitive Load Theory β€” so the curriculum it generates is structured the way learning actually works.

Agentic pipeline β€” a Tavily research agent searches real academic sources first, then injects verified URLs into the generation prompt. No hallucinated citations.

Multi-provider AI β€” switch between OpenAI (GPT-4o-mini) and Google Gemini via a single env variable. Bring your own key.


🎬 Demo

syllabus upload β€” drop PDF/DOCX β†’ auto-fill form fields + extract required readings

syllabus upload

research agent&human in the loop β€” Tavily research agent β†’ human source review β†’ approve/reject

research agent&human in the loop

module adjuistment β€” drag-and-drop reorder, inline editing, all fields editable

module adjuistment

Knowledge Graph β€” concept map, node detail, natural language query with node highlight

Knowledge Graph

β–Ά Full demo video (Google Drive)


✨ Features

🧠 Curriculum Generation
  • Agentic source research β€” Tavily agent runs multi-type queries across academic (JSTOR, Springer, ResearchGate…), video (TED, Coursera, YouTube), and news (HBR, Economist, NYT) domains before generation begins
  • Grounded citations β€” verified real URLs injected into the prompt; sources panel shows full titles, type badges (πŸ“„/🎬/πŸ“°), and estimated read/watch time
  • Structure self-check β€” after generation, validates complexity_level progression and module count; auto-retries once if structure is invalid
  • Bloom's Taxonomy alignment β€” course code (e.g. ACCT 301) automatically maps to the correct cognitive level (Remember β†’ Create)
  • i+1 difficulty progression β€” complexity_level increases across modules so each one builds on the last
  • Cognitive Load constraints β€” max 2 readings per module, each with explicit pedagogical rationale
  • Course typology β€” project-based, essay, debate/roleplay, lab/simulation, or mixed assessment formats
  • SSE streaming β€” content streams token-by-token; research agent status shown before generation starts
  • Syllabus import β€” upload PDF or DOCX; GPT extracts topic, course code, level, audience, module count, and required readings to pre-fill the form
  • Course narrative β€” a 2–3 sentence "story of the course" generated at the skeleton phase; professor-editable, student read-only
✏️ Module Editor
  • Single-card navigation β€” left/right arrows through modules, or click the sidebar index
  • Drag-and-drop reordering β€” restructure the sequence without regenerating
  • Inline editing β€” edit every field across all three tabs (Objectives, Resources, Assessment)
  • Add / remove items β€” learning objectives, readings, assignments all editable
  • Resource cards β€” each reading shows type badge, estimated time, and links directly to the source
  • LocalStorage persistence β€” edits survive page refresh
  • Course narrative editing β€” professor can edit the course-level narrative inline; students see read-only version
πŸ“¦ Export
  • IMS Common Cartridge (.imscc) β€” direct import into Canvas, Moodle, D2L
  • PDF export β€” client-side jsPDF; readings listed as inline titles per module, full citations collected in a References section at the end
  • DOCX export β€” python-docx backend; same structure as PDF
  • Markdown export β€” full curriculum with readings and assignments as a .md file
  • Citation format selector β€” APA / MLA / Chicago, applied across all export formats
  • Copy to clipboard β€” paste into any editor
πŸ•ΈοΈ Knowledge Graph (LightRAG)
  • Material ingestion β€” right-side panel always visible; drag-and-drop PDF/PPTX upload (max 15 files, 50MB each); per-file progress tracking; Build Graph button triggers LightRAG ingestion
  • Undergraduate year sidebar β€” Year 1–4 + All Courses navigation; courses organized by academic year
  • Course management β€” course banner with pill navigation per year; add/delete/rename/drag-reorder course pills; each course has an editable full name tag; changes auto-saved to localStorage
  • Dynamic subject tabs β€” add/delete/rename/drag-reorder subject tabs; tab state persists across sessions
  • Force-directed visualization β€” interactive 2D graph with warm brown palette; node size scales with connection count
  • Node detail panel β€” click any concept to see its definition and connection count
  • Fullscreen mode β€” fullscreen toggle with ESC key support
  • Course search β€” search courses by name or code across all years; auto-navigates to correct year
  • Concept search β€” filter and highlight matching nodes across the graph
  • Knowledge query β€” ask natural language questions against the graph; Redis-cached answers (persistent cache)
  • Query history β€” starred + deletable history of past questions with subject tags
  • Persistent event loop β€” LightRAG async engine runs on a dedicated background thread; no cold-start penalty after first query
πŸ€– Agentic Layer (Roadmap)
  • xAPI mini-LRS β€” mock learner behavior (experienced/completed/struggled/passed) feeds a professor-facing Student Data panel; learner state bars, struggling concept insights, statement feed
  • xAPI event collection β€” fine-grained learner behavior (watched, skipped, struggled)
  • Redis learner state β€” real-time profile (mastered / struggling / recommended_next)
  • Professor LTM β€” system learns instructor preferences from edit history (diff-based, no surveys)
  • Multilingual concept bridging β€” explain in learner's native language, preserve English terminology

🧭 Design Philosophy

Most EdTech AI tools treat artificial intelligence as a threat to be monitored β€” detecting whether students used AI, flagging "inauthentic" work, enforcing originality.

Plot Ark takes the opposite position.

AI is a cognitive tool, not a threat. A student who uses AI to draft an answer, then understands it, refines it, and can explain it in their own words β€” that student has learned. Copy-paste without comprehension is a student deceiving themselves, not a system to be policed.

Plot Ark has no AI detection mechanism. It never will. The question it asks is not "did you use AI?" but "did learning happen?" β€” and it answers that through Bloom's Taxonomy alignment, i+1 difficulty progression, and xAPI learner behavior tracking.

The curriculum engine itself is built the same way: AI generates the structure, pedagogy constrains the output, and the instructor stays in the loop. The tool thinks; the human decides.

Anthropic's Economic Index (Jan 2026) found r = 0.925 between prompt sophistication and response sophistication β€” the deeper you engage it, the deeper it responds.


πŸ—οΈ Architecture

Course Generation Pipeline

Course Generation Pipeline

RAG & Knowledge Graph Ingestion

RAG & Knowledge Graph Ingestion

Planned agentic loop:

xAPI behavior events β†’ Curriculum Agent β†’ Redis learner state β†’ Narrative Engine β†’ LMS 

πŸ› οΈ Tech Stack

Layer Technology Role
Frontend React + TypeScript + Vite Module editor, SSE client, drag-and-drop
Backend Python + Flask + SSE Streaming curriculum generation
AI OpenAI GPT-4o-mini / Google Gemini Content generation (pluggable via AI_PROVIDER)
Research Agent Tavily Search API Pre-generation academic source retrieval
History PostgreSQL Persistent curriculum storage with favorites
Cache Redis Learner state (roadmap)
Knowledge Graph LightRAG + networkx + react-force-graph-2d Course material ingestion β†’ interactive concept graph
Graph Cache Redis + in-memory Query result cache (persistent cache) + rag instance reuse
Behavior Data xAPI 1.0.3 + mini-LRS Statement ingestion β†’ Redis learner state β†’ professor analytics panel (mock data; real LMS integration roadmap)
Export IMS Common Cartridge LMS-compatible output
Dev Docker Compose Single-command local environment

πŸš€ Quick Start

Prerequisites: Docker, an OpenAI or Gemini API key, a Tavily API key (free tier at tavily.com)

git clone https://github.com/Schlaflied/Plot-Ark cd Plot-Ark cp .env.example .env # Set AI_PROVIDER=openai or AI_PROVIDER=gemini # Add the corresponding API key + TAVILY_API_KEY docker compose up --build
Service URL
Frontend http://localhost:5173
Backend http://localhost:5000

πŸ•ΈοΈ Using the Knowledge Graph

The knowledge graph feature lets you ingest your own course materials (PDFs, PPTXs, or DOCXs) and explore them as an interactive concept map.

  1. Go to the Knowledge Graph tab
  2. In the Upload Materials panel on the right, fill in:
    • Subject name (required) β€” e.g. "Organizational Behavior"
    • Course code (optional) β€” e.g. "ADMS 2400"
    • Year (required) β€” which year of study this course belongs to
  3. Drop your PDF / PPTX / DOCX files into the dropzone
  4. Click Build Graph β€” ingestion runs in the background (~$0.10–0.30 per 10 PDFs at gpt-4o-mini rates)
  5. Once complete, the graph appears automatically under the correct year and course tab

πŸ“ Project Structure

plot-ark/ β”œβ”€β”€ docker-compose.yml β”œβ”€β”€ .env.example β”œβ”€β”€ docs/ β”‚ β”œβ”€β”€ architecture.md β”‚ β”œβ”€β”€ Syllabus Upload.gif ← Demo: syllabus import β†’ form auto-fill β”‚ β”œβ”€β”€ research agent&human in the loop.gif ← Demo: research agent + source review β”‚ β”œβ”€β”€ module adjuistment.gif ← Demo: module editing + drag-and-drop β”‚ └── Knowledge graph .gif ← Demo: year sidebar, course management, fullscreen, query β”œβ”€β”€ frontend/ ← React + TypeScript + Vite β”‚ β”œβ”€β”€ Dockerfile β”‚ β”œβ”€β”€ index.tsx ← Entry point β”‚ β”œβ”€β”€ App.tsx ← Main UI (curriculum engine + student view) β”‚ β”œβ”€β”€ components/ β”‚ β”‚ └── GraphViewer.tsx ← LightRAG knowledge graph viewer β”‚ └── vite.config.ts β”œβ”€β”€ backend/ ← Flask β”‚ β”œβ”€β”€ Dockerfile β”‚ β”œβ”€β”€ app.py ← SSE endpoint, Bloom's mapping, graph API β”‚ └── ingest.py ← LightRAG ingestion script (PDF + PPTX) └── data/ β”œβ”€β”€ materials/ ← Drop course PDFs/PPTXs here (gitignored) β”œβ”€β”€ lightrag_storage/ ← Business Law graph (gitignored, regenerate) └── lightrag_storage_call/ ← CALL graph (gitignored, regenerate) 

πŸ—ΊοΈ Roadmap

  • Flask SSE streaming backend
  • React frontend with module card navigation
  • Docker Compose dev environment
  • Bloom's Taxonomy course code mapping
  • i+1 difficulty progression
  • Inline module editing (all fields)
  • Drag-and-drop module reordering
  • IMS Common Cartridge + Markdown export
  • Tavily agentic research pipeline β€” real academic sources before generation
  • PostgreSQL history β€” persist, favorite, and delete curricula
  • LMS-style module sidebar (D2L Brightspace-inspired layout)
  • Multi-type resource pipeline β€” academic / video / news with type badges and estimated time
  • Structure self-check with auto-retry β€” validates complexity progression and module count
  • LightRAG knowledge graph β€” PDF/PPTX ingestion β†’ interactive force-directed concept map
  • Knowledge graph query β€” natural language Q&A against course material graph, Redis-cached
  • Assignment Timeline + Due Date calculator
  • Human-in-the-loop source review β€” approve/reject Tavily results before generation
  • xAPI mini-LRS β€” statement ingestion, learner state, professor analytics panel (mock data)
  • Syllabus import β€” PDF/DOCX β†’ auto-fill form + extract required readings
  • Course narrative β€” course-level story generated at skeleton phase, professor-editable
  • Citation format selector β€” APA / MLA / Chicago across all exports
  • PDF + DOCX export β€” client-side jsPDF and python-docx backend
  • Multi-course management β€” dynamic course slots with add/delete/rename/drag-reorder
  • My Courses dashboard β€” card grid with course history overview
  • Knowledge Graph course management β€” year sidebar, course banner, dynamic subject tabs, fullscreen, course search
  • Knowledge Graph ingestion panel β€” drag-and-drop material upload, always-visible right panel
  • Redis learner state management
  • Professor LTM β€” preference learning from edit history
  • LTI 1.3 β€” push into Canvas / Moodle

πŸ“„ License

GNU Affero General Public License v3.0 β€” see LICENSE

  • Free for personal use, research, and open-source projects
  • Modifications must be open-sourced under the same license
  • Network deployment requires your product to also be open-source
  • Commercial licensing β€” open a GitHub Issue

Featured In


⭐ Star History

Star History Chart

πŸ™ Acknowledgements

Architectural inspiration from Hive (YC-backed AI agent infrastructure) β€” the node pipeline, shared memory, and evolution loop patterns informed the agentic curriculum engine design.

Knowledge graph layer powered by LightRAG (HKUDS) β€” incremental knowledge graph construction and prerequisite inference across course materials.

Two-phase generation pipeline design inspired by OpenMAIC (Tsinghua University) β€” the outline-first, then expand pattern informed Plot Ark's curriculum skeleton generation approach.

Built with Claude (Anthropic) as AI pair programmer.

Special thanks to the two chief quality assurance officers who supervised every late-night coding session β€” Icy (ε†°η³–, white) and ι›ͺζ’¨ (calico):

Icy and ι›ͺζ’¨ β€” Chief QA Officers


Report Bug Β· Request Feature

Star this repo if it's useful.

Packages

 
 
 

Contributors