Why design starts with questions

Lesson 1 of 26 · A method you can repeat · 2 min · Free Watch this lesson free

Someone says, design a knowledge assistant. Within a minute, most engineers in the room are drawing boxes, and most of those boxes belong to the wrong system. Drawing feels like progress, but it is a guess about a problem nobody has defined.

Senior engineers do something that looks slower. They ask questions first, and they ask the ones that decide the design. This whole course is a method for doing that until it becomes habit.

One sentence two systems

Take one sentence: people ask questions about their company documents and get answers. For a ten person startup with a few hundred pages, one server and one database is a perfectly good design.

Now make it ten thousand companies, each with millions of documents and strict rules about who may see what. You suddenly need partitioned data, a permission check on every query, background indexing, and a plan for when parts fail.

The questions that matter

Start with who uses it and what they do. Then split requirements in two. Functional requirements are what the system does, like upload, search, ask and cite. Non-functional ones are how well it does it: how fast, how available, how fresh, how safe.

Non-functional requirements are where designs diverge, so pin each one to a number or a choice. Not "fast", but answers start streaming within two seconds for most questions. Not "reliable", but what the user sees when the model provider is down.

Also ask what to leave out. Naming a non-goal, like no live collaborative editing in version one, is not a weakness. It protects the design from a dozen features nobody asked for.

Meet lumen

Through this course you will design one product, called Lumen. Teams connect their documents, people search them and ask questions, and Lumen answers with citations. Later it will also file tickets on someone's behalf.

Today it is a plain app: a web client, an API, a database, and a store for the document files. Every lesson adds one idea to it, and each addition has to earn its place against the requirements we write down.

The idea to keep

So the first move in any design is a short list of requirements you could defend out loud, with numbers wherever numbers exist. Everything after that is a trade-off measured against that list.

Next, we get those numbers. You will estimate load and storage on the back of an envelope, and learn to say plainly which parts are assumptions and which are measured.

This is the narration of a video lesson from System design for senior engineers, AI systems included. In the video it is animated, and you can pause it to ask a question.