LangChain

Score Every Production Trace with an LLM Judge, from Your Terminal (LangSmith CLI)

Published 2026-09-10 · Duration 5:08

Summary

This walkthrough demonstrates how to implement automated, large-scale evaluation of AI agents using an LLM-as-a-judge within LangSmith. By setting up an online evaluation, developers can programmatically score incoming chat traces (e.g., checking for user frustration) without manually reviewing thousands of interactions. The process involves using a coding agent to install LangSmith skills and configure the evaluation, followed by managing the sampling rate to control costs.

Download summary

Key takeaways

  1. Online LLM-as-a-Judge Setup

    Online evaluations allow an LLM to automatically score incoming agent traces based on a defined prompt and rubric (e.g., detecting user frustration). The output is a score and reasoning attached directly to the trace.

  2. Using LangSmith CLI for Automation 0:01

    A coding agent can be instructed to use the LangSmith CLI to create and manage the LLM judge evaluator, automating the setup process.

  3. Cost Management via Sampling Rate 0:04

    The sampling rate can be updated (e.g., from 100% to 50%) to reduce evaluation costs while maintaining continuous monitoring.

Technical details

  • LLM-as-a-Judge Structure 0s

    The evaluation uses an LLM judge, which requires a prompt and a rubric to determine the metric (e.g., user frustration). The result is a score (binary: 1 for frustrated, 0 for not frustrated) and detailed reasoning.

  • LangSmith Skills Integration 1s

    The coding agent must first be equipped with the latest LangSmith skills by running the `latest skills` command to ensure up-to-date interaction knowledge.

  • Evaluation Configuration 2s

    The evaluation is configured to run on all incoming traces, checking for negative user experience and assigning a binary score.

Mentioned resources

Channel & topics

Watch on YouTube · Back to latest

This independent, AI-assisted summary is provided for commentary and informational purposes. It may contain errors or omit important context. Please watch the original video for the creator's complete presentation. Video, thumbnail, and related copyrights belong to their respective owners.