Can you design the whole LLM system now?

500 employees. 50,000 documents. Weekly updates. Bursty traffic.

That's the design brief for the final comic. It's a hypothetical internal assistant, with enough detail to make the earlier choices matter.

Trace one request from identity and retrieval through the model to a checked answer. Choose the serving plan, mark every permission check, and decide what would block release.

The challenge pulls together all 18 comics. Suggested answers follow it.

Download this comic as a PDF

Comic page 1 of 6: Can you design the whole LLM system now?
Read page 1 as text

Can you design the whole LLM system now?

500 employees. 50,000 documents. Bursty traffic. No permission leaks.

WHAT WE WILL FIGURE OUT

01

Connect the application to serving

02

Plan for failure and changing data

03

Make the final design reviewable

OUR EXAMPLE

Design an internal docs assistant: 500 employees, 50,000 documents, weekly updates and bursty traffic.

Follow the steps. Ask the obvious questions. Check the result.

Part 18 of 18 · Challenge: page 5 · Suggested answers: page 6

Comic page 2 of 6: Connect the application to serving
Read page 2 as text

Connect the application to serving

1

THE DESIGN BRIEF

500 employees

50,000 documents

500 employees

50,000 documents

Can I just put a model behind an API?

We need a documented service for 500 employees and 50,000 changing documents. Quality, permissions, latency and cost all matter.

Hypothetical workload: busy weekdays, quiet nights

2

START WITH PERMISSIONS

FOLLOW THE CHANGE

identity

allowed evidence + tools

identity

→

allowed evidence + tools

Authenticate each user. Retrieve only material that user may read, and enforce resource permissions again at tool execution.

User identity → authorized documents and actions

3

BUILD THE KNOWLEDGE PATH

FOLLOW THE CHANGE

version

index

cited evidence

version

→

index

→

cited evidence

Ingest, version, chunk and index documents. Retrieve evidence for each question and produce verifiable citations.

Weekly changes → refreshed, permission-aware index

4

CHOOSE A MODEL BY EVIDENCE

FOLLOW THE CHANGE

quality gate

capacity estimate

quality gate

→

capacity estimate

Evaluate candidates on representative questions and failure cases. Then estimate weights, KV state and runtime headroom.

Quality requirement first; measured capacity next

Comic page 3 of 6: Plan for failure and changing data
Read page 3 as text

Plan for failure and changing data

5

CHOOSE THE SERVING PLAN

hosted

self-hosted

hybrid

hosted

self-hosted

hybrid

Do quiet nights change the decision?

Compare a permitted hosted API, self-hosting and a hybrid against privacy rules and total workload cost.

Bursts need capacity; idle reservations still cost

6

PROTECT THE QUEUE

FOLLOW THE CHANGE

limits

bounded queue

output cap

limits

→

bounded queue

→

output cap

Set per-user limits, admission rules, bounded queues and explicit output caps. Return a useful overload response.

No unbounded waiting and no unlimited generation

7

DESIGN THE FAILURE PATH

FOLLOW THE CHANGE

timeout

permitted fallback

timeout

→

permitted fallback

Use timeouts, careful backoff and retries. A fallback must meet privacy and quality requirements, not just be available.

An outage does not authorize a new data destination

8

CACHE WITH THE RIGHT KEY

user scope

source version

user scope

source version

Exact or semantic answer caches need user scope, source versions and configuration in their validity checks.

Similar question + different access can mean no reuse

Comic page 4 of 6: Make the final design reviewable
Read page 4 as text

Make the final design reviewable

9

MONITOR THE COMPLETE SERVICE

quality

latency

useful cost

quality

latency

useful cost

Which dashboard tells me it works?

Track retrieval quality, grounded answers, permission failures, TTFT, token gaps, queue depth, errors and useful cost.

Keep user outcomes alongside infrastructure metrics

10

MAKE A RELEASE GATE

FOLLOW THE CHANGE

versioned checks

release gate

versioned checks

→

release gate

Run deterministic checks and held-out evaluations for every relevant change. Block on critical regressions and keep rollback ready.

Model, prompt, index and permissions are versioned

11

FOLLOW ONE REAL REQUEST

source trace

tool trace

privacy

source trace

tool trace

privacy

Trace identity, retrieved source versions, assembled context, tool decisions, generation and final citations. Limit sensitive logging.

A request trace should explain the observed outcome

12

THE PAYOFF

Authenticated user

Authorized evidence + guarded tools

Model → checked, cited answer

evidence

→

model

→

checked answer

I can now explain each box and its cost.

The model is one component. The application supplies evidence and authority; the serving system supplies bounded capacity.

Request → evidence → model → checked answer

Comic page 5 of 6: Your turn. Can you explain what happens?
Read page 5 as text

Your turn. Can you explain what happens?

Use the same example. Change one detail. What follows?

KEEP THIS EXAMPLE IN MIND

Design an internal docs assistant: 500 employees, 50,000 documents, weekly updates and bursty traffic.

Try first. Suggested answers are on the next page.

1

Draw the request path and mark every permission check.

What makes you say that?

2

Choose hosted, self-hosted or hybrid serving. What measurements justify your choice?

What makes you say that?

3

What would make you block release or roll back?

What makes you say that?

Write your answers in the comments.

Comic page 6 of 6: Suggested answers
Read page 6 as text

Suggested answers

Can you design the whole LLM system now?

01

Draw the request path and mark every permission check.

Identity, authorized retrieval, context assembly, guarded tools, generation and citation checks should be explicit; resource checks must be enforced by code.

02

Choose hosted, self-hosted or hybrid serving. What measurements justify your choice?

Use quality results, traffic shape, privacy constraints, weight/cache memory, measured latency/throughput and total operating cost. No single deployment is assumed correct.

03

What would make you block release or roll back?

Critical authorization failures, unsupported claims, reliability regressions, breached latency/cost limits or unsafe tool behavior are examples.

Try the challenge on page 5. Suggested answers follow on page 6.