trulens.dashboard.streamlit¶
trulens.dashboard.streamlit
¶
Classes¶
Functions¶
trulens_leaderboard
¶
Render the leaderboard page.
Args:
app_ids List[str]: A list of application IDs (default is None)
Example:
```python
from trulens.core import streamlit as trulens_st
trulens_st.trulens_leaderboard()
```
trulens_feedback
¶
trulens_feedback(record: Record)
Render clickable feedback pills for a given record.
Args:
record (Record): A trulens record.
Example:
```python
from trulens.core import streamlit as trulens_st
with tru_llm as recording:
response = llm.invoke(input_text)
record, response = recording.get()
trulens_st.trulens_feedback(record=record)
```
trulens_trace
¶
trulens_trace(record: Record)
Display the trace view for a record.
Args:
record (Record): A trulens record.
Example:
```python
from trulens.core import streamlit as trulens_st
with tru_llm as recording:
response = llm.invoke(input_text)
record, response = recording.get()
trulens_st.trulens_trace(record=record)
```