What an LLM system is
What it is
A large language model (LLM) takes text in and writes text out. An LLM system is everything you build around that one call so that it works as a product.
- Before the call: checking the request, finding the right information, and building the prompt.
- The call itself: choosing a model, sending the request, and handling slow or failed responses.
- After the call: checking the answer, formatting it, logging it, and paying for it.
Why it matters
The model is a small part of the work. A demo is one prompt and one answer. A product has to handle:
- thousands of users at once;
- a provider that is sometimes slow or down;
- a bill that grows with every word;
- users who try to misuse it;
- answers that are sometimes wrong.
LLM system design is the discipline of handling those five things on purpose.
In the real world: A food-delivery company's support chatbot works in the demo, then fails in its first week: answers take 12 seconds at dinner time and the monthly bill is five times the estimate.
Thinking the interview is about the model. Interviewers rarely ask how a transformer works in a system design round. They ask what happens when the model is slow, wrong, expensive or attacked.
Practise it: Design an LLM Inference Serving System