Caching
Prompt and prefix caching, KV cache, semantic caching, tool-result and retrieval caching, and how to invalidate safely.
Practitioner deep dives on each building block of an enterprise agent, with downloadable guides and checklists. Each guide covers when to use what, decision criteria, reference patterns, recommended defaults, anti-patterns, sizing and cost, security and compliance hooks, and a test checklist.
These deepen sections 4, 4A, 4B and 7 to 16 of the plan. Products are named as examples only, across open source, free and paid options; see the solutions inventory for the full list.
Prompt and prefix caching, KV cache, semantic caching, tool-result and retrieval caching, and how to invalidate safely.
Token budgets, batching, streaming, parallel tool calls, effort controls and FinOps for agents.
Choosing models per task, routers and gateways, fallbacks, deprecation and residency pinning.
When to prompt, retrieve, fine-tune or distil, and how to prove the choice with evals.
Templates, system prompts, skills, context-window budgeting, compaction and prompt versioning.
Session, working, episodic and long-term memory; write policies, retention, poisoning defence.
Pre and post tool hooks, session hooks and where deterministic policy belongs in the agent loop.
Harnesses, checkpointing, long-running tasks, retries, idempotency and resumable human approvals.
Designing tools agents use well: naming, schemas, granularity, errors, risk tiers and MCP server practice.
Workflows vs agents, orchestrator-worker, handoffs, sub-agents, A2A and when multi-agent pays off.
Isolation levels for code and browser tools, egress control, filesystem scope and secrets handling.
Layered input, output and action guardrails, prompt-injection defence, PII and policy enforcement.
Offline, online and red-team evals for agents: datasets, graders, LLM judges, trajectories and release gates.
OpenTelemetry GenAI conventions, trace design, metrics, sampling, PII in traces and alerting.
Connectors, MCP, APIs, events and CDC, data contracts, freshness and lineage for agent data.
Parsing PDFs, scans, tables and slides; OCR and layout models; metadata and quality gates.
Fixed, recursive, structure-aware, semantic, late and contextual chunking, with sizes and overlap defaults.
Choosing embedding models, dimensions, quantisation, multilingual needs, and re-embedding and versioning.
Index types, filtering, hybrid BM25 plus vector search, fusion, query rewriting and agentic retrieval.
Cross-encoder and LLM rerankers, candidate depth, latency budgets and when reranking is worth it.
Metrics layers before text-to-SQL, GraphRAG, ontologies and when a graph earns its cost.
Document-level ACLs, on-behalf-of retrieval, tenancy, residency and right-to-erasure in indexes.
Synthetic golden tasks, canary checks, tool and connectivity probes, and kill-switch drills after every deploy.
SLA vs SLO vs SLI for agents, service tiers, credits, exclusions, dependencies on model providers and managed-service reporting.
For each value, quality, operational and cost KPI and SLI: the typical levers, their trade-offs and how to test a change.
A KRI register for agents: definitions, green, amber and red thresholds, owners, data sources and the actions each breach triggers.
RTO and RPO for agents and scenario playbooks: provider outage, model deprecation, data poisoning, runaway cost and regulator stop order.