TruLens
FreeEvaluation and Tracking for LLM Experiments and AI Agents
About TruLens
TruLens is an open-source tool for systematically evaluating and tracking LLM experiments and AI agents. It provides fine-grained, stack-agnostic instrumentation built on OpenTelemetry, enabling comprehensive tracing of every function call, LLM generation, retrieval, and tool invocation. TruLens includes a library of feedback functions (e.g., the RAG Triad and Honest, Harmless, Helpful evals) and supports multiple LLM providers (OpenAI, LiteLLM, Google Gemini, AWS Bedrock, Snowflake Cortex, HuggingFace, LangChain) as well as app framework integrations with LangChain/LangGraph and LlamaIndex. Users can instrument their applications, define feedbacks, and compare versions in an intuitive UI, making it easier to identify failure modes and iteratively improve performance.
Key Features
Pros & Cons
- Open source with a permissive license, free to use
- Deep, OpenTelemetry-based instrumentation provides granular tracing
- Comprehensive feedback function library covers common evaluation needs
- Works with a wide range of LLM providers and frameworks
- Integrates with existing observability infrastructure via OTLP export