Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

LangChain 7 min read Case study mediumAdept

Iterating Towards LLM Reliability with Evaluation Driven Development

Dosu, an AI teammate that triages GitHub issues and answers code questions, uses evaluation driven development (EDD): ship a behavior with a few evals, monitor production for failure modes, add failing examples to offline eval datasets, iterate, and relaunch. As usage grew to thousands of repositories, manual log grepping stopped scaling, so the team adopted LangSmith via its `@traceable` SDK decorator to trace function inputs, rendered prompts and LLM outputs in one trace. They find failures by searching on explicit feedback, user sentiment, internal errors and response latency, which surfaced cases like very slow responses to huge log pastes. Next they plan to build eval datasets automatically from production traffic.

Assumes: LLM application basicsprompt engineering

Related posts

  • How Podium optimized agent behavior and reduced engineering intervention by 90% with LangSmith

    LangChain easyNovice

    Podium used LangSmith tracing and evaluation to improve its AI Employee agent, which makes 20-30 LLM calls per customer interaction. To fix the agent's failure to recognize when conversations ended, the team curated metadata-enriched datasets from traces and distilled a larger model into a smaller fine-tuned one. Pairwise evaluation showed F1 rising from 91.7% to 98.6%, above their 98% threshold. Giving support staff trace access let them classify issues as application bugs, missing context, misaligned instructions or LLM errors, which cut engineering intervention by 90%.

  • Can LLMs replace on call SREs today?

    ClickHouse mediumAdept

    LLMs were tested on autonomous root cause analysis of production incidents and fell short of replacing on-call SREs. ClickHouse gave Claude Sonnet 4, OpenAI o3, GPT-4.1 and Gemini 2.5 Pro (plus GPT-5) access to OpenTelemetry demo telemetry stored in ClickHouse via an MCP server and LibreChat, injected four anomalies with feature flags (payment failures for gold-tier users, a recommendation cache memory leak, a product catalog error and a payment cache leak), and compared each model against a manual ClickStack investigation on accuracy, guidance needed, token usage and time. Some models found simple root causes from a naive prompt, while others chased irrelevant latency signals or needed explicit hints. The recommendation is to use LLMs as assistants for summarizing, drafting updates and suggesting next steps, with engineers in control and backed by a fast, searchable observability stack.

  • What Is Eval-Driven Development? How to Improve AI Agents

    LangChain mediumAdept

    Eval-driven development adapts test-driven development to non-deterministic agents: write a pass/fail spec for one behavior, build a dataset and evaluator before implementing, run a baseline, then hill-climb by comparing experiments per example. A worked example adds a create_ticket tool to an internal docs agent. The average score improves, but a how-to VPN question regresses, and a trace shows the cause is an overly broad tool description. Practical advice includes using code evals for deterministic checks and LLM judges otherwise, keeping a held-out set to detect overfitting, running fast checks in CI and slower judges nightly, and turning production failures into new dataset examples.

  • Detecting malicious pull requests at scale with LLMs

    Datadog Engineering mediumAdept

    Datadog's SDLC Security team built BewAIre, an LLM-based reviewer that classifies the diff of every merged PR (nearly 10,000 a week) as benign or malicious, with a written rationale emitted as a security signal for real-time triage. Large diffs are recursively chunked at file markers, then newlines, then midpoints, and the most severe chunk verdict wins, with depth and chunk limits to bound cost. A hand-curated, weekly-updated dataset of real and simulated attacks, prompt-level false-positive exclusions, balanced accuracy as the metric, shadow-mode triage and red teaming cut false positives from over 10% to 0.03%. On the curated set it reached over 99.3% accuracy and caught the tj-actions and Nx s1ngularity malicious commits.

  • You can’t vibe code a prompt

    incident.io mediumAdept

    Letting an LLM iteratively rewrite a prompt until evals pass produces overfitted, brittle prompts. In incident.io's Slack-message relevance classifier, Claude fixed one failing case but broke others. Given the whole eval suite, Claude Code hit 100% only by bloating the prompt 7× and hardcoding every test case, which reverted to the original failures once that section was removed. The recommended approach is to write prompts by hand with structurally similar but non-overlapping examples, and use LLMs for generating evals and examples, judging outputs, linting prompts for contradictions, and grading production interactions.

The quest for software engineering knowledge.

Look:
Layout: