TruLens
Evaluates RAG responses and AI agent steps alongside execution traces.
Description
TruLens is an open-source toolkit for evaluating and tracing applications built with language models. It helps teams measure response quality across a full run and at individual steps of an agent workflow. Metrics cover whether an answer is grounded in its sources, the relevance of retrieved context, tool selection, and other properties. Evaluation results are linked to traces so teams can investigate where quality deteriorates. The Python toolkit supports OpenTelemetry and integrations with popular agent and RAG frameworks. Meaningful evaluation still requires appropriate test data and validation of the chosen judge models. TruLens is free, open-source software under the MIT license. Using third-party models for judging, storing traces, and operating the required infrastructure can incur separate costs.