Giter VIP home page Giter VIP logo

Comments (3)

rshih32 avatar rshih32 commented on June 3, 2024

Hi @ricoyudog ,
Yes you can!

Each tru wrapper has a *_with_record method that has this information populated.

for example: https://www.trulens.org/trulens_eval/api/truchain/

response = my_llm_app(query)

from trulens_eval import TruChain
truchain = TruChain(
    my_llm_app,
    app_id='Chain1_ChatApplication')

response, tru_record = truchain.call_with_record(query)

latency = tru_record.perf.end_time - tru_record.perf.start_time

from trulens.

ricoyudog avatar ricoyudog commented on June 3, 2024

But it seems like when my pipeline is finished, the terminal is still not close

from trulens.

rshih32 avatar rshih32 commented on June 3, 2024

Are you running the dashboard? That kicks off a long living thread that will prevent terminal closing. You can either stop the dashboard with tru.stop_dashboard() or not run the dashboard

Otherwise let me know if I'm not on the right path in understanding your question

from trulens.

Related Issues (20)

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.