About AI Consulting Deep-Tech Sovereign AI
AI Solutions
Team Contact
EdTech AI

Socratic Learning Machine

Intelligent Tutoring System for Critical Thinking

A student is stuck. An average teacher explains it again, only slower. A good teacher asks a question, so the student does the thinking. A great teacher asks the right question, because they can hear the difference between a small gap opening today and a foundation that quietly went missing a year ago. Teaching has always worked this way. An answer you are given is forgotten by next week. An answer you work out yourself stays with you. Most AI tutors are the first teacher: they race to the correct answer in the fewest possible seconds, and train a generation to look things up rather than think things through. This system is built to be the third. It holds the answer back and offers a question, and before it chooses that question, it listens for how deeply the student is already thinking.

That judgement is made against two established pedagogical frameworks, Bloom's Taxonomy and Webb's Depth of Knowledge, which together place each student response on a scale running from recall through to synthesis. The engine then selects from six distinct Socratic question types matched to that level, beginning with clarifying questions at DoK 1 and moving up, as the student shows they are ready, to the questions about assumptions, evidence and implication that sit at DoK 4. Underneath the dialogue, the curriculum is stored as a knowledge ontology rather than as loose text: concepts are nodes, and the edges between them carry meaning such as requires, explains and is analogous to. So when a student stalls on membrane potential, the system can trace the path back to the logarithm they never quite secured two subjects away, retrieve it, and ask from there. Every turn passes through a safety layer first, the models are open-weight and can run inside the institution's own infrastructure, and the pedagogy is inspectable rather than hidden in a prompt. The sections below open up each part of that pipeline.

Student Responds
input + context window
Safety & Spell check
LlamaGuard · async · non blocking
Cognitive Assessment
Bloom's stage × DoK level
Clarifying
Remember · DoK 1
Probing Assumptions
Analyze · DoK 2 to 3
Synthesis / Evaluate
Create · DoK 4
Answer + Escalated Question
grade adapted · context rich · ↻ loops back
KhanMigo Generic nudge engine
  • One-size-fits-all follow-up
    "Can you explain more?" regardless of cognitive stage
  • No cognitive depth model
    Does not map student to Bloom's or DoK level
  • Static question repertoire
    No escalation, same prompt pattern across all turns
  • Flat retrieval
    No curriculum graph, chunks retrieved by similarity only
vs
This system Cognitive-aware Socratic engine
  • 6 targeted question types
    Each mapped to a specific Bloom's stage and DoK depth
  • Real-time cognitive assessment
    Bloom's × DoK 2D map updated every turn
  • Auto-escalating challenge
    Clarifying → Probing → Synthesis as student improves
  • Graph RAG curriculum awareness
    Multi-hop retrieval across prerequisites and concepts

Socratic Learning Machine: FARM Stack Demo

FastAPI + React + MongoDB

Demo
Framework Fully custom async pipeline · LangChain
Backend FastAPI · Python
Frontend React.js
RAG Graph RAG · Ontology
LLM Llama 3.3 70B · Qwen 3 32B
Interface + Safety layer
Student interface
React · Pages, Components, Hooks
Safety & input validation
LlamaGuard · Spell check · Content filter
Conversation memory
MongoDB · Session context · Learning history
RAG retrieval to Graph RAG (v2)
PineconeDB · Jina AI 1024D · Ontology
Socratic flow engine (async)
Cognitive level assessment
Bloom's Taxonomy + Webb's DoK depth detection
Socratic question type selector
6 types · auto escalates with student progress
Response and follow up generator
Grade level adapted · context aware · async
LLM layer (agnostic)
Llama 3.3 70B · Qwen 3 32B · swappable
Current: flat vector RAG
"Photosynthesis is the process by which..."
"Chlorophyll absorbs light energy at..."
"ATP synthesis occurs in the mitochondria..."
"Light reactions vs dark reactions..."

Chunks retrieved by similarity only. No concept relationships, no prerequisite awareness, no cross chapter linking.

V2: knowledge ontology graph
Textbook
Chapter 3
Chapter 7
Photosynthesis
Cell respiration
Chlorophyll
ATP synthesis

Edges encode: prerequisite · explains · contradicts · extends.
Multi-hop retrieval across books, chapters, and topics.

Backend
FastAPI · Python
Frontend
React · JS
Database
MongoDB
Vector DB
PineconeDB
Embeddings
Jina-AI 1024D
Safety
LlamaGuard
LLM (primary)
Llama 3.3 70B
LLM (alt)
Qwen 3-32B
AI Strategy · Architecture slides
Slide 1 Slide 2 Slide 3 Slide 4 Slide 5 Slide 6 Slide 7 Slide 8 Slide 9 Slide 10 Slide 11 Slide 12 Slide 13 Slide 14 Slide 15 Slide 16 Slide 17
1 / 17