Akhil S.

Live demo · grounded answers from YouTube transcripts

Ask a video anything. Every answer cites the moment.

Answers come only from the video's transcript, every timestamp is checked against it before you see it, and each answer shows what it cost.

Or try a sample:

How it works
  1. Transcript. The server fetches the video's captions (the samples ship with their transcripts, so they work even when YouTube blocks the server).
  2. Chunk & index. Captions are merged into ~30-second chunks that keep their exact start and end times, embedded with gemini-embedding-001 and stored in an in-memory FAISS index. One-off cost for a 5-minute video: about $0.0002.
  3. Retrieve. Each question pulls the 5 most similar chunks.
  4. Answer. gemini-2.5-flash-lite sees each chunk as [mm:ss–mm:ss] text and may only cite those times. It's told to say so when the transcript doesn't cover the question.
  5. Verify. The server checks every cited timestamp against the retrieved chunks and removes any that don't match, so a timestamp you can click is one the transcript backs up.

A typical answer uses about 1,000 input and 100 output tokens, roughly $0.00014 at list price ($0.10 / $0.40 per million tokens). The line under each answer shows the actual tokens, cost and server time.

Architecture, evals and trade-offs on GitHub

Good to know