ERA Academy
“One AI engine, three assistants (student tutor, teacher and admin), and each one only ever sees what its user is allowed to see.”
- Full learning platform: course → module → lesson → subskill, progress tracking, goal-based onboarding and an admin CMS
- One shared AI agent engine powers 3 agents (Student Tutor, Teacher Assistant, Admin Assistant), streamed over SSE
- Provider adapters for Claude (official Anthropic SDK), OpenAI and local Ollama models such as Qwen2.5, with usage and cost limits
- RAG knowledge base: PDF, DOCX, TXT, MD → chunking → embeddings (Voyage, OpenAI or Ollama) → pgvector, answers cite sources [S1]…
- Permission-aware retrieval: the access rule runs inside the SQL query, so no one retrieves another course's or a teacher's private files
- Prompt-injection defence: documents and selections fenced as data; authorization, not the prompt, is the real control
- "Ask ERA AI": select any text in a lesson and get an explanation grounded in that lesson
- 206 automated tests (authorization, HTTP security, AI engine, RAG) all passing, plus headless-browser UI checks