Comments (3)
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.
But it seems like when my pipeline is finished, the terminal is still not close
from trulens.
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)
- trulens doesn't work with llama 0.7.5 HOT 2
- Can it work with a Local LLM?
- Testing Local LLMs? HOT 2
- Support for Langchain's acall method HOT 7
- Support for Llama_Index's query_engine aquery method and chat_engine chat/achat methods HOT 2
- Installation fails due to fastavro HOT 2
- [Bug] Selector `GetItems` crashes with `AttributeError` HOT 3
- AzureOpenAI fails: missing deployment_id HOT 1
- [FR] Allow passing `dict` as input to feedback function
- Feedback function on Groundedness did not work with AzureOpenAI HOT 1
- Add multiple tags using a list or multiple columns called tag1, tag2 to TruChain HOT 1
- Changing the input of `agreement_measure` returns nan HOT 3
- [Bug] TruChain with AgentExecutor breaks LangChain HOT 6
- [Bug] Dashboard breaks with `llama-index>0.7.23` HOT 2
- [Bug] Missing Package and Unicode Encode Error HOT 4
- OpenAI Chat LLM with ChatPromptTemplate raises error with TrueChain HOT 5
- "Display full app json" always shows data for first row on the Dashboard HOT 1
- Multiple tags for a record? HOT 1
- Allow get query parameters? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trulens.