AI Context: Master the Information Environment Behind Generative AI

AI Context is the set of information made available to a generative model during a specific processing step and plays a central role in determining how a request is interpreted. In this handout, we will examine Context Engineering, which involves selecting, retrieving, organizing and updating the information environment surrounding the model.

We will then explore context management, including the distinction between persistent and local information, the need to preserve provenance and the risks created by overload, redundancy, conflict, obsolescence and contamination. Finally, we will analyze documentary context, which provides the materials and sources used for a task, and tool context, which describes the available actions, permissions, parameters and results that allow the system to interact with external resources.

Context

Key points

  • Execution context = information actually made available to a language model during processing, including instructions, conversation history, documents, retrieved data, and tool results.
  • Internal knowledge ≠ context: internal knowledge consists of patterns learned during training, while context provides task-specific information during execution.
  • Available information ≠ execution context: resources stored by a system become context only when selected, retrieved, and presented to the model.
  • Prompt Engineering ≠ Context Engineering: the former designs the immediate request, while the latter manages the broader information environment supporting its execution.
  • Context quality ≠ context quantity: effective context prioritizes relevant, current, consistent, and clearly organized information rather than maximizing available content.
  • Persistent context ≠ local context: persistent context retains reusable preferences and conventions, while local context contains information specific to the current task or conversation.
  • Personal context = stable user preferences and characteristics that guide interaction across conversations without rigidly determining individual responses.
  • Conversational context = information, decisions, definitions, and conventions accumulated within a dialogue, enabling continuity while potentially preserving outdated assumptions.
  • Instructional context = active directives specifying objectives, operations, priorities, constraints, materials, output formats, and quality criteria for the current task.
  • Normative context = higher-priority constraints governing permissible system behavior, including safety, privacy, authorization, and data protection, regardless of user preferences.
  • Documentary context = documents, data, and other materials supplied or retrieved to support a task; their contents do not automatically constitute authorized instructions.
  • Tool context = descriptions, permissions, parameters, results, and errors associated with available tools; tool capabilities ≠ information describing those capabilities.
  • Context priority → personal → conversational → instructional → normative; this represents the handout’s functional model, not a universal technical instruction hierarchy.
  • Documentary and tool contexts → support task execution by providing information and operational capabilities without independently determining the system’s objectives.
  • Context lifecycle → selection → retrieval → organization → use → updating → compression or removal, ensuring information remains relevant throughout execution.
  • Information provenance = identification of where information originated, how it was derived, and whether it has been verified or remains uncertain.
  • Context contamination = process through which incorrect information or model-generated hypotheses become accepted as established premises in subsequent interactions.
  • Context degradation → may result from overload, redundancy, conflicting instructions, obsolete information, contamination, lost provenance, reduced focus, or poorly visible priorities.
  • Context maintenance → preserves valid decisions, highlights critical constraints, removes obsolete information, and distinguishes verified facts from provisional assumptions.
  • Context management ≠ output verification: context supplies the information needed for generation, while verification assesses its reliability and correct interpretation.

Do you want to help me write articles like this one?

Leave a Reply

Your email address will not be published. Required fields are marked *

No responses yet

Sostieni il progetto

Tutti i materiali che condivido nascono da una convinzione molto semplice: una buona formazione non dovrebbe limitarsi a insegnare quali pulsanti premere, ma aiutare a comprendere le idee, i principi e i processi che stanno dietro agli strumenti.

Per questo dedico una parte significativa del mio tempo a studiare, organizzare e produrre contenuti gratuiti dedicati al multimedia, al design e alla comunicazione visiva. Articoli, lezioni, approfondimenti e risorse che hanno l’obiettivo di rendere accessibili argomenti spesso affrontati in modo frammentario o superficiale.

Questo lavoro richiede però tempo, ricerca e cura. Ogni guida, ogni video, ogni materiale pubblicato gratuitamente è il risultato di molte ore di studio, scrittura e revisione.
Sostenere il progetto attraverso Patreon significa permettermi di continuare a produrre contenuti educativi di qualità, mantenerli accessibili al maggior numero possibile di persone e dedicare più energie alla costruzione di una risorsa che possa essere utile a studenti, professionisti e appassionati.

Se credi che una conoscenza più profonda, rigorosa e consapevole del multimedia abbia valore, il tuo contributo non sostiene soltanto il mio lavoro: aiuta a rendere queste risorse disponibili per tutta la comunità.
Grazie per il supporto e per la fiducia.

Patreon è troppo impegnativo?

Puoi sostenermi anche con una donazione libera, senza abbonamento e senza impegno.
Anche un piccolo contributo mi aiuta a continuare a creare giochi, contenuti didattici e materiali gratuiti con più libertà.

Support the project

All the materials I share stem from a very simple conviction: good training should not be limited to teaching which buttons to press, but should help people understand the ideas, principles, and processes behind the tools.

That is why I dedicate a significant portion of my time to researching, organizing, and producing free content focused on multimedia, design, and visual communication—articles, lessons, in-depth analyses, and resources aimed at making accessible topics that are often addressed in a fragmented or superficial way.

However, this work requires time, research, and care. Every guide, video, and piece of material published for free is the result of many hours of study, writing, and revision.
Supporting the project via Patreon enables me to continue producing high-quality educational content, keep it accessible to as many people as possible, and devote more energy to building a resource that benefits students, professionals, and enthusiasts alike.

If you believe that a deeper, more rigorous, and informed understanding of multimedia is valuable, your contribution does more than just support my work: it helps make these resources available to the entire community.
Thank you for your support and trust.

Is Patreon too demanding?

You can also support me with a voluntary donation—no subscription or commitment required.

Even a small contribution helps me continue creating games, educational content, and free materials with greater freedom.