Google
S21
HardPremiumDesign an AI Answer Engine on a Three-Second Budget
Design a public answer engine: a user types a question and a cited answer, drawn from the open web and a fresh news index, starts streaming within about a second.
Latency budgetRAGFreshnessCachingCitationsStreaming
Key Requirements
- Stream a cited answer: first token in about a second, the whole answer in three
- Search the open web plus a news index that is minutes fresh
- Every sentence cites a source that supports it
- Say so when the sources are too thin to answer
- Serve millions of anonymous questions a day at a known cost per answer
Interviewer Follow-ups
- Q1Which stage do you cut when retrieval runs slow?
- Q2How do you keep cached answers fresh while a story is breaking?
- Q3How do you stop an unsupported sentence from reaching the user?
Loading...