Open-source library from Snowflake for evaluating and tracing LLM and RAG applications. Emits OpenTelemetry traces and scores runs on groundedness, context relevance, answer relevance, and safety.
An open-source tool that scores your AI agent or RAG app on how grounded, relevant, and safe its answers are — then shows you where it went wrong.
TruLens is an open-source evaluation and tracing framework designed to help developers objectively measure the quality and effectiveness of AI agents and LLM-powered applications. Rather than relying on subjective "vibes-based" assessment, TruLens provides quantitative metrics for critical components of an app's execution flow—including retrieved context, tool calls, plans, and generated outputs—enabling teams to expedite experiment evaluation at scale across agents, RAG pipelines, summarization tasks, and more.
TruLens is built for AI engineers, ML practitioners, and product teams who need to systematically evaluate and iterate on their LLM applications before shipping to production. The platform offers an extensible library of built-in evaluation metrics such as groundedness, context relevance, and coherence, while also allowing users to define custom feedback functions tailored to their specific use cases. By surfacing where applications have weaknesses, TruLens informs iteration on prompts, hyperparameters, model selection, and retrieval strategies.
The framework now supports OpenTelemetry-compatible tracing, making it easy to integrate into existing observability stacks. Developers can instrument their LLM apps with minimal code changes, compare different application configurations on a metrics leaderboard, and select the best-performing variant. TruLens integrates with popular frameworks and LLM providers, and its open-source nature under the TruEra umbrella ensures transparency and community-driven development.
The most credible open-source eval library for LLM and RAG apps. Not the prettiest dashboard, but the metrics are benchmarked, the tracing is OpenTelemetry-native, and it costs nothing to run in your own infrastructure.
Ships with the RAG Triad (groundedness, context relevance, answer relevance) plus safety, sentiment, and comprehensiveness metrics. Each function is documented with its judge model, prompt, and benchmark performance so you know what you're measuring.
TruLens 2.x emits standard OTel traces, letting you pipe execution data into Arize Phoenix, Langfuse, Datadog, or any compatible backend. No proprietary trace format, no vendor lock-in.
Works with LangChain, LlamaIndex, direct OpenAI/Anthropic SDK calls, and custom orchestration via Python decorators. Wrap an app object with `TruChain`, `TruLlama`, or `TruCustomApp` and traces record automatically.
The local Streamlit dashboard shows a metrics leaderboard across experiments, so you can compare `gpt-4o vs claude-4.5`, or `top_k=3 vs top_k=5`, or two prompt variants on the same eval set and pick a winner objectively.
Beyond built-ins, you can write any feedback function using any LLM (OpenAI, Anthropic, local models via Ollama), classical NLP, or classifier. TruLens handles async scheduling, retries, and result storage.
After Snowflake's 2024 acquisition of TruEra, the project is maintained in open source with active development, benchmarks, and integration paths for Snowflake Cortex users who want managed deployment.
Free
Contact for pricing
Ready to get started with TruLens?
View Pricing Options →TruLens works with these platforms and services:
We believe in transparent reviews. Here's what TruLens doesn't handle well:
TruLens has added OpenTelemetry compatibility, enabling integration with standard observability backends and enhanced support for tracing AI agent workflows. The platform has expanded its focus from general LLM evaluation to specifically supporting agentic workflow evaluation and tracing.
LLM Observability
Open-source LLM engineering platform that captures traces, runs evaluations, and helps teams analyze cost, latency, and quality across production AI apps.
AI Observability
Arize Phoenix is an open-source AI observability and evaluation platform for tracing, testing, and improving LLM applications and agents.
AI Evaluation
Braintrust review 2026: unified evals, prompt workbench, observability, and AI proxy used by OpenAI, Stripe, Notion — features, pricing, pros, cons.
AI Monitoring
Open-source LLM observability and gateway platform offering one-line integration, request logging, prompt management, evals, and a multi-provider proxy.
AI Observability
AgentOps is a developer observability platform for AI agents — trace runs, replay them with time-travel debugging, track token spend across 400+ LLMs, and audit prompt injection attacks. Free tier includes 5,000 events/month.
Developer Tools
Humanloop is a Developer Tools tool for teams that need practical AI-assisted workflows, with pricing, governance, strengths, limitations, and best-fit use cases to verify before adoption.
Pricing and features change often. If anything on this TruLens page is wrong or missing, tell us and include a link to the source. We review every correction.