Updated October 2026: new token and price math for Gemini 3.1 Pro, the 2026 video embedding options (Gemini Embedding 2, TwelveLabs Marengo 3.5, Pegasus 1.5), timestamped playable clips, and an FAQ.

What Is Video RAG? The Short Answer

Video RAG (retrieval-augmented generation over video) is a system that answers a question about a video archive by first retrieving the few relevant clips, with their timestamps, and then letting a vision-language model write the answer from only those clips. It works in two phases: once per video you cut it into scene-sized chunks, turn each chunk into an embedding and store it in a vector database; on every question you embed the question, fetch the nearest chunks, rerank them and generate a cited answer.

Multimodal RAG is the wider family: retrieval-augmented generation over any mix of text, images, tables, audio and video. Video RAG is the hardest member of that family, because an hour of footage is about 342,000 tokens even at Gemini 3's default video setting (October 2026) and carries no searchable words until speech recognition, OCR, captions or a multimodal embedding model extract them. If your archive is a single short video, you do not need RAG at all: send it to a long-context model.

Why This Matters

You have a growing pile of recorded video — past webinars, surveillance footage, recorded consultations, course lectures, support calls — and someone has asked the obvious question: "Can we just ask it things?" Find the moment a defect first appeared. Pull every clip where a specific procedure was demonstrated. Summarise what a customer complained about across forty support calls. The technology that answers those questions is video RAG, and it is the bridge between the vision-language models you have already read about and a product feature people will actually pay for. This lesson is written for the product manager, founder, or operations lead who has to scope such a feature and decide what it costs, where it will be flaky, and whether a simpler approach would do. It builds on the open-frontier VLM lesson and the fine-tuning lesson; if "vision-language model", "weights", and "embedding" are brand-new words, start with the video-VLM lesson first.

What RAG Is, In One Plain Picture

Start with the everyday version of the idea, because the AI version is the same trick. When a librarian answers a hard question, they do not read every book in the building. They walk to the right shelf, pull the two or three books that cover the topic, open them to the right pages, and answer from those pages. Retrieval is the walk to the shelf; generation is the answer written from what was pulled.

Retrieval-augmented generation, almost always shortened to RAG, is exactly that pattern applied to an AI model. Instead of asking the model to answer from memory — which is how it invents wrong facts, a failure called hallucination — you first retrieve the relevant source material from your own collection, then hand it to the model alongside the question, and ask it to answer using only what you gave it. The model stops guessing and starts reading. This is why RAG is the standard way to make a model answer reliably about your data: your documents, your recordings, your archive.

Text RAG — retrieval over documents — has been a solved, ordinary thing since 2023. Video RAG is the harder, newer cousin: the source material is hours of moving pictures and sound, not pages of text. The 2025 research that named the field puts it plainly: most RAG systems focus on text, some handle images, and video — the richest source of all — was largely left out until recently. Closing that gap is what this lesson is about.

Two-column diagram titled How Video RAG Works: fetch the relevant clips first, and the answer is grounded in your archive. Left column, in orange, Without RAG, the model answers from memory: the question, when did the defect first appear, then a dashed box, no retrieval step, your archive is never opened, then the vision-language model answering from what it memorised, then an answer that may invent facts, which is called hallucination. Right column, in green, With video RAG, the model answers from your archive: the same question, then retrieve from your archive, search it and pull the 3 relevant clips, then the vision-language model reading the clips plus the question, then a grounded answer that cites the source clips and timestamps. Bottom line: retrieval walks to the right shelf; generation answers from what was pulled. Figure 1. Without retrieval, the model answers from memory and can invent facts. Video RAG fetches the relevant clips first, so the answer is grounded in your archive — and can cite the exact moments it used.

Multimodal RAG Patterns: Three Ways To Handle Video

There are three multimodal RAG patterns, and every video RAG system is one of them or a blend. NVIDIA's engineering guide and IBM's overview (2025) describe the same three:

Pattern How it works Strength Weakness
1. Ground everything in text ASR, OCR and VLM captions turn each chunk into text; an ordinary text RAG pipeline searches it Cheapest and most mature; easy to debug Loses what nobody said or captioned
2. Text retrieval, multimodal generation Search runs on text, but the retrieved frames or clips go to a VLM together with the text The answer can use what the frames show Retrieval still misses purely visual moments
3. Shared embedding space A multimodal embedding model puts clips, audio and text questions on one vector map Finds silent visual events from a text question Heavier ingestion and larger vectors

Table 1. The three multimodal RAG patterns applied to video. Most production systems in 2026 combine pattern 1 for speech and on-screen text with pattern 3 for visual events.

A note on names, because search results mix them up: VideoRAG is the title of two different 2025 research papers (one from KAIST, published at ACL 2025, and one from HKU for extremely long videos), and Video-RAG is a third, training-free method that feeds OCR, ASR and object-detection text to the model. All three are research prototypes of the same idea this lesson explains, not products you buy.

Why Not Just Send The Whole Archive To A Long-Context Model?

This is the first question any sharp product owner asks, and it deserves a real answer rather than a reflexive "you need RAG". Modern frontier models accept enormous inputs. Google's current Gemini Pro models take a one-million-token context window — a token is the small chunk of text or media the model reads as one unit — and Google's documentation says that holds about one hour of video at high media resolution or about three hours at low resolution (October 2026). In 2024 Google reported that Gemini 1.5 Pro, with a two-million-token window, found a single secret word hidden in a random frame of a ten-and-a-half-hour video. So if the model can read hours of video at once, why chop anything up?

Three reasons, and you only need one of them to be true for RAG to win.

The first is size. A one-million-token window sounds vast until you measure your archive against it. Gemini 3 models sample video at one frame per second and, at the default media resolution, spend 70 tokens per frame plus 25 tokens per second of audio (Google's media-resolution documentation, October 2026). Walk the arithmetic out loud:

tokens per second = 70 (one frame) + 25 (audio) = 95 tokens/second
tokens per hour   = 95 tokens/second × 3,600 seconds/hour
                  = 342,000 tokens/hour

So one hour of video eats about a third of a one-million-token window, and the window is full at just under three hours. Older Gemini 2.5 models at default resolution spend about 290 tokens per second (258 per frame plus 32 for audio), so a single hour already exceeds the whole window. A modest hundred-hour archive needs about 34 million tokens even at the cheaper Gemini 3 rate — 34 times what any Gemini model accepts in one request in 2026. The archive does not fit, and chopping it into searchable pieces is the only way in.

The second reason is cost, and it bites even when the content does fit. Gemini 3.1 Pro's published rate is $2.00 per million input tokens for prompts up to 200,000 tokens and $4.00 per million above that (Gemini API pricing page, October 2026). An hour of video is a 342,000-token prompt, so it falls in the higher tier:

cost of one hour = 342,000 tokens × $4.00 / 1,000,000 tokens
                 ≈ $1.37 per hour of video, per question

If you send the whole hour every time someone asks a question, you pay that $1.37 again on every single query. Ask a hundred questions about that one hour and you have spent about $137 re-reading the same footage a hundred times. RAG flips this: you pay a one-time cost to process and index the archive, then each question reads only a few small retrieved chunks — typically a few thousand tokens, fractions of a cent.

The third reason is accuracy. Even when a long context fits and you are willing to pay, models do not attend evenly across a giant input. Chroma's 2025 "context rot" study tested 18 models and found that reliability falls as the input grows, even on simple retrieval tasks, and accuracy drops further when the answer requires stitching together facts scattered far apart in the context. Retrieving the three relevant minutes gives the model a clean, short, focused input — and a focused model is a more accurate model.

The honest exception, which we return to at the end: if your "archive" is one moderate video and a user asks a handful of questions about it, skip RAG and send the whole thing to a long-context model. RAG earns its complexity at scale, not on a single clip.

The Core Problem — Video Is Not Searchable

Here is the obstacle that makes video RAG its own discipline. Text is already made of the same stuff a search runs on: words. Video is made of pixels and sound waves, which carry no searchable meaning until something extracts it. You cannot type "the moment the forklift entered the loading bay" and have raw pixels match it. Something has to first turn the video into a representation a computer can compare against a question.

That representation is an embedding — and the word is worth defining carefully because the whole pipeline rests on it. An embedding is a list of numbers, usually a few hundred to a couple of thousand of them, that captures the meaning of a piece of content as a single point in space. Think of it as a set of map coordinates for meaning: two clips about forklifts land near each other on the map; a clip about a sunset lands far away. The trick that makes search possible is that a question can be turned into coordinates on the same map. "Find the forklift moment" becomes a point, and the system simply returns the clips whose points sit nearest to it.

A multimodal embedding model is one trained so that pictures, sound, and words all land on the same map. This is the magic ingredient: it lets a text question find a silent video clip, because both were placed in the same coordinate space. The 2021 model called CLIP — Contrastive Language–Image Pre-training — was the first widely used version of this idea. Its open descendants (SigLIP, X-CLIP, InternVideo) and managed video embedding models such as TwelveLabs Marengo 3.5 and Google's Gemini Embedding 2, both released in 2026, are what power video search today. We covered the family in the CLIP and VLM lessons; here we only need the one-line version: an embedding model is the thing that turns un-searchable video into searchable coordinates.

The Two Honest Designs — Visual Embeddings vs Text Grounding

There are two respectable ways to make video searchable, and the choice between them shapes everything downstream — cost, accuracy, and what kinds of questions your product can answer. NVIDIA's engineering write-up on the subject names three theoretical approaches; in practice two of them matter, and they sit at opposite ends of a trade-off.

The first design is direct visual embedding. You run the video itself — frames, and sometimes motion across frames — through a multimodal embedding model, and store those visual coordinates directly. The strength is that purely visual meaning survives: a clip of someone slipping on a wet floor is findable even though nobody said the word "slip". The cost is that visual embedding models are heavier to run and the embeddings are larger to store. This design wins for surveillance, sports, manufacturing, medical procedures — anywhere the important information is in what you see, not what is said. It also pairs naturally with the detection and anomaly-detection work covered earlier in the course, where the events you want to find are visual by nature.

The second design is text grounding, and it is the workhorse of most production systems. You convert everything in the video into text first — the spoken words via speech recognition, the on-screen text via optical character recognition, and a written description of each scene via a vision-language model — and then you embed and search that text with an ordinary, cheap, mature text pipeline. The strength is simplicity and low cost: text RAG is a solved problem, and you inherit all of it. The weakness is that the conversion is lossy — a written caption of a scene throws away detail the pixels held, so a question about a subtle visual the captioner did not mention will miss.

Most strong 2026 systems are hybrid: text grounding for the bulk of retrieval because it is cheap and good, plus visual embeddings layered in where pure-visual questions matter. The decision is not religious. It is a budget-and-question-type call, and the diagram below is the one to put in front of your engineer.

Decision diagram titled Two Honest Designs And The Question That Picks One: text grounding is cheap and mature; visual embeddings keep what nobody said. Left column, where the answer lives; right column, the design to pick, one arrow per row. Row 1: mostly in what is said or written on screen leads to text grounding, in green: ASR plus OCR plus scene captions, then text RAG; wins as the cheapest, most mature pipeline; costs: misses what nobody narrated; fits webinars, lectures and support calls. Row 2: mostly visual, actions nobody narrates, leads to direct visual embeddings, in purple: embed frames with CLIP, SigLIP or Marengo; wins because visual meaning survives; costs: heavier to run, larger to store; fits surveillance, sports, factory and medical footage. Row 3: both kinds of question in the same archive leads to hybrid, in blue: text grounding for the bulk of retrieval plus visual embeddings for pure-visual queries; costs the higher of the two index bills; fits most production systems in 2026. Bottom line: a budget-and-question-type call, not a religious one. Figure 2. The two honest designs and the question that picks between them. Text grounding is cheap and mature; visual embedding preserves what nobody narrated; most real systems blend the two.

The Pipeline, Stage By Stage

A video RAG system has two halves that run at different times. The ingestion half runs once per video, when it enters the archive — it is the slow, expensive, do-it-once work. The query half runs every time a user asks a question — it must be fast and cheap. Keeping these two halves straight in your head is the single most useful mental model for budgeting the feature, because the costly work happens once and the per-question work is tiny. We walk the stages in order.

Stage 1 — Chunking: cut the video into searchable pieces

You cannot search "a video"; you search pieces of it. Cutting the video into pieces is called chunking, and it is the stage that quietly determines whether your whole system works. A chunk is the unit that gets retrieved and shown to the user, so its size is a real product decision: too large, and a retrieved chunk buries the relevant two seconds inside two irrelevant minutes, wasting tokens and confusing the model; too small, and a chunk loses the context that made it meaningful, so retrieval fragments.

The naive approach is fixed-length chunking: cut every thirty seconds, regardless of content. It is trivial to build and it is what most first prototypes use. Its flaw, documented in 2025 research, is that it slices straight through the middle of meaningful moments — a sentence gets split across two chunks, an action is severed from its result. The better approach is scene-based chunking: cut where the video naturally changes — a new shot, a new speaker, a new topic. Classical computer vision can find shot boundaries by watching for sudden changes in the picture; newer systems use a language model reading the transcript to cut on narrative boundaries, so each chunk is one coherent idea. Scene-aware cutting costs more to compute but produces chunks that retrieve far more cleanly. The rule of thumb: align chunks to meaning, not to the clock.

Stage 2 — Extraction: pull the meaning out of each chunk

Now each chunk gets turned into something searchable, using whichever design you chose. In a text-grounding system this stage does real work, and it is worth seeing the parts because each is a model you covered earlier in this course.

Speech becomes text through automatic speech recognition, the technology behind every captioning feature — production systems lean on Whisper and its faster variants, covered in the WhisperX lesson. Crucially, ASR gives you timestamps: it records not just what was said but when, which is how the final answer can jump the user to the exact second. On-screen text — slide titles, signs, captions baked into the picture — becomes searchable through optical character recognition. And the purely visual content of each scene becomes a written description through a vision-language model prompted to describe what it sees. These three text streams — said, written-on-screen, and seen — are blended into one coherent description per chunk.

In a visual-embedding system this stage is simpler to describe but heavier to run: each chunk's frames go straight through the multimodal embedding model, producing visual coordinates without an intermediate text step.

Stage 3 — Frame selection: do not process every frame

Whichever design you chose, you hit the same brutal number: video has far too many frames to process them all. A single minute of footage at sixty frames per second contains 3,600 frames. Multiply across an archive and the cost of touching every frame is absurd. So every serious pipeline thins the frames first, and the savings are dramatic enough to walk through with NVIDIA's published example.

Start by downsampling — keeping only a fraction of the frames. Dropping from 60 frames per second to 4 frames per second already cuts that one minute from 3,600 frames to 240, because successive frames are nearly identical and carry almost no new information:

frames after downsampling = 240 frames  (down from 3,600)

Then select keyframes — the handful of frames that actually represent something new, found by measuring how different each frame is from the last and keeping only the ones that change meaningfully. In NVIDIA's worked example that step takes the 240 frames down to about 40 — a final reduction of roughly ninety-fold from the original 3,600. Forty frames a minute is cheap to caption or embed; 3,600 is not. This frame-selection idea is exactly the one the VideoRAG research highlights as essential: long videos hold more frames than a model can read, and not all frames are equally important.

Stage 4 — Indexing: store the coordinates for fast search

Every chunk now has an embedding — a point on the meaning map. You store these in a vector database, a database built for one job: given a query point, find the nearest stored points fast, even across millions of them. Pinecone, Weaviate, Milvus, and Qdrant are the names you will hear, and since December 2025 Amazon S3 Vectors offers the same job inside S3, with up to 2 billion vectors per index and about 100 ms for frequent queries (AWS, 2025); the open-frontier lesson and your engineer will have a favourite. Alongside each embedding you store metadata — the source video, the timestamp, the chunk's text — because that metadata is what lets the final answer say "see minute 14 of the March 3rd recording" instead of a vague paraphrase. The metadata is not an afterthought; it is what makes the feature trustworthy.

This is the end of the once-per-video ingestion half. Everything so far happened when the video entered the archive. From here on, we are in the fast per-question half.

Two-column pipeline diagram titled The Video RAG Pipeline In Two Halves: the costly work happens once per video; the per-question work stays tiny. Left column, Ingestion, runs once per video and carries the cost, five steps top to bottom: 1, raw video such as webinars, calls and camera footage; 2, chunk into scenes, cutting on shot and speaker with a small overlap; 3, select frames, 90 times fewer, 3,600 to 240 to 40 frames a minute; 4, extract meaning with ASR plus OCR plus captions, or embeddings; 5, index in a vector database, each vector stored with its video, timestamp and text. Under it a panel: paid once per video, for ASR, captioning and embedding. An arrow runs from the index to step 3 of the right column. Right column, Query, runs on every question, fast and cheap, six steps: 1, the user question, when was the procedure shown; 2, embed the question with the same model on the same meaning map; 3, vector search for the top-k nearest chunks, k from 3 to 10; 4, rerank and keep the best 2 or 3 chunks; 5, the VLM writes the answer, reading only the retrieved chunks; 6, in green, an answer with citations, see 12:40 in the onboarding video. Bottom line: each question reads a few thousand tokens, a fraction of a cent. Figure 3. The full pipeline. The left half runs once per video and carries the cost; the right half runs on every question and stays cheap because it touches only a few retrieved chunks.

Stage 5 — Retrieval: find the few chunks that matter

A user asks a question. The system turns that question into a point on the same meaning map using the same embedding model, then asks the vector database for the top-k nearest chunks — the k closest points, where k is a small number you choose, often between three and ten. This is the moment all the ingestion work pays off: out of an archive of thousands of chunks, the system pulls back only the handful that actually relate to the question, in milliseconds.

A second, cheap step usually follows: reranking. The fast vector search is good but not perfect, so a more careful (and slightly slower) model re-scores those few candidates and keeps only the best two or three. Reranking on a short list is cheap because the list is already short — you are polishing a handful of candidates, not searching the archive again.

Stage 6 — Generation: write the grounded answer

Finally the retrieved chunks — the relevant transcript passages, scene descriptions, or actual frames — are handed to a vision-language model together with the original question, and the model writes the answer using only what it was given. Because the metadata travelled with each chunk, the answer can cite its sources: "the procedure is demonstrated at 12:40 in the onboarding recording." That citation is the difference between a party trick and a feature an operations team will trust, because it lets a human verify the answer in one click. An answer the user can check is an answer the user will rely on.

How to return timestamps and playable clips

To return a playable clip, store each chunk's start and end time in seconds next to its embedding, and build the player link from them at answer time. In a browser, a W3C Media Fragments URI such as recording.mp4#t=754,782 starts playback at 12:34 and stops at 13:02; for HLS you seek the player to the start offset. Managed models now return these times for you: Marengo 3.0 embeddings carry segment start and end times, and Pegasus 1.5 returns a JSON list of timestamped segments (TwelveLabs and AWS, 2026). Pad each clip by a few seconds on both sides so the user sees the lead-in, and merge clips that overlap.

A Common Mistake — Chunking By The Clock Instead Of By Meaning

The single most frequent failure in first-version video RAG systems is fixed-length chunking, and it is worth a callout because it looks fine in a demo and falls apart in production. A team cuts every thirty seconds because it is the easy thing to build, the demo on a tidy two-minute clip works, and the feature ships. Then a real user asks about something that happened across a chunk boundary — the question was asked at second 28 and answered at second 34 — and the system retrieves the chunk with the question but not the answer, or vice versa, and returns something confidently wrong.

The fix is not exotic: cut on scene and speaker boundaries so each chunk is one coherent unit of meaning, and let chunks overlap slightly so a moment that straddles a boundary survives in at least one chunk. The 2025 SceneRAG research showed that segmenting on narrative-consistent scenes, rather than the clock, measurably improves retrieval. The lesson for a product owner: when an engineer says "we'll just chunk every N seconds", ask what happens to a moment that spans two chunks — and budget for scene-aware chunking before launch, not after the first wave of bad answers.

Build It Yourself, Or Buy The Embeddings?

As with most of this course, there is a build path and a buy path, and the honest answer is that most teams should start by buying the hard part. The hard, expensive, easy-to-get-wrong component is the video embedding model — the thing that turns video into good searchable coordinates. You can self-host an open model (CLIP, SigLIP, InternVideo and relatives) and own the whole stack, which is the right call when data cannot leave your premises — surveillance and medical footage often cannot — or when archive scale makes per-call API pricing painful.

The buy path is led by TwelveLabs. Its Marengo models produce the video embeddings and its Pegasus models answer questions about clips. Marengo 3.0 (512-dimensional vectors, videos up to four hours) runs on the TwelveLabs API and on AWS Bedrock, and since September 11, 2026 it is a built-in embedding option in Bedrock's managed Knowledge Base. Marengo 3.5, released August 31, 2026, removes the four-hour cap and scores 6.29 points higher than 3.0 on text-to-video retrieval in TwelveLabs' own benchmark. Pegasus 1.5, announced October 9, 2026 and on Bedrock since October 19, reads up to two hours of video per request (Pegasus 1.2 read one) and returns structured, timestamped segments. Google's Gemini Embedding 2, in public preview since March 10, 2026, puts text, images, audio, documents and video clips of up to 120 seconds into one 3,072-dimension space, so you embed long recordings chunk by chunk. Note the pace of change: TwelveLabs sunset Marengo 2.7 on March 30, 2026, and shipped two newer Marengo versions within the same year — a reminder that the managed-API layer of this stack moves fast and that any version number in a contract needs a "what happens at end-of-life" clause. The frontier general models (Gemini, GPT, Claude) play the generation role well and can serve as the whole system for small archives via long context, but they are not, in 2026, the cheapest way to index a large archive for repeated search.

Component Option (October 2026) What it gives you Status
Video embeddings, managed TwelveLabs Marengo 3.5 128–512-dim vectors for video, audio, images and PDF pages; no four-hour cap TwelveLabs Embed API since Aug 2026
Video embeddings, managed TwelveLabs Marengo 3.0 512-dim vectors with segment start/end times; videos up to 4 hours TwelveLabs API, AWS Bedrock and Bedrock Knowledge Base
Multimodal embeddings, managed Google Gemini Embedding 2 One space for text, images, audio, PDFs and video clips up to 120 s; 3,072 dims Public preview since Mar 2026
Video understanding TwelveLabs Pegasus 1.5 Timestamped JSON segments from up to 2 hours of video Announced Oct 9, 2026; on Bedrock
Embeddings, self-hosted CLIP, SigLIP, InternVideo Full control; footage never leaves your servers Open weights
Vector store Pinecone, Weaviate, Milvus, Qdrant, Amazon S3 Vectors Nearest-neighbour search plus timestamp metadata S3 Vectors GA since Dec 2025

Table 2. The main build and buy options for each layer of a video RAG system, as of October 2026. Benchmarks published by a vendor about its own model are a starting point, not a verdict: test on a sample of your own footage.

The decision mirrors the one in the build-vs-buy cost lesson: buy to get to a working feature fast and learn what your users actually ask; revisit self-hosting once volume, data-residency rules, or per-call costs justify owning the pipeline.

Where The Money Actually Goes

Put real structure on the cost, because it is the question every budget owner asks and the answer is reassuring once you see the shape. The expensive work is ingestion, and you pay it once per video: running ASR, captioning selected frames with a VLM, and computing embeddings. Frame selection is what keeps this bill sane — recall the roughly ninety-fold frame reduction from Stage 3 — and it is why a competent pipeline can index an archive for a sensible one-time fee rather than a fortune.

The cheap work is per query, and it stays cheap by design: embedding one short question costs almost nothing, the vector search is a database lookup measured in milliseconds, and the generation step reads only the few retrieved chunks — a few thousand tokens — rather than the whole archive. Compare that with the naive long-context number from earlier: $1.37 to re-read a single hour on every question. A retrieval query that reads three two-thousand-token chunks reads six thousand tokens: about 1.2 cents on Gemini 3.1 Pro at $2.00 per million input tokens, or about 0.15 cents on Gemini 3.1 Flash-Lite at $0.25 per million (October 2026 prices). That is roughly 100 times cheaper per question than re-reading the hour. That gap — pay once to index, pay almost nothing per question — is the entire economic argument for video RAG, and it widens with every additional question and every additional hour in the archive.

Approach One-time cost Cost per question Best when
Long-context model, whole video each time None High — re-reads everything (~$1.37 per hour of video on Gemini 3.1 Pro, every query) One moderate video, few questions
Video RAG (text grounding) Moderate — ASR + captioning + embedding, once Very low — reads a few small chunks Large archive, many questions, mostly spoken/on-screen content
Video RAG (visual embeddings) Higher — heavier embedding model, once Very low — reads a few small chunks Large archive where the answer is in what you see
Hybrid Higher of the two Very low Production systems that need both

Table 3. The cost shape of each approach. RAG trades a one-time indexing cost for near-free questions; long context trades zero setup for a high per-question bill. The crossover comes fast as archive size and question volume grow.

Frequently Asked Questions

What is video RAG?

Video RAG is retrieval-augmented generation over video: the system finds the few clips in an archive that relate to a question, then a vision-language model answers from only those clips and cites their timestamps. It lets people ask a large video library questions in plain language without sending the whole library to a model.

What is multimodal RAG?

Multimodal RAG is retrieval-augmented generation over more than one type of data — text, images, tables, audio and video — usually through a multimodal embedding model that places all of them in one vector space. Video RAG is multimodal RAG applied to video archives.

What are the main multimodal RAG patterns?

There are three: ground everything in text (ASR, OCR and captions, then text search); retrieve on text but generate with frames; or embed every modality in one shared vector space. Most production video systems combine the first and third.

How do you build video RAG with timestamps and playable clips?

Store each chunk's start and end time with its embedding, return those times with every retrieved chunk, and turn them into a player link such as a Media Fragments URI (video.mp4#t=754,782) or an HLS seek offset. Pad each clip by a few seconds and merge overlapping clips before showing them.

Is video RAG better than a long-context model?

For a large archive, yes: at Gemini 3's default setting an hour of video is about 342,000 tokens, so a one-million-token window holds under three hours, and re-reading one hour costs about $1.37 per question on Gemini 3.1 Pro (October 2026). For one short video and a few questions, a long-context model is simpler.

Which embedding model should I use for video in 2026?

For a managed API, TwelveLabs Marengo 3.5 or 3.0 (the latter also on AWS Bedrock) and Google Gemini Embedding 2 (preview, clips up to 120 seconds) are the main options as of October 2026. If footage cannot leave your servers, self-host an open model such as SigLIP or InternVideo and test retrieval quality on your own clips.

How much does video RAG cost?

You pay once per video to transcribe, caption and embed it, then each question costs about one cent or less, because the model reads only a few thousand retrieved tokens — about 1.2 cents on Gemini 3.1 Pro or 0.15 cents on Gemini 3.1 Flash-Lite for a 6,000-token query (October 2026 prices).

↓ Free download: Video RAG Architecture ChecklistOne printable page: the RAG-vs-long-context test, the text-grounding-vs-visual-embeddings choice, chunking and frame-selection rules of thumb, the indexing and metadata must-haves, and the cost-shape comparison.

Where Fora Soft Fits In

We build the systems this lesson describes inside real products: searchable archives for OTT and internet-TV platforms, "ask the recording" features for e-learning and video-conferencing tools, and investigation tools over surveillance footage where the answer must come with a verifiable timestamp. Across video conferencing, OTT, e-learning, telemedicine, and surveillance, the recurring request is the same — turn a growing pile of recordings into something a non-engineer can query in plain language — and video RAG is the architecture that delivers it without the runaway cost of re-reading everything on every question. Our work in these verticals since 2005 means we have seen which corners (chunking, timestamp metadata, data residency) decide whether the feature earns trust or quietly gets switched off. Our generative AI development team builds video RAG with timestamped answers into existing products, and our AI video recognition work supplies the detection and tracking metadata that makes surveillance archives searchable. When the archive is mostly speech — lectures, consultations, sales calls — retrieval quality is decided by the transcript, which is where our speech-to-text development team comes in. If your goal is to let users chat with their own meeting and call recordings rather than search a whole video archive, our playbook on RAG for meeting and call recordings covers that product end to end.

AI for Video: From Models and Inference to Computer Vision, Speech, Search, and Generative Video - book cover

The book

AI for Video: A Complete Guide to Intelligence in Video Products: From Models and Inference to Computer Vision, Speech, Search, and Generative Video

This lesson sketches one video RAG pipeline; volume 6 of the Fora Soft Video Engineering Handbook builds every part of it — the embedding models that put frames and words on one map, the ASR and OCR that feed text grounding, scene-aware chunking, vector search and reranking, and the vision-language models that write the grounded answer. Volume 7 takes the same search into production: serving, cost per query and data residency. Written by Nikolay Sapunov, CEO at Fora Soft.

Read it on Amazon →Kindle & paperback · Fora Soft Video Engineering Handbook

Want your team to ask a video archive questions in plain words and get answers with timestamps?

Tell us how many hours you store, what is in them and the questions people ask. We will pick text grounding, visual embeddings or a hybrid, size the one-time indexing bill against the per-question cost, and decide what you buy and what you self-host. 250+ video products shipped since 2005.

Book a 30-min call →WhatsApp →Email us →

See our case studies

References

  1. Jeong, S., Kim, K., Baek, J., Hwang, S. J. "VideoRAG: Retrieval-Augmented Generation over Video Corpus." Findings of the Association for Computational Linguistics: ACL 2025; arXiv:2501.05874 (2025, accessed 2026-06-01). — Primary source for the framing that most RAG systems target text while video was largely overlooked, for the dynamic video-retrieval-plus-visual-and-textual-generation design, and for the video frame-selection mechanism (extract the most informative subset of frames; not all frames are equally important; extract textual information when subtitles are absent).
  2. Ren, X., et al. "VideoRAG: Retrieval-Augmented Generation with Extreme Long-Context Videos." arXiv:2502.01549 (2025, accessed 2026-06-01); code at github.com/HKUDS/VideoRAG. — Source for the dual-channel design (graph-based textual knowledge grounding + multi-modal context encoding) for unbounded-length video, and for the LongerVideos benchmark of 160+ videos totalling 134+ hours across lecture, documentary, and entertainment categories.
  3. Luo, Y., et al. "Video-RAG: Visually-aligned Retrieval-Augmented Long Video Comprehension." arXiv:2411.13093 (2024–2025, accessed 2026-06-01). — Source for the training-free pipeline that replaces extended visual tokens with auxiliary texts from OCR, ASR, and object detection, and for the finding that ASR auxiliary text drives general improvement across video durations.
  4. Varshney, T., Surla, A. "An Easy Introduction to Multimodal Retrieval-Augmented Generation for Video and Audio." NVIDIA Technical Blog (developer.nvidia.com, accessed 2026-06-01). — Source for the three architectural approaches (common embedding space; N parallel pipelines; grounding in a common modality), the five-stage video pipeline, the frame-rate arithmetic (1 min @ 60 fps = 3,600 frames; downsample to 4 fps = 240; keyframe-select to ~40), SSIM-based keyframe selection, and the retrieve-rerank-generate query path with timestamp metadata.
  5. Wang, T., et al. "SceneRAG: Scene-level Retrieval-Augmented Generation for Video Understanding." arXiv:2506.07600 (2025, accessed 2026-06-01). — Source for the finding that fixed-length chunking disrupts context and fails to capture true scene boundaries, and that LLM-driven segmentation into narrative-consistent scenes (using ASR transcripts plus temporal metadata) improves retrieval.
  6. Google DeepMind. "Gemini 1.5: Unlocking multimodal understanding across millions of tokens of context." arXiv:2403.05530 (2024, accessed 2026-06-01); and Google Cloud, "The Needle in the Haystack Test and How Gemini Pro Solves It." — Source for the up-to-2-million-token context window, the near-perfect recall (>99.7%) across text, video, and audio, and the recovery of a secret word from a random frame of a 10.5-hour video.
  7. Google AI for Developers. "Video understanding" and "Understand and count tokens" (ai.google.dev/gemini-api, accessed 2026-06-01). — Primary source for the video tokenization rate (~263 tokens/second of video at default media resolution; 258 tokens/frame visual, 32 tokens/second audio), the default 1-FPS sampling, and the low-media-resolution alternative (~100 tokens/second); Gemini 2.5-era figures, superseded for Gemini 3 by the media-resolution reference below.
  8. Google AI for Developers. "Gemini Developer API pricing" (ai.google.dev/gemini-api/docs/pricing, accessed 2026-06-01). — Gemini 2.5 Pro input pricing ($1.25 per 1M tokens up to 200k context; $2.50 per 1M above) used in the June 2026 version of this lesson; superseded by the October 2026 pricing reference below.
  9. Twelve Labs. "Video Foundation Models: Marengo & Pegasus", "Marengo 3.0", and developer release notes (twelvelabs.io and docs.twelvelabs.io, accessed 2026-06-01). — Source for Marengo as the multimodal embedding/search model and Pegasus as the video-understanding model that reasons over the temporal arc of an asset up to two hours, for AWS Bedrock and SaaS deployment, and for the Marengo 2.7 sunset on 2026-03-30.
  10. Google AI for Developers. "Media resolution" and "Video understanding" (ai.google.dev/gemini-api/docs, accessed 2026-10-23). — Source for Gemini 3 video tokenization at default media resolution (70 tokens per frame, 25 tokens per second of audio, 1 frame per second sampling), the Gemini 2.5 rate (258 tokens per frame plus 32 tokens per second of audio), and the statement that a 1M-token window holds about 1 hour of video at high resolution or about 3 hours at low resolution.
  11. Google AI for Developers. "Gemini Developer API pricing" (ai.google.dev/gemini-api/docs/pricing, accessed 2026-10-23). — Source for Gemini 3.1 Pro Preview input pricing ($2.00 per 1M tokens up to 200k, $4.00 above), Gemini 3.1 Flash-Lite ($0.25 per 1M input tokens) and Gemini 2.5 Pro ($1.25 / $2.50).
  12. Google. "Gemini Embedding 2: our first natively multimodal embedding model" (blog.google, March 10, 2026, accessed 2026-10-23). — Source for the public preview, the single embedding space for text, images, video, audio and PDFs, video input up to 120 seconds, and 3,072 default output dimensions.
  13. TwelveLabs. "Marengo 3.5" (twelvelabs.io/blog, August 31, 2026) and "Marengo 3.0" documentation (docs.twelvelabs.io, accessed 2026-10-23). — Source for the Marengo 3.5 release, the removal of the four-hour cap, the +6.29-point text-to-video retrieval gain over 3.0 on TwelveLabs' own benchmark, 128–512 dimensions, and Marengo 3.0's 512-dimensional embeddings for videos of 4 seconds to 4 hours.
  14. AWS. "Amazon Bedrock Managed Knowledge Base now supports multimodal embeddings for video, audio, and image content with TwelveLabs Marengo 3.0" (aws.amazon.com, September 11, 2026). — Source for Marengo 3.0 in Bedrock Knowledge Base, 512-dimensional vectors and segment start and end times.
  15. AWS Machine Learning Blog. "Pegasus 1.5 from TwelveLabs is now available in Amazon Bedrock" (October 19, 2026). — Source for the October 9, 2026 announcement, up to two hours of video per request (one hour in Pegasus 1.2), and timestamped JSON segment output.
  16. AWS. "Amazon S3 Vectors is now generally available" (aws.amazon.com, December 2, 2025). — Source for up to 2 billion vectors per index, up to 90% lower cost, and about 100 ms latency for frequent queries.
  17. Chroma Research. "Context Rot: How Increasing Input Tokens Impacts LLM Performance" (research.trychroma.com, July 14, 2025). — Source for the finding, across 18 models, that reliability declines as input length grows.
  18. IBM. "What is multimodal RAG?" (ibm.com/think, September 26, 2025). — Source for the three multimodal RAG approaches: text translation, text retrieval with multimodal generation, and multimodal retrieval.
  19. W3C. "Media Fragments URI 1.0 (basic)" (W3C Recommendation, 2012). — Source for the #t=start,end temporal fragment syntax used to link to a playable clip.