Skip to content
Retrieval & context · 5 of 6 · about 20 minutes · With a year

Build a prompt from parts

A model answers from the text that it gets. Your program builds that text, so your program decides what the model knows about the task. A good prompt has clear parts in a fixed order: the rules, then the facts, then the question. Each part has a label, and each fact has an id that the model can cite. The work to choose and arrange these parts is context engineering.

About this lesson

Words to know

context engineering
The work to choose what a model reads in one request: the rules, the facts, the history and the question, and their order.
citation
A reference from an answer to the source document it is based on, usually by id.

Why it matters

Each later part of this course sends something to a model: search results, notes, results of tools. All of them enter the prompt through a builder such as this one.

With a year

How it works, a worked example, the exercise with its tests, three hints and the explained solution are in the app, with a year of Algo150 for $29 or ₾49. The first chapter, Model foundations, is free for everyone: start with Vector dot product.

What a year includes