Retrieval-augmented study assistant

Ask your notes.
Get the answer and the page.

StudyMate reads the PDFs you upload and answers only from them, streamed from Gemini with a citation to the exact passage behind every claim.

  • No account needed
  • PDFs up to 20 MB
  • Free to try
studymate · biology-ch8.pdf, lecture-12-notes.pdf
Ask a question…

How it works

Three steps, and the third one is the point.

  1. 01

    Upload

    Drop in lecture notes, a chapter, a paper. Text is pulled page by page, repaired, and split into overlapping passages.

  2. 02

    Ask

    Type the question the way you’d ask a tutor. Scope it to one document or search everything you’ve uploaded.

  3. 03

    Read the proof

    The answer streams in with numbered marks. Each one opens the exact passage, so you can check it and keep reading.

What makes the answers trustworthy

Built like a search engine, not a chatbot with a PDF attached.

Every claim has a page

Answers cite the passage they came from, down to the page. Click a mark to read the original wording beside the answer.

Two searches, fused

A semantic index catches paraphrases; a keyword index catches exact terms and symbols. Rank fusion merges them, so neither one has to be right alone.

Follow-ups that follow

“Explain that more simply” works. The question is rewritten with the conversation in mind before the search runs.

Says when it doesn’t know

Weak matches are cut before they reach the model. An off-topic question gets an honest “not in your documents”, not a confident guess.

Streams as it thinks

Sources arrive first, then the answer, token by token. Stop it any time. Nothing blocks the server while a PDF is indexed.

Your workspace, your files

Documents and conversations are isolated per workspace and persist across restarts. Uploads are sniffed, capped and rate-limited.

Under the hood

What happens between the question and the answer.

FastAPI on the back, Next.js on the front. Each question runs a dense and a keyword search in parallel, fuses the rankings, drops weak matches, and hands the survivors to the model as numbered sources. The answer streams back over Server-Sent Events with the citations attached.

Questionrewritten if a follow-upDense searchFAISS · cosineKeyword searchBM25+Rank fusionRRF · cutoff · top 6Geministreamed · fallback modelAnswerwith [n] citationsPer workspace: SQLite (chunks, conversations) · FAISS index file · uploaded PDFs. Indexing runs in the background per upload.
Embeddings
bge-small via ONNX, no GPU, swappable for Voyage
Index
FAISS per workspace + BM25+, persisted to disk
Model
Gemini 3.8 Flash by default, Claude optional, overload fallback
Tests
44 backend tests, typed SSE contract, CI + Docker

Bring a chapter. Leave with answers you can check.