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.
Install the Galileo Client
galileo-observe
Getting an API Key
To create an API key:
Go to your Galileo Console settings and select API Keys
Select Create a new key
Give your key a distinct name and hit Create
Logging via Client
If you’re not using LangChain, you can use our Python or TypeScript 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 using our REST APIs, you can do so with our public APIs. More instructions on using those can be found here.
What’s next
Once you’ve integrated Galileo into your production app code, you can choose your Guardrail metrics.