AI Labs

Reference patterns

Examples

Worked patterns that back advisory engagements: business case, implementation, architecture, and demos when you have API keys. Not a product you buy off this site.

Patterns, metrics, and runnable demos for architecture reviews and pilots, from The Ops Toolbox.

25

Patterns

Across 4 stacks

Live

Demos

When keys configured

Pattern picker

Pick a profile close to your initiative. See representative examples and guides.

Browse by pattern(Agents, RAG, governance, platform, discovery)

Agents & copilots

Streaming tools, escalation, and human oversight.

Grounded Q&A

Retrieval, citations, and knowledge-bound answers.

Governance & safety

Safety scoring, orchestration, and policy gates.

Platform & routing

Gateways, evals, workflows, and intent routing.

Discovery & structure

Workshop extraction and initiative shaping.

Batch & routing

Classify and route many items without a chat UI.

25 examples

Streaming agent on Vercel AI SDK with tool calling for CRM lookup and ticket creation.

Browser streams UI messages with sessionId to the route handler

AgentsStreamingHuman escalation
View case study & demo →

Compare latency and responses across models through a single gateway endpoint.

Same prompt POSTed once to the compare route

Model routingStreaming
View case study & demo →

Knowledge Q&A using Azure OpenAI and Azure AI Search over seeded policy documents.

Question sent to searchKnowledge (AI Search or local seed fallback)

RAGEnterprise
View case study & demo →

Generate responses with Azure OpenAI while scoring prompts and outputs for harmful content categories.

Prompt analysed by Content Safety API (or heuristic fallback)

GovernanceEnterprise
View case study & demo →

Conversational demo using Bedrock Converse API with optional Knowledge Base retrieval.

Question enriched with seed context snippets

RAGEnterprise
View case study & demo →

Extract initiative risks, stakeholders, and systems from unstructured text using schema-constrained generation.

Discovery notes POSTed as plain text

Structured extractionEnterprise
View case study & demo →

A pay-per-invocation durable workflow that orchestrates a multi-step transformation intake pipeline.

POST starts a workflow run with start()

OrchestrationEnterprise
View case study & demo →

A governed orchestration pipeline: retrieve context, generate a grounded answer, then safety-score the output.

Retrieve top-k policy chunks (Search or seed fallback)

OrchestrationGovernanceEnterprise
View case study & demo →

Uses Bedrock Agent Runtime when configured, otherwise runs a multi-step orchestration (context → intent → answer) via Converse.

If agent env is set: invoke Agent Runtime and stream completion

OrchestrationEnterprise
View case study & demo →

Keyword retrieval over in-app policy seeds, then grounded answers via the Vercel AI SDK.

Question triggers keyword search over SEED_DOCUMENTS

RAGGovernance
View case study & demo →

Compare two system prompts on the same user message, then score with a schema-constrained evaluator.

Same user message run against prompt A and prompt B in parallel

Prompt evaluationGovernance
View case study & demo →

Classify user messages, then answer with intent-specific system prompts on Bedrock Converse.

Converse classifies message into policy | technical | escalation | general

Intent routingAgentsGovernance
View case study & demo →

Direct Azure OpenAI chat completion without retrieval, a control arm before RAG or orchestration.

User message sent to chat.completions with baseline system prompt

Governance
View case study & demo →

Classify multiple support snippets into category and priority with one structured model call.

Client sends array of ticket or comment strings

Intent routingGovernanceEnterprise
View case study & demo →

Extract summaries, owners, and follow-ups from meeting notes using schema-constrained generation.

Raw meeting notes POSTed as text

Structured extractionEnterprise
View case study & demo →

Agent proposes CRM writes and refunds; supervisors approve or reject before anything executes.

Scenario analysed with generateObject for action proposal

AgentsGovernanceHuman escalation
View case study & demo →

Structured telemetry on every request: trace id, latency breakdown, tokens, retrieval hits, and cost estimate.

Optional seed retrieval timed separately from model call

GovernancePrompt evaluationRAG
View case study & demo →

Turn messy source text into stable chunks and citation ids you can carry into RAG prompts and audits.

Client posts raw text

RAGGovernanceEnterprise
View case study & demo →

Deterministic rules block or route risky actions before an agent can write to systems of record.

User proposes an action type and context (tier, amount)

GovernanceAgentsEnterprise
View case study & demo →

Redact obvious PII locally before prompts hit external model APIs.

Client posts text

GovernanceEnterprise
View case study & demo →

Store golden conversations and score prompt changes before they ship.

User supplies a system prompt

Prompt evaluationGovernanceEnterprise
View case study & demo →

A multi-step incident helper using seed runbooks: classify severity, pick runbook, draft first comms.

Incident text posted to server

OrchestrationGovernanceEnterprise
View case study & demo →

Extract what risk teams actually need from vendor docs: retention, regions, subprocessors, red flags, and follow-ups.

Vendor pack excerpt posted as text

Structured extractionGovernanceEnterprise
View case study & demo →

Group dozens of feedback lines into themes you can route to teams, without building a data platform.

Lines submitted as batch items

Batch processingIntent routingEnterprise
View case study & demo →

Hard caps per session to prevent pilot spend surprises, block after budget is exhausted.

Request includes sessionId and prompt

GovernanceEnterprise
View case study & demo →