Quickstart
How to monitor your apps with Galileo Observe
Getting started with Galileo Observe is really easy. It involves 3 steps:
Create a project
Integrate Galileo in your code
Galileo Observe can integrate via Langchain callbacks, our Python Logger, or via RESTful APIs.
Choose your Guardrail metrics
Turn on the metrics you want to monitor your system on, select from our Guardrail Metric store or register your own.
Authentication
To authenticate Galileo, perform the following steps
- Add your Galileo Console URL (
GALILEO_CONSOLE_URL
) to your environment variables.
- Set your API key (recommended) or user name and password to your environment variables
We recommend using an API key to authenticate. To create one, go to “API Keys” under your profile bubble.
Getting an API Key
To create an API key:
-
Go to your Galileo Console settings
-
Go to API Keys
-
Select Create a new key
Logging via Python Logger
If you’re not using LangChain, you can use our Python Logger to log your data to Galileo.
First you can create your ObserveWorkflows object with your existing project.
Next you can log your workflow.
Integrating with Langchain
We support integrating into both Python-based and Typescript-based Langchain systems:
Integrating into your Python-based Langchain application is the easiest and recommended route. You can just add GalileoObserveCallback(project_name="YOUR_PROJECT_NAME")
to the callbacks
of your chain invocation.
The GalileoObserveCallback logs your input, output, and relevant statistics back to Galileo, where additional evaluation metrics are computed.
Logging through our REST APIs
If you are looking to log directly from the client (e.g. using Javascript), you can log directly through our APIs. The Monitor API endpoints can be found on the swagger docs for your environment. More instructions can be found here.
What’s next
Once you’ve integrated Galileo into your production app code, you can choose your Guardrail metrics.