TruLens is a library for systematically tracking and evaluating LLM-based applications. It provides instrumentation, feedback functions, and a dashboard for monitoring and improving LLM app performance. Current version: 2.8.0, with monthly releases.
pip install trulens-coreNo compatibility data collected yet for this library.
Initialize TruLens session and define a feedback function.
Migrate to `Metric` class with explicit selectors dictionary. See migration guide: https://www.trulens.org/trulens/api/metrics/
Use `TruSession().run_dashboard()` instead.
Always check that the provider is correctly instantiated with `api_key` or `base_url` and test with a known good key.
Use `from trulens.core import TruSession` instead of `from trulens import Tru`.
Use `from trulens.core import TruSession` and replace `Tru()` with `TruSession()`.
Check the correct method name in the provider's documentation. For OpenAI, use `provider.groundedness_measure_with_cot_reasons` (available in 2.x).
Install `trulens-core` and use `from trulens.core import ...` instead.
No dependency data recorded yet.