Skip to content

Instantly share code, notes, and snippets.

View ankurmishraiaf-ui's full-sized avatar

ankurmishraiaf-ui

View GitHub Profile
@ankurmishraiaf-ui
ankurmishraiaf-ui / article-3-agent-workflows.md
Created July 19, 2026 01:54
ALEX article: article-3-agent-workflows

Building AI Agents That Don't Hallucinate: Structured Workflows, Guardrails, and Per-Step Evaluation

How we replaced fragile prompt chains with typed schemas, validation gates, and evaluation at every step — 94% task success vs 60% baseline


The Prompt Chain Trap

January 2024. We built a "research agent" — 12 prompts chained together:

  1. Decompose question → 2. Search planning → 3. Execute searches → 4. Extract facts → 5. Synthesize → 6. Fact-check → 7. Format → ...
@ankurmishraiaf-ui
ankurmishraiaf-ui / article-2-rag-optimization.md
Created July 19, 2026 01:54
ALEX article: article-2-rag-optimization

Optimizing RAG at Scale: Chunking, Retrieval, and the Bayesian Search That Cut Latency 40%

How we moved from "semantic search + hope" to a measured, tunable retrieval pipeline with 95% recall@10


The RAG Reality Check

Everyone ships RAG the same way: chunk by 512 tokens, embed with text-embedding-3-small, top-k=5, stuff into context. It works for demos.

@ankurmishraiaf-ui
ankurmishraiaf-ui / article-1-llm-evaluation-pipelines.md
Created July 19, 2026 01:54
ALEX article: article-1-llm-evaluation-pipelines

Building Production-Grade LLM Evaluation Pipelines: From Vibes to Metrics

How we replaced "looks good to me" with automated evaluation catching 92% of hallucinations before deployment


The Problem: Why "Vibe Checks" Fail in Production

Three months ago, our team shipped a RAG-based customer support assistant. It worked great in testing — we'd ask it questions, read the answers, and say "yeah, that looks right."

@ankurmishraiaf-ui
ankurmishraiaf-ui / article-3-agent-workflows.md
Created July 19, 2026 01:45
ALEX article: article-3-agent-workflows

Building AI Agents That Don't Hallucinate: Structured Workflows, Guardrails, and Per-Step Evaluation

How we replaced fragile prompt chains with typed schemas, validation gates, and evaluation at every step — 94% task success vs 60% baseline


The Prompt Chain Trap

January 2024. We built a "research agent" — 12 prompts chained together:

  1. Decompose question → 2. Search planning → 3. Execute searches → 4. Extract facts → 5. Synthesize → 6. Fact-check → 7. Format → ...
@ankurmishraiaf-ui
ankurmishraiaf-ui / article-2-rag-optimization.md
Created July 19, 2026 01:44
ALEX article: article-2-rag-optimization

Optimizing RAG at Scale: Chunking, Retrieval, and the Bayesian Search That Cut Latency 40%

How we moved from "semantic search + hope" to a measured, tunable retrieval pipeline with 95% recall@10


The RAG Reality Check

Everyone ships RAG the same way: chunk by 512 tokens, embed with text-embedding-3-small, top-k=5, stuff into context. It works for demos.

@ankurmishraiaf-ui
ankurmishraiaf-ui / article-1-llm-evaluation-pipelines.md
Created July 19, 2026 01:44
ALEX article: article-1-llm-evaluation-pipelines

Building Production-Grade LLM Evaluation Pipelines: From Vibes to Metrics

How we replaced "looks good to me" with automated evaluation catching 92% of hallucinations before deployment


The Problem: Why "Vibe Checks" Fail in Production

Three months ago, our team shipped a RAG-based customer support assistant. It worked great in testing — we'd ask it questions, read the answers, and say "yeah, that looks right."