TR

trulens-evaluation-workflow

Systematic evaluation workflow for LLM applications using the TruLens framework.

Install

mkdir -p .claude/skills/trulens-evaluation-workflow && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/1124" && unzip -o skill.zip -d .claude/skills/trulens-evaluation-workflow && rm skill.zip

Installs to .claude/skills/trulens-evaluation-workflow

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Systematically evaluate your LLM application with TruLens
57 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Instrument LLM applications with framework-specific wrappers
  • Configure feedback functions for RAG and agent evaluation
  • Curate test datasets and ground truth logs
  • Execute evaluations and compare model versions
  • Monitor production traffic with custom metrics

How it works

The workflow captures application data through instrumentation, configures feedback functions based on app type, and executes evaluations to generate performance insights.

Inputs & outputs

You give it
LLM application code and evaluation metrics
You get back
Performance metrics, traces, and leaderboard results

When to use trulens-evaluation-workflow

  • Evaluate LLM response accuracy
  • Monitor RAG pipeline performance
  • Track quality metrics for AI agents

About this skill

TruLens Evaluation Workflow

A systematic approach to evaluating your LLM application.

When to Use This Skill

Use this skill when you want to:

  • Set up comprehensive evaluation for a new LLM app
  • Improve an existing app's evaluation coverage
  • Understand the full TruLens workflow
  • Know which sub-skill to use for your current task

Required Questions to Ask User

Before implementing, always ask the user these questions:

1. App Type (determines instrumentation wrapper)

  • What framework is your app built with? (LangChain, LangGraph/Deep Agents, LlamaIndex, Custom)

2. Evaluation Metrics (determines feedback functions)

Ask: "Which evaluation metrics would you like to use?"

App TypeRecommended MetricsDescription
RAGRAG TriadContext Relevance, Groundedness, Answer Relevance
AgentAgent GPATool Selection, Tool Calling, Execution Efficiency, etc.
SimpleAnswer RelevanceBasic input-to-output relevance check
CustomAsk userLet user describe what they want to evaluate

For Agents, also ask:

  • Does your agent do explicit planning? (determines if Plan Quality/Adherence metrics apply)

3. Additional Metrics (optional)

  • Do you want any additional evaluations? (Coherence, Conciseness, Harmlessness, custom metrics)

The Evaluation Workflow

┌─────────────────────────────────────────────────────────────────┐
│                    TruLens Evaluation Workflow                   │
├─────────────────────────────────────────────────────────────────┤
│                                                                  │
│   1. INSTRUMENT          2. CURATE            3. CONFIGURE       │
│   ┌──────────────┐      ┌──────────────┐     ┌──────────────┐   │
│   │ Capture data │  →   │ Build test   │  →  │ Choose       │   │
│   │ from your    │      │ datasets     │     │ metrics      │   │
│   │ app          │      │              │     │              │   │
│   └──────────────┘      └──────────────┘     └──────────────┘   │
│         ↓                                           ↓            │
│         └─────────────────────┬─────────────────────┘            │
│                               ↓                                  │
│                      4. RUN & ANALYZE                            │
│                      ┌──────────────┐                            │
│                      │ Execute evals│                            │
│                      │ & iterate    │                            │
│                      └──────────────┘                            │
│                                                                  │
└─────────────────────────────────────────────────────────────────┘

Sub-Skills Reference

StepSkillWhen to Use
1. Instrumentinstrumentation/Setting up a new app, adding custom spans, capturing specific data for evals
2. Curatedataset-curation/Creating test datasets, storing ground truth, ingesting external logs
3. Configureevaluation-setup/Choosing metrics (RAG triad vs Agent GPA), setting up feedback functions
4. Runrunning-evaluations/Executing evaluations, viewing results, comparing versions

Interactive Workflow Guide

Answer these questions to find where to start:

Where are you in the process?

"I have a new LLM app that isn't instrumented yet" → Start with instrumentation/ skill

"My app is instrumented but I don't have test data" → Go to dataset-curation/ skill

"I have data but haven't set up evaluations" → Go to evaluation-setup/ skill

"Everything is set up, I just need to run evals" → Go to running-evaluations/ skill


What's your immediate goal?

"I want to see traces of my app's execution" → Use instrumentation/ - capture spans and view in dashboard

"I want to evaluate my RAG's retrieval quality" → Use evaluation-setup/ - configure RAG Triad metrics

"I want to evaluate my agent's tool usage" → Use evaluation-setup/ - configure Agent GPA metrics

"I want to compare two versions of my app" → Use running-evaluations/ - version comparison pattern

"I want to evaluate against known correct answers" → Use dataset-curation/ - create ground truth dataset


Quick Start Paths

Path A: Evaluate a RAG App

  1. Instrument → Wrap with TruLlama or TruChain
  2. Configure → Set up RAG Triad (context relevance, groundedness, answer relevance)
  3. Run → Execute queries and view leaderboard

Path B: Evaluate an Agent

  1. Instrument → Wrap with TruGraph (for LangGraph/Deep Agents)
  2. Configure → Set up Agent GPA metrics (or Answer Relevance for simple evals)
  3. Run → Execute tasks and analyze traces

Note: For LangGraph-based frameworks like Deep Agents, always use TruGraph rather than manual @instrument() decorators. TruGraph automatically creates the correct span types and captures all graph transitions.

Path C: Regression Testing

  1. Curate → Create ground truth test dataset
  2. Configure → Add ground truth agreement metric
  3. Run → Compare versions against test set

Path D: Production Monitoring

  1. Instrument → Add custom attributes for key data
  2. Configure → Set up metrics for production concerns
  3. Run → Continuously evaluate production traffic

Common Questions

"Do I need to use all four skills?" No. Instrumentation and evaluation-setup are essential. Dataset-curation is optional (for ground truth comparisons). Running-evaluations is needed to execute and view results.

"What order should I use them?" Generally: Instrument → (optionally) Curate → Configure → Run. But you can revisit any step as needed.

"Can I add more evaluations later?" Yes. You can always add new feedback functions and re-run evaluations on existing traces.

"How do I know if my app is a RAG or Agent?"

  • RAG: Retrieves documents/context, generates grounded responses
  • Agent: Uses tools, makes decisions, may involve planning

If your app does both (e.g., agentic RAG), use metrics from both categories.


Getting Help

If you're unsure which skill to use, describe your goal and I'll guide you to the right one.

Known Compatibility Notes

Deep Agents / LangGraph

  • Always use TruGraph for LangGraph-based apps (including Deep Agents)
  • The .on_input() and .on_output() feedback shortcuts require RECORD_ROOT spans
  • Framework wrappers (TruGraph, TruChain) create these automatically
  • Manual @instrument(span_type=SpanType.AGENT) will NOT work with selector shortcuts

Pydantic Compatibility

Some LangGraph/Deep Agents versions use NotRequired type annotations that older Pydantic versions can't handle. If you see PydanticForbiddenQualifier errors, update to the latest TruLens version.

When not to use it

  • When the application is not instrumented
  • When evaluating non-LLM based systems

Prerequisites

Framework type (LangChain, LangGraph, LlamaIndex, or Custom)Defined evaluation metricsAccess to application traces

Limitations

  • Requires specific framework wrappers for accurate span capture
  • Manual instrumentation may not support all selector shortcuts

How it compares

Unlike manual testing, this provides a structured, automated pipeline for tracking quality, groundedness, and utility metrics across LLM versions.

Compared to similar skills

trulens-evaluation-workflow side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
trulens-evaluation-workflow (this skill)33moNo flagsIntermediate
qdrant-vector-search188moReviewAdvanced
langchain268moReviewIntermediate
cocoindex69moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

qdrant-vector-search

zechenzhangAGI

High-performance vector similarity search engine for RAG and semantic search. Use when building production RAG systems requiring fast nearest neighbor search, hybrid search with filtering, or scalable vector storage with Rust-powered performance.

18161

langchain

zechenzhangAGI

Framework for building LLM-powered applications with agents, chains, and RAG. Supports multiple providers (OpenAI, Anthropic, Google), 500+ integrations, ReAct agents, tool calling, memory management, and vector store retrieval. Use for building chatbots, question-answering systems, autonomous agents, or RAG applications. Best for rapid prototyping and production deployments.

26138

cocoindex

cocoindex-io

Comprehensive toolkit for developing with the CocoIndex library. Use when users need to create data transformation pipelines (flows), write custom functions, or operate flows via CLI or API. Covers building ETL workflows for AI data processing, including embedding documents into vector databases, building knowledge graphs, creating search indexes, or processing data streams with incremental updates.

6116

rag-implementation

wshobson

Build Retrieval-Augmented Generation (RAG) systems for LLM applications with vector databases and semantic search. Use when implementing knowledge-grounded AI, building document Q&A systems, or integrating LLMs with external knowledge bases.

10101

reasoningbank-with-agentdb

ruvnet

Implement ReasoningBank adaptive learning with AgentDB's 150x faster vector database. Includes trajectory tracking, verdict judgment, memory distillation, and pattern recognition. Use when building self-learning agents, optimizing decision-making, or implementing experience replay systems.

579

ai-sdk

vercel

Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: "AI SDK", "Vercel AI SDK", "generateText", "streamText", "add AI to my app", "build an agent", "tool calling", "structured output", "useChat".

1150

Search skills

Search the agent skills registry