Skip to content
All topics

Domain

Context engineering

Deciding what goes into a model's context window, in what order, and how to stay within limits.

0 of 9 articles published. Topics are listed in reading order: each comes after the topics it builds on.

Context budgeting

Spending a limited context window on what matters most.

  1. Budgeting the context windowComing soon

    Splitting the window between instructions, history, retrieved content and the answer, and enforcing the split in code.

    Fundamentals · Intermediate

  2. Ordering content within the contextComing soon

    Where to place instructions, documents and questions, and how to test whether placement matters for your model.

    Fundamentals · Advanced

  3. Long-context recall and position effectsComing soon

    What published long-context evaluations measure, why recall can depend on position, and how to check your own workload.

    Advanced engineering · Advanced

Conversation state

Carrying a conversation forward without overflowing the window.

  1. Managing conversation historyComing soon

    Storing turns server-side, rebuilding the message list per request, and keeping it within budget.

    Implementation · Intermediate

  2. Truncation strategies for chat historyComing soon

    Dropping, windowing or pinning turns, and what each strategy forgets.

    Configuration · Advanced

  3. Summarizing long conversationsComing soon

    Rolling summaries that keep important facts, and how summary errors compound over time.

    Implementation · Advanced

Context assembly

The code that decides, per request, exactly what the model sees.

  1. Building a context assembly pipelineComing soon

    A testable pipeline that gathers, ranks, trims and renders context, with each step observable.

    Architecture · Advanced

  2. Tracking where each context item came fromComing soon

    Recording the source and trust level of everything in the context, so answers can be audited and untrusted text contained.

    Security · Production

  3. Isolating context between users and tenantsComing soon

    Making it structurally impossible for one user's data to enter another user's context.

    Security · Production