GithubHelp home page GithubHelp logo

andrewisplinghoff / trulens Goto Github PK

View Code? Open in Web Editor NEW

This project forked from truera/trulens

0.0 0.0 0.0 129.26 MB

Evaluation and Tracking for LLM Experiments

Home Page: https://www.trulens.org/

License: MIT License

Shell 0.01% JavaScript 0.04% Python 39.78% TypeScript 0.86% CSS 0.01% Makefile 0.14% HTML 0.01% Mako 0.01% Jupyter Notebook 59.13%

trulens's Introduction

PyPI - Version Azure DevOps builds (job) GitHub PyPI - Downloads Slack Docs Open In Colab

๐Ÿฆ‘ Welcome to TruLens!

TruLens provides a set of tools for developing and monitoring neural nets, including large language models. This includes both tools for evaluation of LLMs and LLM-based applications with TruLens-Eval and deep learning explainability with TruLens-Explain. TruLens-Eval and TruLens-Explain are housed in separate packages and can be used independently.

The best way to support TruLens is to give us a โญ on GitHub and join our slack community!

TruLens

TruLens-Eval

Don't just vibe-check your llm app! Systematically evaluate and track your LLM experiments with TruLens. As you develop your app including prompts, models, retreivers, knowledge sources and more, TruLens-Eval is the tool you need to understand its performance.

Fine-grained, stack-agnostic instrumentation and comprehensive evaluations help you to identify failure modes & systematically iterate to improve your application.

Read more about the core concepts behind TruLens including Feedback Functions, The RAG Triad, and Honest, Harmless and Helpful Evals.

TruLens in the development workflow

Build your first prototype then connect instrumentation and logging with TruLens. Decide what feedbacks you need, and specify them with TruLens to run alongside your app. Then iterate and compare versions of your app in an easy-to-use user interface ๐Ÿ‘‡

Architecture Diagram

Installation and Setup

Install the trulens-eval pip package from PyPI.

pip install trulens-eval

Installing from Github

To install the latest version from this repository, you can use pip in the following manner:

pip uninstall trulens_eval -y # to remove existing PyPI version
pip install git+https://github.com/truera/trulens#subdirectory=trulens_eval

To install a version from a branch BRANCH, instead use this:

pip uninstall trulens_eval -y # to remove existing PyPI version
pip install git+https://github.com/truera/trulens@BRANCH#subdirectory=trulens_eval

Quick Usage

Walk through how to instrument and evaluate a RAG built from scratch with TruLens.

Open In Colab

๐Ÿ’ก Contributing

Interested in contributing? See our contribution guide for more details.

TruLens-Explain

TruLens-Explain is a cross-framework library for deep learning explainability. It provides a uniform abstraction over a number of different frameworks. It provides a uniform abstraction layer over TensorFlow, Pytorch, and Keras and allows input and internal explanations.

Installation and Setup

These installation instructions assume that you have conda installed and added to your path.

  1. Create a virtual environment (or modify an existing one).
conda create -n "<my_name>" python=3  # Skip if using existing environment.
conda activate <my_name>
  1. Install dependencies.
conda install tensorflow-gpu=1  # Or whatever backend you're using.
conda install keras             # Or whatever backend you're using.
conda install matplotlib        # For visualizations.
  1. [Pip installation] Install the trulens pip package from PyPI.
pip install trulens

Installing from Github

To install the latest version from this repository, you can use pip in the following manner:

pip uninstall trulens -y # to remove existing PyPI version
pip install git+https://github.com/truera/trulens#subdirectory=trulens_explain

To install a version from a branch BRANCH, instead use this:

pip uninstall trulens -y # to remove existing PyPI version
pip install git+https://github.com/truera/trulens@BRANCH#subdirectory=trulens_explain

Quick Usage

To quickly play around with the TruLens library, check out the following Colab notebooks:

  • PyTorch: Open In Colab
  • TensorFlow 2 / Keras: Open In Colab

For more information, see TruLens-Explain Documentation.

trulens's People

Contributors

anupam128 avatar caleblutru avatar coreyhu avatar daniel-huang-1230 avatar davidkurokawa avatar dependabot[bot] avatar divya-gopinath avatar ejisoo avatar epinzur avatar github-actions[bot] avatar ingridstevens avatar isayahc avatar joshreini1 avatar klasleino avatar lariel-fernandes avatar macklinkachorn avatar mikyw avatar mymoza avatar nikhil-vytla avatar noahvl avatar nvillaluenga avatar piotrm0 avatar rajib76 avatar rshih32 avatar schmidtseb avatar shayaks avatar walnutdust avatar yisding avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.