Skip to content

About

A local-first AI tutor that turns your own study material into a personalised curriculum: RAG-grounded chat, a prerequisite roadmap, quizzes, notes and a knowledge graph. FastAPI + React, runs entirely on your machine, your documents and API keys never leave it.

Topics

Resources

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

Atlas

A personal AI learning platform that runs entirely on your machine.

Atlas turns your own study material into a tutor. Upload your notes and textbooks, and it builds a searchable knowledge base, generates a roadmap, quizzes you on weak spots, and remembers what you struggle with — all stored locally. Your documents, notes, progress and API keys never leave your machine.

CI License: MIT Python 3.11+ Node 18+

Atlas — a tour: pick a profile, see your progress, ask the tutor, follow the roadmap, explore the graph


Screenshots

Landing page — choose a profile
Landing — pick a profile or create one
Dashboard
Dashboard — progress, streaks and weak spots
AI tutor with citations
AI Tutor — answers grounded in your own material
Curriculum roadmap
Roadmap — a topic DAG built from your syllabus
Knowledge graph
Knowledge graph — concepts and how they connect
Settings
Settings — providers, keys, and appearance

Features

Area What it does
AI Tutor Streaming chat with Socratic, Teaching, Revision and Summary modes, grounded in your own material.
Library Upload PDF / DOCX / TXT / images. Text extraction with optional Tesseract OCR for scans.
Retrieval (RAG) Documents are chunked and embedded into a local ChromaDB index and cited in answers.
Roadmap Generates a topic DAG from an uploaded syllabus and tracks unlock/progress state.
Knowledge Graph Concepts and their relationships, extracted as you study.
Quizzes Auto-generated questions with scoring, feeding back into mastery tracking.
Notes AI-generated and hand-written notes, with full markdown, GFM and LaTeX rendering.
Memory Long-term learner memory with decay, so the tutor adapts to you over time.
Analytics Study time, streaks, mastery and weak-spot detection.
Profiles Multiple learners or tracks (JEE, GATE, Semester Study, Custom), each with isolated vectors and memory.

Supported model providers

Chat works with Gemini, OpenAI, Anthropic, Groq, DeepSeek, Mistral, OpenRouter, Together and Ollama (fully local, no key required).

Model lists are fetched live from whichever provider you configure, so new and free models show up as soon as the provider publishes them — nothing is hardcoded. Any model id can also be typed in by hand.

Chat and embeddings are configured separately. Not every chat provider offers an embeddings API — Anthropic, Groq, DeepSeek and OpenRouter do not — but that no longer constrains your chat model. Pick any provider for chat, and one of OpenAI, Gemini, Mistral, Together or a local Ollama model for embeddings.

Embeddings need no API key at all. By default Atlas embeds on your own machine with a small ONNX model (BAAI/bge-small-en-v1.5, ~130 MB, fetched once on first use). So document upload, semantic search and the knowledge graph work on a fresh clone before you have configured anything — and they keep working if you pick a chat provider that has no embeddings API of its own. Set an embedding provider explicitly in Settings to override it.


Requirements

  • Python 3.11+
  • Node.js 18+
  • (optional) Tesseract OCR — only for scanned documents
  • (optional) Ollama — to run models locally with no API key

Quick Start

Get the code:

git clone https://github.com/GHOSTxASR/ATLAS-AI-TUTOR.git
cd ATLAS-AI-TUTOR

Install once:

python install.py

Then run it, any time:

python start.py

On Linux and macOS the interpreter is usually python3, not python — a stock Ubuntu has no python at all. Either substitute it, or use the shims below, which look for both.

Prefer double-clicking? scripts/ holds install.bat and start.bat for Windows, install.sh and start.sh for macOS/Linux. All four are one-line shims onto the same two Python scripts, so there is only one implementation to keep working.

Stop Atlas with Ctrl+C in the window it is running in.

Atlas is then available at http://127.0.0.1:8000.

On first run you will be asked to create a learner profile. Document upload and search work immediately — embeddings run locally and need no key. For the AI tutor, quizzes and roadmap generation you need a chat model: open Settings and paste an API key (encrypted at rest before being written to disk), or point Atlas at a local Ollama model, which needs no key either.

Local URLs

App (production build) http://127.0.0.1:8000
Backend API http://127.0.0.1:8000/api/v1
Health check http://127.0.0.1:8000/api/v1/health
Frontend dev server http://127.0.0.1:5173

Data & Privacy

Everything lives outside this repository, under:

~/.atlas/
├── config/       settings.toml
├── data/         sqlite database, chroma vectors, graph, uploaded files
├── logs/
└── backups/

API keys are encrypted with Fernet (AES-128-CBC + HMAC-SHA256) into config/secrets.enc, with the key file permission-restricted to your user account. Keys are redacted from logs and error messages, and are never included in request URLs.

The only network calls Atlas makes at runtime are to the model provider you configure. Fonts are bundled rather than fetched from a CDN, so opening the app tells nobody that it is running. The single other call happens once, not at runtime: the local embedding model (~130 MB) is downloaded from Hugging Face the first time you index a document, and never again.

Atlas serves itself over plain HTTP on 127.0.0.1 and has no login — the loopback binding is what keeps it private. It sets a strict Content Security Policy, refuses cross-origin writes and WebSocket handshakes, and warns you if you start it on a non-loopback address.

The in-repository profiles/ folder is a structural placeholder and must not contain real user data.


Development

# Backend
cd backend
python -m venv .venv
.venv/Scripts/activate          # Windows;  source .venv/bin/activate on macOS/Linux
pip install -r requirements-dev.txt   # includes runtime deps + test tooling

pytest                          # 297 tests
ruff check app/ evals/ alembic/
python -m evals.run             # retrieval + syllabus scorecards (no API key)

# Frontend
cd frontend
npm install
npm test                        # vitest
npm run typecheck               # tsc --noEmit
npm run dev                     # vite dev server on :5173

For day-to-day work, python start.py --dev runs the backend with --reload and the Vite dev server together, and stops both with one Ctrl+C.

Evals

Tests prove the AI parts run. Evals measure whether they work — the failures that mattered here never raised. The memory extractor returned nothing for weeks; syllabus parsing silently degraded to a heuristic that turned page footers into topics; short answers were graded on keyword overlap. Each one looked healthy from the outside.

python -m evals.run             # scorecards
pytest app/tests/evals          # the same numbers, as pass/fail thresholds

Retrieval is measured through the real vector store and retriever with precision/recall/MRR/NDCG over a golden set of student-phrased questions; syllabus parsing is scored on structure recall and precision, the latter because page furniture reaching the roadmap is invisible to recall. Both embed locally, so neither needs an API key and both run in CI on every push.

See backend/evals/README.md.

requirements.txt holds runtime dependencies only. Use requirements-dev.txt (which includes it) when working on the project — pytest and ruff are not installed by install.py.

Configuration is read from ~/.atlas/config/settings.toml, overridable with ATLAS_* environment variables — see .env.example. Copy it to .env for local overrides.

See CONTRIBUTING.md before opening a pull request, and SECURITY.md to report a vulnerability.

Documentation

Design and implementation notes live in docs/.

License

MIT © Atlas contributors

About

A local-first AI tutor that turns your own study material into a personalised curriculum: RAG-grounded chat, a prerequisite roadmap, quizzes, notes and a knowledge graph. FastAPI + React, runs entirely on your machine, your documents and API keys never leave it.

Topics

Resources

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages