AIYINGFrom AI Awareness to Accomplishment
Showing posts with label Context Window. Show all posts
Showing posts with label Context Window. Show all posts

Wednesday, November 11, 2026

AI Engineering Living Glossary #005 — Context Window: How Much Information Can AI Consider at Once?

AI ENGINEERING | LIVING GLOSSARY | #005

CONTEXT WINDOW

How Much Information Can AI Consider at Once?



AIYING — Accomplishing with AI

Imagine an AI assistant reviewing a lengthy engineering specification, several design documents, and a long conversation with a developer.

At some point, the total information may exceed what the model can accommodate in its active context.

What happens then? Which information should be retained, summarized, retrieved again, or excluded?

These are questions of context window management.

Engineering insight: The goal is not to fill the context window. It is to provide the right information at the right time.

1. What Is a Context Window?

A context window is the maximum amount of tokenized information a language model can accommodate within its active processing context, subject to the model's architecture and provider-specific limits.

The context may include:

  • System and developer instructions
  • User questions
  • Conversation history
  • Retrieved documents
  • Tool responses
  • Other supported input content
  • Tokens generated during the interaction

Providers may specify separate input limits, output limits, or combined context limits. Engineers must consult the documentation for the particular model and API.

The context window is sometimes described as a model's working memory. This is a useful analogy, but it should not be confused with permanent storage or human memory.

↑ Back to contents

2. Why Context Windows Matter

AI applications often need to process more information than a single user question.

Consider a technical support assistant that receives:

  • A user's question
  • Previous conversation messages
  • Technical documentation
  • Error logs
  • Tool results
  • Application instructions

All this information competes for the available context budget.

Engineering dimensionWhy context matters
RAGDetermines how much retrieved evidence can be supplied.
Long-document analysisInfluences document selection, segmentation, and processing.
AI agentsAffects handling of conversation history and tool outputs.
Code assistanceInfluences which files and dependencies can be considered together.
CostLarger inputs may increase token-based usage charges.
PerformanceLonger inputs can affect latency and answer quality.
↑ Back to contents

3. How Context Windows Work

In a typical language-model interaction, an application constructs a sequence of information to send to the model.

User Question
      +
System Instructions
      +
Conversation History
      +
Retrieved Information
      +
Tool Results
      |
      v
Active Model Context
      |
      v
Response Generation

Each component consumes part of the available token budget.

If the request exceeds supported limits, an API may reject it. Some applications or services instead truncate, summarize, or otherwise manage context before sending the request.

Engineers should not assume that older conversation content remains available unless their application explicitly preserves or resupplies it.

↑ Back to contents

4. Understanding Token Budgets

Consider a hypothetical model with a combined context capacity of 128,000 tokens.

An application might allocate the budget as follows:

ComponentTokens
Instructions3,000
User question and conversation5,000
Retrieved documents90,000
Reserved response capacity20,000
Safety margin10,000
Total128,000

This is an illustrative planning budget, not a requirement or guarantee for any specific model.

The engineer must also consider separate maximum-output limits, hidden overhead, and provider-specific token accounting.

Engineering principle: Reserve sufficient capacity for the response, account for overhead, and avoid operating unnecessarily close to the context limit.
↑ Back to contents

5. Why More Context Is Not Always Better

A larger context window allows more information to be supplied, but it does not guarantee that the model will use every detail equally well.

A. Irrelevant information

Unnecessary documents may distract from the information needed for the task.

B. Conflicting information

Different versions of a policy or specification may create ambiguity.

C. Position effects

Some models and tasks exhibit differences in how effectively information is used depending on where it appears in a long context.

D. Cost and latency

Large contexts may require more computation and increase operating costs.

E. Lost requirements

Important instructions may be omitted by application-level truncation or summarization.

Research on the "lost in the middle" phenomenon illustrates that successful retrieval and use of information within long contexts can depend on position and model behavior.

Engineering caution: Context capacity and effective context utilization are different things.
↑ Back to contents

6. Industry Applications

ApplicationContext engineering challenge
Enterprise knowledge assistantsSelecting relevant evidence from large document collections.
Software engineering assistantsManaging code, dependencies, instructions, and tool results.
Customer supportPreserving essential conversation history.
Document analysisComparing long reports and specifications.
AI agentsMaintaining task state across multi-step workflows.
Research assistantsOrganizing evidence from multiple sources.
↑ Back to contents

7. What Must an AI Engineer Decide?

A. What information is essential?

Identify instructions, facts, constraints, and evidence necessary for task completion.

B. What should be retrieved on demand?

Use retrieval systems instead of placing every available document into the prompt.

C. What should be summarized?

Compress older information when appropriate, while preserving critical requirements and references.

D. What must never be silently discarded?

Preserve safety constraints, user-approved decisions, and important task requirements.

E. How should context be structured?

Separate instructions, evidence, conversation state, and tool outputs clearly.

F. How should long conversations be handled?

Consider rolling summaries, persistent state, retrieval, and selective history retention.

G. How should performance be measured?

Evaluate answer quality, requirement retention, latency, token consumption, and successful task completion.

H. How should untrusted content be treated?

Retrieved documents and tool outputs may contain malicious instructions. They should be treated as data rather than automatically trusted commands.

Engineering principle: Context management is an information-selection and state-management problem, not merely a token-counting exercise.
↑ Back to contents

8. Practical Industry Case: Long-Running Engineering Assistant

Consider an AI assistant supporting a software engineering team over several weeks.

The assistant works with:

  • Product requirements
  • Architecture decisions
  • Source code
  • Test results
  • Bug reports
  • Conversation history

As the project develops, the accumulated information becomes too large to supply in every request.

Engineering approach

  1. Identify stable project requirements.
  2. Maintain a structured record of approved decisions.
  3. Store documents and code in appropriate external systems.
  4. Retrieve task-relevant information when needed.
  5. Summarize older conversations while preserving essential decisions.
  6. Separate current task instructions from retrieved evidence.
  7. Reserve sufficient output capacity.
  8. Check generated work against original requirements.
  9. Evaluate whether critical information was retained.
  10. Update persistent project state after approved changes.

Expected benefit: The assistant can continue useful work without repeatedly supplying every historical interaction.

Important limitation: Summaries can omit or distort details. Critical requirements should remain independently accessible and verifiable.

↑ Back to contents

9. Try It Yourself

Mini Experiment: More Context Versus Better Context

Objective: Discover whether adding more information always improves AI output.

  1. Select a question requiring evidence from a short technical document.
  2. Prepare a prompt containing only the relevant passage.
  3. Prepare a second prompt containing the same passage plus several unrelated passages.
  4. Prepare a third prompt containing the relevant passage and a concise summary of supporting information.
  5. Run all three prompts using the same model and settings.
  6. Compare factual correctness and completeness.
  7. Measure input tokens and response time where available.
  8. Check whether important requirements were followed.
  9. Repeat the experiment with the relevant passage placed in different positions.
  10. Record which context design produces the most reliable result.

Reflection questions

  • Did more information improve the answer?
  • Did irrelevant context create errors or confusion?
  • Did summarization preserve essential facts?
  • Did the position of relevant information matter?
  • Which design provided the best balance of quality, cost, and speed?

Success criterion: Identify a context-selection strategy that reliably supports the task without unnecessary information.

↑ Back to contents

10. Connected Glossary Terms

  • Token: The unit used to measure context consumption.
  • Embedding: Supports retrieval of relevant information.
  • Vector Database: Helps store and retrieve external knowledge.
  • RAG: Supplies selected external evidence to a model.
  • Prompt Engineering: Organizes instructions and context.
  • AI Agent: May require context and state management across many steps.
  • Evals: Measures whether context design supports successful outcomes.

Previous lessons:

Next lesson: #006 — Prompt Engineering.

↑ Back to contents

11. Living Update

Editorial baseline: November 2026

Context engineering has become an important design concern for AI applications involving long documents, retrieval, tools, and multi-step workflows.

Relevant techniques and developments to monitor include:

  • Long-context model architectures
  • Retrieval-based context selection
  • Context compression and summarization
  • Prompt caching
  • Persistent task state and external memory systems
  • Adaptive context construction
  • Long-context evaluation
  • Tool-output filtering and security

Context-window specifications vary across models, providers, and API configurations. Engineers should verify current limits before designing applications around them.

Living Glossary note: Revisit this entry as model context capacities, effective long-context performance, and application-level context management techniques evolve.

↑ Back to contents

12. Key Takeaway

The context window defines how much information a model can accommodate, but effective AI engineering depends on selecting and preserving the information that matters.

A larger context window is a capability, not a substitute for information architecture.

Think like an AI engineer: What information must the model have now, what can be retrieved later, and what must remain reliably preserved outside the model?

↑ Back to contents

13. References and Further Reading

↑ Back to contents

AI Engineering — Living Glossary

One Term. One Industry Connection. One Practical Insight. One Action.

AIYING — Accomplishing with AI

Episode #005 | CONTEXT WINDOW

↑ Return to top

Sunday, October 18, 2026

AI Fluency Module 3: The Four Properties of AI | 4 Free Video & Text Lessons

AI FLUENCY · PHASE 1: AWARENESS

Module 3
The Four Properties of AI

Understand How Language Models Generate, Use, Remember, and Respond to Information

Why does AI predict the next word? What does it actually know? How does it use earlier messages? And why does it follow instructions?

Explore these questions through four short visual lessons and their detailed written explanations.

4 Video Lessons 4 Text Lessons 54 Seconds Each Free Learning

Welcome to Module 3

In Module 1, we explored the meaning of Artificial Intelligence and its presence in everyday life.

In Module 2, we discovered how AI learns from data, recognizes patterns, develops models, and generates language.

Now we examine four important properties of modern Large Language Models (LLMs).

Drawing on the educational framework introduced by Claude Academy, this module explores:

  • Next-Token Prediction
  • Knowledge
  • Working Memory
  • Steerability

Together, these properties help us better understand how generative language models behave and why their responses have both capabilities and limitations.

How to Learn

Each lesson combines a short, silent visual video with a detailed written explanation.

Watch: Begin with the 54-second video to understand the central idea.

Read: Open the published text lesson for explanations and examples.

Understand: Connect the concept with familiar everyday situations.

Reflect: Answer the questions to check your understanding.

The Four Properties at a Glance

1. Next-Token Prediction

A language model generates text by predicting successive tokens using learned patterns and available context.

2. Knowledge

Training develops learned representations of information, but generated answers may be incomplete, outdated, or wrong.

3. Working Memory

The context window contains information available to a model while generating its current response.

4. Steerability

Instructions, context, and feedback can influence how an AI model responds.

Watch and Read the Four Lessons

Follow the lessons sequentially to build a connected understanding of these four properties.

LESSON 009 · 54 SECONDS

Next-Token Prediction: How AI Generates Answers

How does an AI assistant construct a response to your question?

Many modern language models generate text by predicting one token at a time.

Each newly generated token becomes part of the context used to predict the next.

Example: "The capital of France is..." may be followed by "Paris."

Key Learning: Language models build responses through successive token predictions, but plausible text is not necessarily factually correct.

LESSON 010 · 54 SECONDS

Knowledge: What Does AI Actually Know?

Where does an AI assistant's information come from?

During training, language models learn statistical relationships, facts, and associations.

However, this does not mean that every generated claim is accurate or up to date.

Example: An LLM may correctly identify Rabindranath Tagore as the author of India's national anthem, but may lack information about a competition that ended minutes ago.

Key Learning: Learned knowledge differs from current retrieved information, and important factual claims require verification.

LESSON 011 · 54 SECONDS

Working Memory: What Is the Context Window?

How can an AI assistant use instructions you provided earlier in a conversation?

The context window contains information available for processing during the current response.

Its capacity is limited, and older details may not always remain available.

Example: If you ask AI to use simple language for 10-year-old students, that earlier instruction can influence a later explanation while it remains in context.

Key Learning: The context window acts as a form of working memory, but it is limited and distinct from training knowledge or separately saved memory.

LESSON 012 · 54 SECONDS

Steerability: Why Does AI Follow Instructions?

Why can AI explain the same topic differently depending on your instructions?

Steerability allows users to guide AI responses through instructions and context.

Audience, tone, format, length, and purpose can all influence the generated result.

Example: "Explain photosynthesis" may produce a general explanation. Adding "for a 10-year-old student" can result in simpler language.

Key Learning: Instructions can guide AI behavior, but instruction-following is not always perfect, and a well-formatted response can still contain errors.

How Do the Four Properties Connect?

The four properties are not isolated ideas. They help explain different aspects of how language models operate.

Knowledge

Training shapes the information and relationships represented within the model.

↓

Working Memory

The current context provides information and instructions for the response.

↓

Steerability

Instructions influence how the response should be generated.

↓

Next-Token Prediction

The model generates its response through successive token predictions.

This diagram is a conceptual summary, not a literal step-by-step representation of a model's internal architecture. These properties interact during language generation.

Check Your Understanding

After watching and reading the four lessons, try answering these questions.

  1. How does a language model generate longer responses through next-token prediction?
  2. Why might an LLM lack information about a very recent event?
  3. How does a context window help an AI assistant follow earlier instructions?
  4. How can changing an instruction influence the style and usefulness of an AI response?

If you can explain these ideas clearly in your own words, you have developed an important part of foundational AI awareness.

Module 3 Complete!

You have now completed the four learning lessons covering important properties of generative language models.

You understand how language models generate tokens, use training knowledge, process context, and respond to instructions.

12 AI Fluency Lessons Completed

Your journey through Phase 1: Awareness continues.

COMING NEXT

Module 4 — The AI Landscape

Next, we move beyond the fundamental properties of language models to explore the wider AI ecosystem.

We will investigate multimodal AI, chatbots, AI assistants, agents, search engines, and databases.

Lesson 013: What Is Multimodal AI?

Further Learning

This module draws inspiration from Claude Academy's Four Properties of AI framework.

Explore Claude Academy →

Explore OpenAI Academy →

The AI Fluency Journey

Our program progresses through four phases.

AWARENESS → APPRECIATION → APPLICATION → ACCOMPLISHMENT

You have completed three modules in the Awareness phase.

Explore the Complete AI Fluency Course Roadmap →

AIYING

Accomplishing with AI

Everything AI. For Everyone.

AI Fluency — From Awareness to Accomplishment

Created by Ravindra Dastikop

https://dastikop.blogspot.com

11. What Is the AI Context Window? Working Memory Explained | AI Fluency Lesson 011

AI FLUENCY · PHASE 1: AWARENESS

Module 3 — The Four Properties of AI | Lesson 011

Working Memory: What Is the Context Window?

Understand how AI uses earlier information during a conversation and why its working context has limits.

Watch this 54-second silent visual lesson. Then explore the explanations and examples below.

Watch on YouTube →

Introduction

Have you noticed that an AI assistant can follow instructions you provided earlier in a conversation?

For example, you might tell ChatGPT, Claude, or Gemini to explain everything in simple language.

Several messages later, the assistant may continue following that instruction.

But sometimes, especially in long conversations, AI may lose track of details you previously mentioned.

This behavior relates to a fundamental property of Large Language Models: working memory, commonly explained through the context window.

1. What Is a Context Window?

A context window is the amount of information an AI model can process together when generating a response.

It may include the current question, earlier messages, instructions, and relevant documents.

The information available in the context helps the model interpret the user's request and generate an appropriate continuation.

In Simple Words

The context window is the information the language model can work with while generating its current response.

2. How Does AI Working Memory Help?

Imagine that you are preparing a classroom lesson.

You tell an AI assistant:

Your First Instruction

"I am teaching 10-year-old students. Use simple language."

Then you ask:

Your Next Question

"Explain climate change."

The AI can use your earlier instruction to generate an age-appropriate explanation because that instruction remains in the context.

Possible AI Response

"Climate change means the Earth is getting warmer over time. This can affect weather, animals, plants, and people."

Notice that the response uses relatively simple language.

The earlier instruction helped shape the answer to the current question.

3. How Does the Context Window Work?

An LLM processes information in units called tokens.

Tokens may represent words, parts of words, punctuation, or other text segments.

A context window has a maximum token capacity.

The model uses the available tokens to help determine what to generate next.

Information Available to the AI

Earlier Instruction

Use simple language.

+

Current Question

Explain climate change.

↓

Model Generates a Response

Explanation in simple language.

Simplified illustration of how context influences an AI response.

The model's available context may also contain system instructions, tool results, or selected information provided by an application.

4. Is AI Working Memory Unlimited?

No.

Every language model has a limit on how much information it can process at one time.

This limit is commonly measured in tokens.

When a conversation or document exceeds the available context capacity, some information may need to be removed, summarized, or excluded.

A Simplified Context Window

Currently Available Context

Current question

Relevant earlier instructions

Selected conversation history

Potentially Outside the Context

Older messages or details that are no longer included.

Illustrative only. Applications may manage older conversations through different mechanisms.

An important instruction may therefore stop influencing a response if it is no longer included in the model's current input.

However, even information within the context is not guaranteed to be used perfectly.

5. Is Context the Same as Knowledge?

No. These concepts describe different sources of information.

Knowledge

Information and relationships learned during model training.

Context

Information available to the model while generating its current response.

Saved Memory

Information an AI application may store and retrieve separately across interactions.

A model's context window is not automatically the same as an application's saved memory.

Applications may use tools, retrieval systems, or memory features to bring relevant information into a new conversation.

What the model can actually use depends on what information is made available to it.

6. How Can We Use Context Effectively?

Understanding context helps us communicate more effectively with AI assistants.

  1. State your goal clearly. Explain what you want the AI to accomplish.
  2. Provide relevant background. Include details important to the task.
  3. Specify essential requirements. Mention the audience, format, constraints, or important preferences.
  4. Summarize long discussions. Restate important decisions when a conversation becomes lengthy.
  5. Repeat critical instructions when needed. Do not assume every earlier detail remains available indefinitely.

Good context improves the chances of getting a relevant response, although it does not guarantee perfect results.

7. Why Does This Matter for AI Fluency?

AI Fluency involves more than simply asking questions.

It includes understanding what information the AI needs to perform a task effectively.

When we provide relevant context, we help the model interpret our goals and constraints.

When we understand context limits, we are less likely to assume that AI has retained everything from a long discussion.

This awareness supports better communication, evaluation, and responsible AI use.

Key Takeaway

The context window is the information an AI model can process together when generating a response.

It acts as a form of working memory, but it is limited and distinct from learned knowledge or separately stored memory.

Think About It

Imagine working with an AI assistant on a project over many conversations.

You gave important requirements at the beginning, but later the AI appears to ignore them.

What might explain this behavior?

How could summarizing the project requirements help the AI produce a more relevant response?

What Have You Learned?

After completing this lesson, you should be able to:

  • Explain what a context window is.
  • Describe how earlier instructions can influence current responses.
  • Recognize why a context window has a limited capacity.
  • Distinguish context from learned knowledge and saved memory.
  • Provide relevant information to improve AI interactions.

CONTINUE LEARNING

Next: Lesson 012

Steerability: Why Does AI Follow Instructions?

Now that you understand how context influences AI-generated responses, the next lesson explores steerability.

You will learn how instructions influence AI behavior, why responses change when prompts change, and why instruction-following still has limitations.

Further Learning Resources

Claude Academy — AI Learning Resources

OpenAI Academy

Google Machine Learning Crash Course

Your AI Fluency Journey

AI Fluency develops through four connected phases.

AWARENESS → APPRECIATION → APPLICATION → ACCOMPLISHMENT

Understanding how AI works helps us use it responsibly to accomplish meaningful goals.

Explore the Complete AI Fluency Roadmap →

AIYING

Accomplishing with AI

Everything AI. For Everyone.

AI Fluency — From Awareness to Accomplishment

Created by Ravindra Dastikop

https://dastikop.blogspot.com

Saturday, October 3, 2026

The Minimalist Context Engineering: Context Engineering Explained in 100 Words

The Minimalist Context Engineering - Context Engineering Explained in 100 Words by Ravindra Dastikop

THE MINIMALIST CONTEXT ENGINEERING

Context Engineering Explained in 100 Words

Ravindra Dastikop

Understand less. Accomplish more.


Why This Book?

Context engineering can sound complicated.

Instructions.

Tools.

Retrieval.

Memory.

History.

Compaction.

Selection.

Tokens.

Context windows.

Judgment.

But understanding context engineering does not have to begin with complexity.

This book strips context engineering down to what matters.

10 ideas.
10 words each.
100 words.
Enough to begin.


How to Read This Book

Read one idea.

Stop.

Think about it.

Try it with AI.

Then move to the next.

The purpose is not to know everything about context engineering.

The purpose is to understand enough to accomplish something with context engineering.


01 — CONTEXT ENGINEERING

Context engineering curates information models receive to improve their performance.

Prompt engineering asks:

What should I tell the model?

Context engineering asks a broader question:

What should the model know right now?

The model may receive much more than a prompt.

Its context can contain:

Instructions.

Conversation history.

Retrieved information.

Tool definitions.

Tool results.

Memory.

Files.

Examples.

System information.

The challenge is therefore not simply writing better instructions.

It is assembling the right information at the right time.

AVAILABLE INFORMATION → CURATE → MODEL

02 — INSTRUCTIONS

Instructions define goals, behavior, constraints, and priorities for model execution.

Instructions remain fundamental.

They tell the model:

What it should accomplish.

How it should behave.

What constraints apply.

What output is expected.

What it should avoid.

Prompt engineering therefore does not disappear when context engineering begins.

It becomes one component of a larger system.

A beautifully written prompt cannot compensate for missing information, irrelevant context, poor tools, or outdated knowledge.

Think:

CONTEXT ENGINEERING > PROMPT ALONE

The prompt matters.

But so does everything surrounding it.


03 — TOOLS

Tools provide capabilities and descriptions models need for effective action.

Agents increasingly do more than generate text.

They can:

Search.

Retrieve files.

Run code.

Call functions.

Use APIs.

Interact with systems.

Take actions.

For the model to use tools effectively, information about those tools must become part of its working context.

Tool descriptions therefore consume context too.

MODEL + TOOL CONTEXT → ACTION

04 — RETRIEVAL

Retrieval supplies relevant external information when models actually need it.

Imagine an organization has one million documents.

Should all one million documents be placed into the model's context?

No.

Instead, the system can retrieve information relevant to the current task.

This is just-in-time context.

The model receives information when it becomes useful rather than carrying everything continuously.

This connects several ideas in the Minimalist Series:

EMBEDDINGS → VECTOR DATABASE → RAG → CONTEXT ENGINEERING

Retrieval answers:

What information does the model need now?


05 — MEMORY

Memory preserves useful information across interactions, tasks, and longer workflows.

Some information remains useful beyond the current turn.

That is where memory enters.

Memory might preserve:

Preferences.

Decisions.

Task progress.

Important facts.

Previous outcomes.

Workflow state.

Long-running agents especially need ways to preserve useful information without continually carrying every previous interaction.

The challenge is not simply remembering.

It is remembering what remains useful.

EXPERIENCE → MEMORY → FUTURE CONTEXT

06 — HISTORY

History carries prior messages, actions, and results into subsequent reasoning.

Conversation creates information.

Every turn can add:

Questions.

Answers.

Corrections.

Tool calls.

Tool results.

Decisions.

Intermediate work.

Some of this history may matter for the next step.

Some may not.

If everything is continually preserved, the context can become crowded.

If too much is removed, the model may lose continuity.

So context engineering asks:

What history still matters?

PAST → SELECT → PRESENT CONTEXT

07 — COMPACTION

Compaction compresses accumulated context while preserving information needed for continuation.

Long-running agents create a problem.

Their context keeps growing.

Messages accumulate.

Tool results accumulate.

Intermediate work accumulates.

Eventually, keeping everything becomes inefficient or impossible.

Compaction addresses this by reducing accumulated information while preserving what the agent needs to continue.

Think of compaction as:

LOTS OF HISTORY → ESSENTIAL STATE

The objective is not merely fewer tokens.

It is preserving useful continuity with fewer tokens.


08 — SELECTION

Selection prioritizes useful information while excluding distracting or redundant context.

More context is not automatically better context.

Imagine giving an AI:

Twenty irrelevant documents.

Old instructions.

Repeated tool outputs.

Unnecessary conversation history.

Outdated information.

And one relevant document.

The useful information is present.

But it is surrounded by noise.

Context engineering therefore involves subtraction as well as addition.

Ask:

Does the model need this information now?

If not, perhaps it should not occupy the context.

INFORMATION → SELECT → RELEVANT CONTEXT

09 — BUDGET

Budget allocates limited context capacity across competing sources of information.

Context is not unlimited.

Even models with very large context windows operate within finite capacity.

And different information competes for that capacity:

Instructions.

Conversation.

Retrieved documents.

Tool definitions.

Tool results.

Memory.

Examples.

Intermediate work.

So context becomes a resource.

The engineering question becomes:

What deserves space?

This creates a useful principle:

Every token occupying context should earn its place.

LIMITED CONTEXT → ALLOCATE → MAXIMUM UTILITY

10 — JUDGMENT

Judgment determines what context models receive, retain, retrieve, or discard.

Context engineering ultimately involves choices.

Should this information enter the context?

Should this conversation history remain?

Should this document be retrieved?

Should this memory persist?

Should this tool result be retained?

Should old information be compressed?

Should something be removed?

The system can automate many of these decisions.

But designers still determine the architecture, boundaries, retrieval strategy, memory policy, and evaluation criteria.

Context engineering therefore brings us back to human judgment.

The goal is not:

Give AI everything.

The goal is:

Give AI what helps it accomplish the task.

INFORMATION → JUDGMENT → CONTEXT → PERFORMANCE

The Entire Book in 100 Words

CONTEXT ENGINEERING
Context engineering curates information models receive to improve their performance.

INSTRUCTIONS
Instructions define goals, behavior, constraints, and priorities for model execution.

TOOLS
Tools provide capabilities and descriptions models need for effective action.

RETRIEVAL
Retrieval supplies relevant external information when models actually need it.

MEMORY
Memory preserves useful information across interactions, tasks, and longer workflows.

HISTORY
History carries prior messages, actions, and results into subsequent reasoning.

COMPACTION
Compaction compresses accumulated context while preserving information needed for continuation.

SELECTION
Selection prioritizes useful information while excluding distracting or redundant context.

BUDGET
Budget allocates limited context capacity across competing sources of information.

JUDGMENT
Judgment determines what context models receive, retain, retrieve, or discard.


The Minimalist Context Engineering

You do not need to understand everything about context engineering before you begin.

Remember ten things:

Context Engineering.

Instructions.

Tools.

Retrieval.

Memory.

History.

Compaction.

Selection.

Budget.

Judgment.

Everything else can come later.

Define the goal.

Provide useful instructions.

Expose appropriate tools.

Retrieve information when needed.

Preserve useful memory.

Manage history.

Compact accumulated context.

Remove noise.

Protect the context budget.

Apply human judgment.

Then accomplish something.


One Final Question

The next time you work with AI, don't begin with:

“What is the perfect prompt?”

Begin with:

“What does the AI need to know right now?”

Then engineer the context.


← Previous Book The Minimalist Claude Mythos The Minimalist Series Series Home Next Book → Coming Next

Accomplish with AI

Powered by Blogger.

Featured post

AI Engineering Hands-On Lab #001 — Build an AI Answer Reliability Test Bench Without Code

AIYING | Daily 24 — Post 009 AI Engineering Hands-On Lab #001 Build an AI Answer Reliability Test Bench — Without Writing Code Lea...

Search This Blog

List of blogs

Search This Blog

About

Translate

Instant Stories

Read in Your Language

Test

share this

ShareThis

Popular Posts