AI Course Assistant

Before an exam, a folder of lecture slides, PDFs, and notes can become a study partner that answers with the exact page or slide cited and drills you with graded quizzes and spaced-repetition flashcards. Asking something like "How should I choose a learning rate?" streams back an answer with inline [1] and [2] citations. Clicking a citation opens the exact retrieved passage, or the PDF at the cited page, and off-topic questions are flagged and refused. A retrieval inspector lists vector, keyword, and fused scores for every passage and switches retrievers to show why one won, and a weak best match triggers a warning. The quiz generator writes multiple-choice, true/false, and short-answer questions at three difficulty levels and grades them with explanations and the source page. Flashcards follow the SM-2 schedule, with Again, Hard, Good, and Easy buttons that preview the next interval, keyboard shortcuts, and an Anki export. Uploads accept PDF, PowerPoint, Word, Markdown, and plain text, with speaker notes and tables included. Generation runs on Claude, any OpenAI-compatible provider such as DeepSeek or Ollama, or an offline mode that needs no API key. Students sign up with an email and password, reset a forgotten password by email, and see only their own courses, while an admin view lists and disables accounts. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. MIT licensed.

AI Course Assistant
AI Course Assistant
AI Course Assistant
AI Course Assistant
AI Course Assistant
AI Course Assistant

Benefits

  • Answers cite the exact page
  • Chunks never cross a page or slide boundary, so each citation names the exact file and location, and a click opens the retrieved passage or the PDF at that page.
  • Weak matches get refused
  • When the best match falls below a per-model similarity threshold, the interface warns, the model is told the excerpts are weak, and offline mode refuses instead of pasting unrelated text.
  • Quizzes and cards from your files
  • Quizzes come in three question types and three difficulty levels, answers stay server-side until submission, and SM-2 flashcards export to Anki; revision never leaves your own notes.
  • Private accounts, your own model
  • Passwords use Argon2id, sessions live server-side in HttpOnly cookies, and each user sees only their own courses; Claude, OpenAI-compatible APIs, or an offline mode supply the model.

Features

  • Hybrid Cited Retrieval
  • pgvector HNSW cosine search and BM25 over a PostgreSQL GIN full-text index merge through Reciprocal Rank Fusion, reaching Recall@5 of 1.00 on the project's 33-question test set.
  • Streaming Cited Chat
  • Server-Sent Events stream tokens from the FastAPI backend through a same-origin Next.js proxy, and inline [n] citations are validated against retrieved sources and stored as snapshots.
  • Quiz Generation and Grading
  • Claude structured outputs validated with Pydantic produce multiple-choice, true/false, and short-answer questions; invalid options are repaired and short answers are graded by key-term recall.
  • SM-2 Flashcards and Anki
  • Decks are scheduled with the SM-2 algorithm, with Again, Hard, Good, and Easy ratings, next-interval previews, keyboard shortcuts, and an export to Anki.
  • Pluggable Model Providers
  • Claude through the Anthropic SDK, any OpenAI-compatible endpoint such as DeepSeek or Ollama, or a deterministic offline mode; embeddings default to local fastembed ONNX with bge-small-en-v1.5.
  • Sessions and Data Isolation
  • Argon2id passwords, revocable server-side sessions in HttpOnly cookies, session-bound CSRF tokens with Origin checks, and database-backed rate limits keep each user's courses private, with other users' ids answering 404.

Apps Similar to AI Course Assistant