Skip to content

Commit

Permalink
Merge pull request #60 from Snowflake-Labs/release-11-19-2024
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
sfc-gh-bklein authored Nov 19, 2024
2 parents 1a409b3 + bc5396b commit e232017
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
18 changes: 12 additions & 6 deletions framework-evalanche/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
render_sidebar,
set_session_var_to_none,
MENU_ITEMS,
ABOUT,
)
from src.snowflake_utils import (
AUTO_EVAL_TABLE,
Expand All @@ -33,11 +34,9 @@
Welcome to the Evalanche dashboard!
Here you can create, run, and view GenAI evaluations.
**Select About in the top right corner for full instructions.**
To get started, select a metric in New Evaluations and follow the prompts to evaluate existing GenAI outputs.
If you already have saved evaluations, you can run them from Saved Evaluations.
Lastly, Automated Evaluations shows evaluations that are currently running.
If you already have saved or auomated evaluations, you can run or view them from below.
Select **Help** to learn more.
"""

st.set_page_config(
Expand All @@ -48,6 +47,9 @@
menu_items=MENU_ITEMS,
)

@st.experimental_dialog("About", width="large")
def show_about():
st.write(ABOUT)

if "session" not in st.session_state:
st.session_state["session"] = get_connection()
Expand Down Expand Up @@ -422,8 +424,10 @@ def new_eval_section() -> None:
)

button_container = row(6, vertical_align="center")
for _ in range(1,4):
button_container.empty()
help_button = button_container.button(
"ℹ️ Help",
use_container_width=True,
)
new_metric_button = button_container.button(
"➕ Add Metrics",
use_container_width=True,
Expand All @@ -445,6 +449,8 @@ def new_eval_section() -> None:
add_new_metric()
if del_metric_button:
manage_metric_dialog()
if help_button:
show_about()


def saved_eval_section() -> None:
Expand Down
2 changes: 0 additions & 2 deletions framework-evalanche/src/app_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
)

ABOUT = """
### Overview
Evalanche is a Streamlit in Snowflake (SiS) app that provides a single location to evaluate and compare LLM use case outputs in a streamlined, on demand, and automated fashion.
Evalanche's primary structure is based on 2 components: 1) Metrics and 2) Data Sources.
Expand Down

0 comments on commit e232017

Please sign in to comment.