GenAI Consulting
Insights

Building with Generative AI

Practical guides, architecture notes, and lessons from shipping GenAI to production.

Designing Write-Ahead Approval Logs for High-Risk LLM Actions

Designing Write-Ahead Approval Logs for High-Risk LLM Actions

A production-focused guide to controlling high-risk agent actions with write-ahead approval logs for review, replay, cancellation, auditability, and rollback in side-effecting LLM workflows.

GenAI Consulting23 min read
Pre-Generation Retrieval Sufficiency Checks in RAG: Deciding When the Context Is Good Enough to Answer

Pre-Generation Retrieval Sufficiency Checks in RAG: Deciding When the Context Is Good Enough to Answer

A production guide to adding a retrieval sufficiency gate in RAG systems so teams can detect weak context, choose the right next action, and reduce hallucinations without excessive refusals or latency.

GenAI Consulting24 min read
Designing SLOs and Error Budgets for Production GenAI Systems

Designing SLOs and Error Budgets for Production GenAI Systems

A production guide to GenAI SLOs beyond uptime: quality, grounding, latency, abstention, tool success, cost, safety, and how to turn them into budgets, alerts, release gates, and runbooks.

GenAI Consulting27 min read
Speculative Retrieval for Production RAG: Hiding Search Latency Without Wasting Tokens or Fetching the Wrong Context

Speculative Retrieval for Production RAG: Hiding Search Latency Without Wasting Tokens or Fetching the Wrong Context

A production guide to speculative retrieval in RAG: intent prediction, partial-query prefetch, cancellation, ACL safety, observability, evals, and cost/latency tradeoffs.

GenAI Consulting23 min read
Failure-Tolerant JSON Streaming for LLM Applications: Designing Incremental Structured Output That Survives Interruptions

Failure-Tolerant JSON Streaming for LLM Applications: Designing Incremental Structured Output That Survives Interruptions

A production-focused guide to streaming structured JSON from LLMs safely despite truncation, retries, schema drift, and disconnects, with architecture, evals, and fallback patterns.

GenAI Consulting24 min read
Counterfactual Evaluation for LLM Systems: Measuring Whether Retrieval, Routing, or Prompt Changes Actually Caused the Outcome

Counterfactual Evaluation for LLM Systems: Measuring Whether Retrieval, Routing, or Prompt Changes Actually Caused the Outcome

A production-focused guide to counterfactual evaluation for GenAI systems: isolating the causal impact of retrieval, routing, prompts, tool policy, and guardrails with replay, interventions, and attribution.

GenAI Consulting26 min read
Choosing Between Long-Context Models and Retrieval Pipelines: A Production Decision Framework

Choosing Between Long-Context Models and Retrieval Pipelines: A Production Decision Framework

A production-focused framework for deciding when long-context models beat RAG, when retrieval wins, and how to evaluate hybrid architectures under real cost, latency, and recall constraints.

GenAI Consulting23 min read
Evaluating Retrieval Coverage Before RAG Launch: How to Find Corpus Gaps, Metadata Blind Spots, and Unanswerable Query Classes

Evaluating Retrieval Coverage Before RAG Launch: How to Find Corpus Gaps, Metadata Blind Spots, and Unanswerable Query Classes

A production-focused guide to testing whether your corpus can answer expected RAG queries, uncovering corpus gaps, metadata blind spots, and unanswerable classes before launch.

GenAI Consulting25 min read
Designing Async and Queue-Based Execution for Long-Running LLM Workflows

Designing Async and Queue-Based Execution for Long-Running LLM Workflows

A production-focused guide to moving long-running LAG and tool-using LLM tasks out of the request path with async APIs, queues, resumable workflows, retries, observability, and SLA-aware execution.

GenAI Consulting26 min read
Token Budgeting as a First-Class Design Constraint in Agentic and RAG Workflows

Token Budgeting as a First-Class Design Constraint in Agentic and RAG Workflows

A production guide to designing agentic and RAG systems around token limits, with budgeting, compression, adaptive context, routing, evals, and observability patterns.

GenAI Consulting24 min read
Circuit Breakers for LLM Agents: Stopping Runaway Tool Loops Before They Burn Budget or Cause Side Effects

Circuit Breakers for LLM Agents: Stopping Runaway Tool Loops Before They Burn Budget or Cause Side Effects

A production guide to circuit breakers for LLM agents: stop runaway tool loops with runtime trip conditions, budgets, side-effect containment, fallbacks, observability, and evals.

GenAI Consulting22 min read
Offline Replay Testing for Production GenAI: Using Real Traces to Validate Prompt, Retrieval, and Routing Changes Safely

Offline Replay Testing for Production GenAI: Using Real Traces to Validate Prompt, Retrieval, and Routing Changes Safely

A production-focused guide to building offline replay harnesses for GenAI systems with real traces to validate prompt, retrieval, routing, and tool changes before release.

GenAI Consulting25 min read
Showing 12 of 66 articles