All techniques

Every technique, by level

A broad selection of practical language-model techniques, grouped by autonomy level. These pages are sourced explanations with illustrative runs, not measured performance reports. The selection is maintained as the field changes; it is not an exhaustive list of AI methods.

Explore concepts through worked examples →

See the same pages as a graph →

Level 00

Conventional software

Use ordinary code, search, forms, or a task-specific statistical model when they solve the problem. No generative model is required; classical machine learning can belong here too.

When not to use a model

Sourced

How to tell when ordinary code, search or a form is enough.

Level 01

Direct prompting

Give the model instructions and receive a response. A conversation repeats this interaction, with a person directing each turn. Prompting, structured output, reasoning, and multimodal inputs can all fit this pattern.

Chat

Sourced

Asking a model a question in a chat app.

Prompt engineering

Sourced

Writing instructions that get consistent results.

Structured output

Sourced

Getting answers in a fixed format such as JSON.

Reasoning at answer time

Sourced

Letting the model think for longer before it answers.

Images, audio and video

Sourced

Giving the model images, audio, video and documents, and getting them back.

Level 02

Added context

Add relevant documents, retrieved passages, or stored information to the current request. This supplies context beyond the model’s training without retraining it. Missing, stale, or misleading material can still produce a poor answer.

Context engineering

Sourced

Deciding what goes into the request, and caching the parts that repeat.

Embeddings and search

Sourced

Finding text by meaning instead of by keyword.

Retrieval-augmented generation (RAG)

Measured

Searching your documents and giving the results to the model.

Knowledge graphs and GraphRAG

Sourced

Storing facts as entities and relations, for questions that span several documents.

Memory

Sourced

Keeping information from one conversation to the next.

Level 03

Workflows

Connect model calls through predefined steps, branches, checks, and retries. A model can classify an input or evaluate a result to route the workflow; software still defines the available paths.

Prompt chaining

Sourced

Splitting a task into steps, each with its own prompt.

Routing

Sourced

Sorting inputs and sending each one to the right prompt.

Parallel calls

Sourced

Running several prompts at once and combining the results.

Write and check

Sourced

One prompt writes, another checks, and the loop repeats until the check passes.

Workflow graphs

Sourced

Describing a workflow as steps and the connections between them.

Human approval

Sourced

Pausing for a person to approve or correct.

Level 04

Tool use

The model can request a search, calculation, code execution, or an action in another application. Software enforces permissions, performs the action, and returns the result. Tool use alone does not create an ongoing agent loop.

Function calling

Sourced

Letting the model call functions that you define.

Code execution

Sourced

Letting the model write code and run it in a sandbox.

Model Context Protocol

Sourced

A standard way to connect models to tools and data.

Computer and browser use

Sourced

Letting the model operate a screen, a mouse and a keyboard.

Level 05

Agent loops

The model uses the goal and observed results to choose an action, revise its approach, or finish. Software executes tools and enforces permissions, approvals, and stopping limits. A run can stop because it is complete, blocked, or out of budget.

Single agent

Sourced

A model that plans, acts and checks its own work in a loop.

The agent harness

Sourced

Everything around the model in an agent: the loop, tools, context handling, permissions, caps and sandbox.

Agentic RAG and deep research

Measured

An agent that runs its own searches until it has an answer.

Coding agents

Sourced

Agents that read, write, run and test code.

Skills

Sourced

Reusable instructions that an agent loads when it needs them.

Voice agents

Sourced

Agents you talk to in real time.

Level 06

Teams of Agents

Agents divide, coordinate, or review work across separate contexts. A coordinator can combine their findings, and the agents may use the same model or different models. Coordination adds overhead, and separate reviewers can still make correlated mistakes.

Lead agent and workers

Sourced

A lead agent splits the task and hands parts to other agents.

Agent graphs

Sourced

Describing a team of agents and how work passes between them.

Review and debate

Sourced

Agents that check, or argue with, each other's work.

Level 07

Always-on agents

Saved state, schedules, and events let an agent start or resume work without a fresh chat message each time. The model need not run continuously, and a dedicated computer or agent team is optional. Permissions, human approvals, monitoring, and stop controls still apply.

Long-running tasks

Sourced

Tasks that run for hours or days.

Always-on assistants

Sourced

Agents that resume work across sessions, schedules, and events.

Organizations of agents

Sourced

Large groups of agents with roles and shared goals.

Robots and machines

Sourced

Models that control robots and other machines.

Topics

Topics at every level

Five topics cut across all the levels. Each has its own set of pages.

Evals

Sourced

Measuring whether a change made the results better.

Evaluation frameworks

Sourced

The tools that run test sets and graders for you, and what to check before trusting their numbers.

Changing the model

Sourced

Fine-tuning, distillation, synthetic data and automated prompt tuning.

Fine-tuning and adapters

Sourced

Training a model further on your own examples, in full or with small adapters such as LoRA.

Distillation

Sourced

Training a smaller model to reproduce what a larger one does on your task.

Synthetic data

Sourced

Using a model to write training or test examples, and checking them before they are used.

Prompt optimization

Sourced

Letting a program search for better prompts against a test set.

Safety, privacy and governance

Sourced

Prompt injection, permissions, data handling and audit.

Guardrails

Sourced

Checks on what goes into a model and what comes out, and the limits of those checks.

Red teaming

Sourced

Attacking your own system on purpose, before someone else does, and turning what you find into tests.

Operations

Sourced

Cost, speed, monitoring and running models on your own hardware.

Observability

Sourced

Recording what each run did, so a bad result can be traced to the step that caused it.

AI gateways

Sourced

One entry point in front of several model providers, for keys, routing, limits, fallback and logs.

Cost optimization

Sourced

Spending fewer tokens and less time for the same result: caching, batching, smaller models, shorter context.

Running models locally

Sourced

Running open-weight models on your own hardware: what fits, quantization, and what you give up.

Working with a model

Sourced

How to brief a model, review its work and decide what to hand over.

Briefing: saying what you want

Sourced

Saying what you want clearly enough that the model does not have to guess.

Reviewing work you did not do

Sourced

Checking work you did not do yourself before it goes anywhere.

Deciding what to hand over

Sourced

Deciding which parts of a task to hand to a model and which to keep.

Calibrating trust

Sourced

Learning, from results over time, how much to rely on a model without checking.

Threads

One idea across several levels

A thread is a word people use for two different techniques. Its page says which is which and where each one lives.

Graph engineering

Sourced

Knowledge graphs connect information; agent graphs connect work.

Who approves what

Sourced

A person never leaves; what they hold changes from the answer, to the action, to the rules the actions run under.

Checking the work

Sourced

Every level has a way to be wrong that the level below could not be, and a check that costs less than the mistake.

What the model sees

Sourced

A model knows what it was trained on and what is in this request; everything else is a choice somebody made.