Problems / Design a product, hard

Build enterprise RAG search

Design a Glean-style enterprise search from an empty canvas: ingest company documents into a vector index and answer questions with a model, streamed, safely.

Unlock it once for 25 credits; everything inside it is free (runs, changes, Submit, results, hints). Sign in with Google to start; new accounts get free credits.

What it must do

Scale

Request types to route: ask (90%, read), upload (10%, write). Budget: $180,000 a month.

Estimate first

The test cases

You start from an empty canvas. When you run the tests, each one simulates your design with its own traffic and failures:

TestWhat it doesPasses when
Normal dayThe normal day: the traffic in the brief, nothing broken.Success ≥ 99%; First token p99 ≤ 2.5 s; p99 latency ≤ 1.0 s (upload)
Quarter-end crunchAt 5 s everyone asks at once: traffic triples for 8 s.Success ≥ 98%; First token p99 ≤ 4.0 s
Prompt injectionAt 5 s, 30 requests a second carrying hidden instructions arrive for 10 s, as questions and inside uploaded documents.Success ≥ 98%; Attack blocked ≥ 90%
Budget: $180,000/monthThe normal day's design must cost at most $180,000 a month.Cost ≤ $180,000/month

Must include

More design a product problems