How it works

From an hour of video to an answer in seconds

Most of LearnHub's work happens before you ever press play. Each lecture is read, timed and indexed once; after that, finding the right moment for a question takes a second or two. Here is the whole journey, step by step.

1. Preparing a lecture

This runs automatically when an owner adds a video, typically in a few minutes per lecture hour.

  1. 1

    The video is stored or linked

    An owner uploads a video file, which goes straight to private cloud storage, or links an openly licensed lecture that is streamed from its original home. Nothing is copied to anyone's computer.

  2. 2

    The words are transcribed, with timing

    If the lecture has official captions, LearnHub uses them; otherwise a speech-recognition model writes the transcript. Every line keeps its start and end time, which is what lets the transcript follow the video and the tutor point to a moment.

  3. 3

    The slides are read

    A still is taken every ten seconds. Near-identical stills (the same slide shown for a minute) are dropped, and the text on the remaining slides is read with optical character recognition. Low-confidence words are discarded so that noise does not end up in answers.

  4. 4

    Images are understood

    Each distinct slide also gets an image fingerprint from a vision model (CLIP), so slides can later be found by what they show, not just by the words on them.

  5. 5

    The lecture is cut into moments

    The transcript is split into passages of about one to one and a half minutes, ending at sentence boundaries. Each passage is joined with the slide text shown during it and labelled with its course and lecture, so it still makes sense on its own.

  6. 6

    Moments are indexed for search

    Each passage is turned into numbers that capture its meaning (a dense embedding), plus a weighted list of its important words (a sparse embedding), plus a classic full-text index. Three different ways to be found, because each one misses things the others catch.

2. Answering a question

This runs every time you ask the tutor, usually in three to ten seconds.

  1. 1

    Your question is checked

    A small safety model looks for attempts to trick the tutor ("ignore your instructions and…"). Those are politely declined. Normal questions pass in a fraction of a second.

  2. 2

    Follow-ups are made self-contained

    "Why?" or "show another example" mean little on their own. Using the last few turns of the conversation, a fast language model rewrites the question into a complete one before searching.

  3. 3

    The lecture is searched three ways

    The question is compared with every passage of the lecture by meaning, by weighted keywords and by exact words. Passages near where you are in the video get a small boost, so "what did he just say?" works. The rankings are merged with reciprocal rank fusion, which rewards passages that rank well in any method.

  4. 4

    The best passages are re-read

    A cross-encoder (a model that reads the question and a passage together) scores how well each top candidate actually answers the question, and reorders them. If nothing in this lecture is relevant enough, the other lectures of the same course are searched too.

  5. 5

    The tutor writes a grounded answer

    The best passages, up to a fixed word budget, are given to a large language model with strict instructions: answer from these passages, number every source, and say so if the lecture does not cover the question. The answer streams to your screen as it is written.

  6. 6

    Quotes are verified, moments pinpointed

    For each source the model must also give a short exact quote. LearnHub searches the transcript for it; if it is found, the source gets a check mark and its timestamp moves to the sentence where the quote is spoken. Answers without verified quotes get a lower confidence label.

  7. 7

    Everything is recorded for improvement

    The question, the answer, its sources, confidence, time taken and your rating are stored, so owners can see what people ask and how well the lectures answer it.

Why not just ask a general chatbot?

A general chatbot answers from everything it has ever read. That is impressive, but it means its answer may use different terms, different conventions or a different level of detail than your course, and it cannot tell you where in your lecture the idea is explained, because it has never seen your lecture.

LearnHub uses a technique called retrieval-augmented generation: first retrieve the relevant moments of the lecture, then let the language model generate an answer from those moments only. The result stays faithful to your course, comes with sources you can check, and admits when the lecture is silent on a topic.

Want to see it in action? Open any lecture from the library and ask the tutor a question about it.

Try a question

Pick a lecture, press play, and ask about anything that is unclear.