The Open-Book AI·Part 7 of 10·6 min read

From Question to Answer: A RAG Pipeline in Slow Motion

The 900-millisecond journey, station by station

Pritish Maheta·

You type: "Can customers return sale items after 14 days?"

You hit Enter.

Nine hundred milliseconds later — about the length of a slow blink — an answer appears: "No. Sale items must be returned within 14 days of delivery, per the Returns Policy (updated March 2026). One exception applies: defective sale items, which follow the standard 30-day window." Two little citation links sit under it.

For six parts, we've been building machinery: the genius, the map, the library, the scissors, the funnel. Today we stop explaining and just watch — one question, end to end, in slow motion, with a stopwatch running. My favorite way to see it is as a restaurant during the dinner rush. Your question just walked in hungry.

Before the doors ever opened

One thing first, because it's the part the slow-motion replay can't show: the pantry was stocked last night.

Everything from Parts 4 and 5 — cutting the documents into clean, self-contained pieces, computing their map coordinates, filing them in the shelf-less library — all of that happened before any question arrived, the way a kitchen preps before service. When your policy changes, the pantry gets restocked; nothing about tonight's cooking process changes. Keep that split in your head — prep time vs. service time — because it explains almost every "how does it update?" and "why is it fast?" question people ask about RAG. Now: service.

Milliseconds 0–40: the waiter takes the order

Your question enters as plain text, and the first station translates it — the embedding model computes its coordinates on the map of meaning (Part 3). Fifteen sentences of typed frustration or one crisp query; either way, out comes an address.

Simultaneously — no reason to wait — the literal screener gets a copy: keywords extracted ("sale items," "14 days," "return") for the Ctrl+F side of the house. Two screeners, both briefed, in under forty milliseconds.

Milliseconds 40–100: the pantry run

The funnel from Part 6 runs. The semantic screener walks the shelf-less library — hops between neighborhood signposts, lands in the returns district, grabs everything floating near the question's coordinates. The keyword screener sweeps for exact matches on "sale items" and "14 days." Lists merge; chunks both screeners flagged rise to the top.

Roughly fifty candidate passages now sit on the counter, fetched from a library of two million in about the time a hummingbird flaps its wings twice. This is the twenty-millisecond miracle Part 4 promised — and notice how boring it looks in context. Infrastructure done right is always boring.

Milliseconds 100–350: the second interview

The reranker — the careful reader from Part 6 — takes each of the fifty and reads it against the question, as a pair. Does this passage actually answer whether sale items can come back after two weeks?

The March policy update: strong yes. The general returns section: yes. The defective-items exception: yes — and note, it half-contradicts the first one, which is exactly the kind of nuance we want on the desk. A chunk about sale pricing: same neighborhood, wrong topic — out. The "cannot be returned" negation trap from Part 3: caught and ranked properly, because this station actually reads.

Five finalists survive. This was the most expensive quarter-second so far, spent on exactly fifty items instead of two million. The funnel earning its keep.

Milliseconds 350–400: plating the ticket

Now the quietest station, and one nobody writes blog posts about: prompt assembly. The system builds the single document the genius will actually read. Standing instructions on top — answer only from the passages provided; cite which passage supports each claim; if the passages don't answer it, say so. Then the five chunks, each tagged with its source and date. Then the question.

Notice what this is: the entire open-book exam, physically assembled. The desk, the book opened to the right pages, the rules of the exam written on the chalkboard. Everything the last six articles built converges into one well-organized sheet of paper — and the genius, who has been the star of this series and completely idle tonight, finally gets handed something.

Milliseconds 400–900: the chef cooks

The language model reads the sheet and writes the answer. This is the only station where the genius does anything — and look how constrained his job has become. Not "recall everything about return policies from a foggy memory of the internet." Instead: synthesize five short passages into one direct answer. Reconcile the 14-day rule with the defective-item exception, notice the March update supersedes the older text, answer the actual question asked, attach the citations.

Word by word the answer streams to your screen, the way all modern models generate — which is why you see it typing rather than appearing. The half-second this takes is the longest single stretch of the journey. Brilliance, even narrowly deployed, is the slow station.

At 900 milliseconds: answer, two citations, done. You blinked slowly, and a two-million-passage library was consulted, interviewed, and synthesized.

The whole journey, one breath

Order taken (question becomes coordinates) → pantry run (hybrid search, two million to fifty) → second interview (reranker, fifty to five) → plating (prompt assembled: rules, passages, question) → chef cooks (grounded answer, cited, streamed). Prep happened last night; the model showed up for the final half-second.

That's the machine. And here's what you've quietly earned over seven articles: you can now place any RAG conversation — vendor pitch, engineering standup, conference talk — onto this map. Someone says "we improved our reranker": you know exactly which station. "Our chunks were too big": you know which shelf of the pantry, and which article of this series to send them.

The catch

Watching the happy path is how demos get sold. But count the stations again — five of them, plus last night's prep — and notice that every single one can fail while looking successful. The map can file a passage in the wrong neighborhood. The funnel can drop the right chunk at stage one. The pantry can hold last year's menu next to this year's. The chef can ignore the ticket and cook from memory. Nothing crashes; no error appears; the answer arrives on time, confident, cited — and wrong.

A kitchen this smooth deserves a health inspection.

The one line to remember

An AI answer isn't magic — it's a kitchen with five stations, and now you can inspect every one of them.

Next — Part 8: "When RAG Lies." The five ways this beautiful machine produces confident, cited nonsense — including the failure where every component works perfectly and the answer is still wrong. The most honest article in the series.

Facing this problem in production?

I help teams make AI systems smaller, faster, and cheaper — from distillation to full MLOps pipelines.

Work with me