Chapter 7
How Gen AI Works – Unpacked

Reading guide
What are the five layers of the technical diagram?
The diagram separates the user, interface, prompts, business logic, and storage. Each layer has a role in how a request becomes an answer.
Simplified graphic
Five layers of an application
1–2. User and interface
People enter and refine requests. The interface offers controls and presents results.
3–4. Prompts and logic
Instructions shape inputs and outputs. Logic coordinates processing and evaluation.
5. Storage and data
Stored material supports retrieval. The source includes vector storage.
Editorial visual
Each layer handles a different part of the request.
The tiers identify several places where a team can influence the output.
How to read the original
The diagram is a design model that groups processing, retrieval, evaluation, and storage by responsibility.