Skip to content

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

Instacart Tech 12 min read Case study mediumAdept

Turbocharging Customer Support Chatbot Development with LLM-Based Automated Evaluation

Instacart's LACE framework evaluates multi-turn support chatbot sessions with LLM judges, scoring binary True/False criteria across five dimensions: query understanding, answer correctness, chat efficiency, client satisfaction and compliance. Binary scoring proved more consistent and closer to human judgment than 1–10 scales. A debate setup, with parallel customer and support agents feeding a judge, reached near-perfect accuracy on simple criteria and over 90% on Instacart-specific contextual ones. Reasoning in free-form text (e.g. o1-preview) and converting to JSON in a separate step avoided quality loss from constrained decoding. Repeated human-vs-LACE alignment rounds refined the criteria, while subjective measures like conciseness are kept only as directional checks.

Related posts

  • Building production-ready agentic systems: Lessons from Shopify Sidekick

    Shopify Engineering mediumAdept

    Shopify's Sidekick merchant assistant outgrew a monolithic system prompt once its tool count passed ~50, so the team moved to just-in-time instructions returned alongside tool results, which kept prompt caches intact and improved maintainability and metrics. For evaluation they replaced curated golden datasets with ground truth sets sampled from real conversations, labeled by multiple experts and validated with Cohen's Kappa, Kendall Tau and Pearson correlation. LLM judges were calibrated from a Kappa of 0.02 to 0.61 against a human baseline of 0.69, and an LLM merchant simulator replays conversations against candidate systems before release. GRPO fine-tuning with gated procedural and semantic rewards exposed reward hacking such as opting out of tasks and misusing customer tags, and fixing the validators and judges raised syntax accuracy from ~93% to ~99%.

  • Teaching Sidekick to say no: automated data curation with LLM judge consensus

    Shopify Engineering mediumAdept

    Production training data for Shopify's Sidekick segmentation skill contained only successful queries, so the fine-tuned model never learned to refuse impossible requests and instead generated queries returning zero results. Naively merging a small human-annotated refusal dataset (~1,200 examples from Toloka) with the production corpus produced contradictory labels, so the team used that seed to calibrate four frontier LLM judges. Labels are accepted only on unanimous agreement on both verdict and reasoning, using a mutually exclusive taxonomy: solvable with more context, missing capability, wrong skill, or ambiguous. The curated data raised the segmentation pass rate from 0.762 (naive merge) to 0.798, with 86.3% refusal accuracy at a 4.6% false positive rate and judge kappa above 0.75. The pipeline now runs as a flywheel that feeds new production traffic back into training.

  • Automated merchant review summary system with integrated feedback

    Grab Engineering easyNovice

    Grab generates consumer-facing merchant review summaries with a pipeline that stratifies review samples by a sentiment-scored rating distribution, uses an LLM to produce overall and topic-based summaries (taste, packaging, portion size), and has a separate LLM check each claim against the sampled reviews before publication. Summaries are regenerated when new reviews or negative helpfulness feedback cross configured thresholds. Matching the rating distribution doesn't guarantee coverage of time periods, languages or segments, LLM validation reduces but doesn't eliminate unsupported claims, and feedback-driven regeneration needs anti-abuse controls.

  • The Agentic Analytics Benchmark: Measuring model accuracy and efficiency in analytical agents

    ClickHouse mediumAdept

    data-agent-mnist is an open harness for benchmarking agentic analytics, built from 201 real questions from ClickHouse's internal agent DWAINE and replayed against a deterministically seeded, anonymized synthetic reconstruction of their dbt warehouse (18 tables, 865 columns). Ground truth comes from a three-provider model committee with column-linked result matching, and answers are scored by a cross-provider LLM jury that was audited for self-bias. Contamination probes show no memorization, against Spider as a positive control. Across 29 models, Claude Fable 5.1 leads at 76.6% correctness, and open-weight models take 5 of the top 10 spots. DeepSeek v4 Flash runs the full suite for $1 versus $52 for Fable 5 while losing only 6.9 points.

  • Verifiable Social Reasoning for LLM Assistants

    Google Research mediumAdept

    A multi-agent simulation framework evaluates LLM assistants' social reasoning under 'user-mediated reality': a target agent with a hidden motive interacts with a simulated user, who then recounts events, possibly with bias, to the assistant, which must infer the motive. Because the motive is assigned by construction, it gives verifiable ground truth, scored by an LLM judge. Across 12 LLMs, models were markedly less accurate as assistants than as direct observers, often adopted the user's biased framing, needed more narrative detail than necessary, and anchored to earlier turns instead of using clarifying questions well. The framework, built on Google's Concordia library, and a dataset of over 20K examples are open-sourced, with simulations reusable across evaluated models.

The quest for software engineering knowledge.

Look:
Layout: