The concepts behind the systems we build
Start with the problem in front of you — then get the concept, the scenario and the example that makes it real.
Short, spec-style notes on models, agents, retrieval, protocols, production and evaluation — the reference material our engineers use, written for readers who want the detail.
Spec-style reference notes grouped by topic — each page includes key concepts, flow, trade-offs, configuration, troubleshooting and copyable examples.
Models & foundations
Tokens, embeddings, model choice and the fundamental trade-offs behind every AI system.
Agents & agentic AI
Agent loops, reasoning patterns, frameworks, orchestration and the control layer around them.
RAG & knowledge
Retrieval pipelines, chunking, hybrid search, reranking and how to measure answer quality.
Context & protocols
MCP, tool contracts and context engineering — how models get the right information and actions.
Data streaming & event platforms
Event streaming, Apache Kafka, real-time pipelines and event-driven architectures.
Inference & production
Serving patterns, caching, cost and latency governance for real traffic.
Evaluation & safety
Golden sets, LLM-as-judge, tracing, replay and the gates that keep changes safe.
Every note follows the same path: concept → use case → scenario → example → checklist.
Key concepts
The vocabulary you need before a design conversation.
Use cases & scenarios
Where it fits, what breaks and what changes.
Copyable examples
Config and code shaped like real systems.
Checklist & config
The decisions to settle before go-live.
Tokens, embeddings, model choice and the fundamental trade-offs behind every AI system.
Original flow · 4 steps
Language models: tokens, context and inference
The mental model behind an LLM call: tokenisation, context windows, sampling controls and why outputs are probabilistic.
Original flow · 4 steps
Embeddings and vector search
How text becomes vectors, what similarity actually means, and when a vector index is the right tool.
Original flow · 4 steps
Prompting vs fine-tuning vs RAG
A decision guide: which lever changes behaviour, which one adds knowledge, and what each one costs.
Original flow · 4 steps
Model selection: capability, cost and latency
A practical framework for choosing a model per task instead of defaulting to the largest one.
Agent loops, reasoning patterns, frameworks, orchestration and the control layer around them.
Original agent diagram
Agent anatomy: loop, planner, tools and memory
The minimal system behind an AI agent: a goal, a reasoning loop, tool access, state and a stop condition.
Original agent diagram
Agentic patterns: ReAct, plan-and-execute, reflection
Three reusable reasoning patterns and how to choose between them for real workloads.
Original services diagram
Multi-agent orchestration patterns
When to split work across agents, how they hand off, and how to avoid coordination overhead.
Original stack diagram
Agent frameworks compared
LangGraph, CrewAI, AutoGen and MCP-based composition — what each optimises for and where it fits.
Original agent diagram
Agent guardrails and human-in-the-loop
Permissions, validation and approval gates that keep autonomous systems inside safe boundaries.
Original stack diagram
MCP: tools, resources and prompts
The Model Context Protocol in reference form: host, client, server, capabilities and trust boundaries.
Retrieval pipelines, chunking, hybrid search, reranking and how to measure answer quality.
Original rag diagram
RAG pipeline end to end
The six stages of retrieval-augmented generation and where each one most often fails.
Original flow · 4 steps
Chunking and metadata design
How to split documents so retrieved passages remain useful, and which metadata to keep.
Original rag diagram
Hybrid search and reranking
Combine lexical and semantic retrieval, then use a reranker to improve precision before generation.
Original rag diagram
RAG evaluation: retrieval and answer quality
Separate the two halves of RAG quality so you know whether to fix retrieval or generation.
MCP, tool contracts and context engineering — how models get the right information and actions.
Original flow · 4 steps
Context engineering and compression
Treat context as a scarce budget: pack the right instructions, evidence and history in the right order.
Original gateway diagram
Tool design for agents
How to write tool contracts an agent can use reliably: narrow schemas, clear errors and least privilege.
Event streaming, Apache Kafka, real-time pipelines and event-driven architectures.
Serving patterns, caching, cost and latency governance for real traffic.
Original flow · 4 steps
Serving patterns: streaming, batching and caching
The infrastructure levers that determine how fast and how cheaply inference feels to users.
Original flow · 4 steps
Cost and latency governance
Budgets, attribution and routing that keep AI spend predictable as usage grows.
Golden sets, LLM-as-judge, tracing, replay and the gates that keep changes safe.
Original flow · 4 steps
LLM evaluation: golden sets and LLM-as-judge
A repeatable way to detect regressions before they reach users.
Original flow · 4 steps
Agent observability: traces, replay and gates
What to record so agent behaviour can be explained, replayed and safely changed.
Diagrams, guides and notebooks
Browse our locally indexed shelf of AI, data and architecture resources — filterable by topic and format.