LLM Engineering8 min read
Retriever k-value tuning for RAG: the right top-k
How to pick the right k value for your RAG retriever. The 3-step tuning process, the failure modes of k=3 and k=20, and the sweet spot in between.
Loading...
Build Your First Software Factory Execution Harness live Thursday, Oct 1, 12:00 PM ET
Oct 1, Reserve a seatBite-sized insights for building production AI systems. Expert guides, real-world patterns, and practical engineering wisdom.
136 posts in total
LLM Engineering8 min read
How to pick the right k value for your RAG retriever. The 3-step tuning process, the failure modes of k=3 and k=20, and the sweet spot in between.
LLM Engineering8 min read
How to combine multiple vector stores in one RAG pipeline. The merge pattern, the deduplication rule, and when multi-source beats a single index.
LLM Engineering8 min read
How to use FAISS for production RAG. Index types, persistence, memory trade-offs, and the 4 settings that decide if FAISS beats a managed vector DB.
AI Engineering in Practice8 min read
How to debug a live agent incident using Langfuse traces. The search patterns, the 5-minute workflow, and the post-mortem that catches the root cause.
AI Engineering in Practice9 min read
How to use Langfuse trace data to find where your agent burns tokens. The 4 queries, the cost-per-user view, and the 50 percent savings patterns.
AI Engineering in Practice8 min read
How to combine Langfuse traces with Grafana dashboards for agent monitoring. The integration, the panels, and the alerting that catches real problems.
AI Engineering in Practice8 min read
How Prometheus metrics surface performance bottlenecks in agentic AI. The 3 queries, the alert rules, and the dashboard that finds hot loops fast.
AI Engineering in Practice8 min read
How to stress test an agentic AI service before it ships. Concurrency, tokens, latency budgets, and the load profile that simulates real traffic.
LLM Engineering8 min read
How to wire eval pipelines into CI so every agent change is scored automatically. The nightly job, the regression gate, and the dashboard that matters.
LLM Engineering8 min read
How to load evaluation metrics dynamically in a Python eval pipeline. The registry pattern, entry points, and the test override that makes CI fast.
LLM Engineering9 min read
Why LLM judges without explicit reasoning drift, and how chain-of-thought rationales make their scores defensible. The prompt, the parser, the trust.
LLM Engineering9 min read
How to build an LLM-as-a-judge evaluation framework for agentic AI. The prompt, the rubric, the bias controls, and the loop that catches regressions.

Cofounder of AEOsome.com and Chief Mentor at learnwithparam.com with 14+ years building production systems. I've trained 50+ engineers on AI engineering - these programs distill what actually works into structured paths you can follow at your own pace.
Go beyond articles. Build production AI systems with hands-on courses, or join a live cohort.