online-evaluations

Configure LangWatch online evaluations and guardrails for production LLM traffic.

3.5k|362|Updated Sep 9, 2023
One-click install
npx skills add https://github.com/langwatch/langwatch --skill online-evaluations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: online-evaluations
Source: https://github.com/langwatch/langwatch/tree/main/skills/_compiled/native/online-evaluations
Command: npx skills add https://github.com/langwatch/langwatch --skill online-evaluations

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Teams running LLM agents in production need continuous quality scoring and synchronous safety enforcement on live traffic, but setting up monitors, evaluators, and guardrails correctly requires knowing evaluator types, sampling rates, and execution modes.

Core Features & Use Cases

  • Online Evaluation Setup: Create monitors that asynchronously score live traces or threads using evaluators from the LangWatch catalog, with configurable levels and sample rates.
  • Guardrail Configuration: Add synchronous guardrails (platform-managed or in-code) that block unsafe requests such as jailbreak attempts or PII leaks before they reach protected operations.
  • Verification Workflow: Inspect existing monitors and evaluators via the langwatch CLI, then verify real evaluation results appear in analytics before declaring success.
  • Use Case: A team wants to monitor production chatbot quality and block jailbreak attempts. The skill guides creating a trace-level monitor with a conservative sample rate plus a jailbreak guardrail, then verifies both with real traffic.

Quick Start

Ask the assistant to set up online evaluations for your agent's production traffic using the langwatch CLI.

Frequently Asked Questions about online-evaluations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up online evaluations for production LLM traffic?

Use the langwatch CLI to create a monitor with a valid evaluator type, the correct level (trace or thread), and ON_MESSAGE execution mode. First inspect existing monitors with langwatch monitor list, then verify the created monitor appears with the intended configuration.

What is the difference between an online evaluation and a guardrail?

An online evaluation scores live traces or threads asynchronously for quality monitoring. A guardrail runs synchronously and can block or replace unsafe requests and responses, such as jailbreak detection or PII filtering.

When should I use trace level versus thread level evaluation?

Use trace level for per-interaction quality scoring of individual requests. Use thread level for multi-message conversation outcomes, and configure an appropriate idle timeout in the platform when needed.

Can I use this skill for batch experiments or dataset testing?

No. Batch experiments, prompt comparisons, benchmarks, and CI quality gates belong to the separate experiments skill. This skill only handles production traffic monitoring and synchronous guardrails.

Why does monitor creation fail with a validation_error?

A validation_error names the incorrect field and an expected list of valid values. Correct that exact field using a value from the list and retry once; take evaluator types from langwatch evaluator types rather than guessing.

How do I handle LangWatch free plan limits on evaluators?

Work within the stated limits by creating only the allowed number of meaningful resources. If a limit is hit, summarize what was accomplished and point to subscription settings for upgrading, without deleting existing resources.