truera/trulens

Evaluation and Tracking for LLM Experiments and AI Agents

What it solves

TruLens helps developers identify where AI agents fail and find opportunities to reduce costs without sacrificing quality. It moves evaluation from "vibes" to data by providing traceable causes for bad answers and visible tradeoffs between different app versions.

How it works

TruLens uses OpenTelemetry-native instrumentation to record every step of an application—including function calls, LLM generations, and tool invocations—as structured spans. It then applies "LLM judges" (feedback functions) to score these steps based on specific metrics. These evaluations can be run inline as the app operates or in batch mode over a pre-collected dataset.

Who it’s for

AI engineers and teams building RAG (Retrieval-Augmented Generation) systems and agentic applications who need to monitor performance, debug failures, and optimize costs.

Highlights

  • OpenTelemetry-native: Traces are portable to any OTLP backend like Jaeger, Grafana Tempo, or Datadog.
  • Agentic Evaluators: Seven specialized evaluators for measuring reasoning coherence, execution efficiency, plan adherence, and tool usage.
  • RAG Triad: Built-in support for core RAG metrics including groundedness and context relevance.
  • Flexible Evaluation: Supports both real-time inline scoring and offline batch evaluation via a Run API.
  • Broad Integration: Compatible with major LLM providers (OpenAI, Gemini, Bedrock, etc.) and frameworks like LangChain and LlamaIndex.

Related

  • Project
  • Project
  • Project
  • Project
  • Project