Setting Up Alerts
How to set up Alerts and automatically be alerted when things go wrong
Galileo enables you to get alerted whenever unexpected things happen (e.g. your cost is higher than expected, your model is hallucinating more than you want, users are entering foul language into your app).
Pre-requisites
Before setting up alerting, make sure you:
Set-Up
To set up your alerts, you need to define:
-
Who should be alerted and how
-
What they should be alerted on
Your Alerting Settings will be under your Project Settings page (i.e. the ⚙️ icon near the top-right of your Monitoring Dashboard).
Email Alerts
If you want Alerts to be sent via emails, add your recipients’ email addresses in the Alerts Recipients section:
Slack Alerts
To get Alerts via Slack, you’ll need to configure your workspace to receive slack messages via webhook URLs. You’ll first need to follow Slack’s instructions to generate a webhook URL:
-
Create a Slack app. This application will be used to send your notifications to your Slack workspace.
-
Pick a name like “Galileo Alerts” that will help identify where these messages are coming from.
-
Enable ‘incoming webhooks’.
-
Create an ‘incoming webhook’ and choose the Slack channel you’d like Galileo’s Alerts to go to.
Once you’ve followed the instructions above, grab the webhook URL from your Slack application and paste it into your Galileo Console. We recommend adding the name of the channel that’s getting notificed in the “Notes” section:
Configuring Alerts
Each alert is composed of a Metric (e.g. Correctness, Cost, Toxicity), an Aggregation Function (e.g. Min, Max, Average, Total), a threshold (e.g. greater than 0.5), and a time window (e.g. hourly).
Example Alerts:
-
Exceeding costs: If you want to get alerted with an uptick in cost (above $10/day, you select
Sum Value
ofCost
ismore than or equal to
your10
in thelast day
. -
Hallucinations: If you want to get alerted any time you have a hallucination, select
Min Value
ofCorrectness
orContext Adherence
isequal to
0
. -
Hallucination Rate: If you’re comfortable with a certain level of hallucinations (e.g. 5%), you can select
Average value
ofCorrectness
orContext Adherence
isless than or equal
to0.05
.
Triggering Alerts
Once your Alerts are configured, we periodically run jobs to check whether your Alerts have been triggered. Once they do, you should receive an email letting you know which alert has triggered and what the value of the alert is.
From your email, you can click on the “Open Project” link to open your dashboard and find the problematic requests.
Was this page helpful?