Menu

Glossary

What is context engineering?

Context engineering is deciding what goes into a language model's context window, in what form and in what order, so that scarce tokens carry signal.

Copy as MarkdownOpen in ChatGPT (opens in a new tab)Open in Claude (opens in a new tab)

Context engineering is the practice of deciding what information goes into a language model's context window, in what form and in what order: retrieved documents, tool results, instructions and history. Because context is finite and every token costs money and attention, the discipline focuses on selecting high-signal content and cutting noise.

How is context engineering different from prompt engineering?

Prompt engineering is about wording: phrasing instructions so the model behaves. Context engineering is about curation: assembling everything else in the window. Which documents get retrieved, how they are trimmed, which tool outputs are kept, how much conversation history survives, and what gets summarized instead of quoted. As models improved, clever phrasing mattered less and the quality of the supplied material mattered more. In agentic and RAG systems, much of the engineering effort now goes into assembling context.

Why does it matter?

Three constraints make the context window a scarce resource:

The upshot: adding more context is not free and is often not even helpful. The job is to maximize signal per token.

What are the core techniques?

Where do most context budgets leak?

Retrieval. A single noisy web fetch can put thousands of tokens of navigation, filler and duplicated rewrites into the window. This failure mode is called RAG noise. That is why context engineering starts at the retrieval layer, before any trimming: cleaner, deduplicated sources shrink the problem at its origin.

Where MillionShort fits

MillionShort search gives you a few direct levers on the retrieval budget. max_chars_per_result sets the longest snippet (up to 2,000 characters, 800 by default), and num_results sets the length of the one merged list. Duplicates across sources are removed before the list is returned. remove_top_sites and domain rules change which sites can appear at all. See low-noise RAG for how these combine.

This page as Markdown ยท llms.txt