Quickstart
Why use Galileo Protect?
Galileo Protect acts as an LLM Firewall proactively protecting your system from bad inputs, and your users from bad outputs. It empowers you to harden your GenAI system against malicious activities, such as prompt injections or offensive inputs, and allows you to take control of your application’s outputs and avoid hallucinations, data leakage, or off-brand responses.
How to get started with Galileo Protect?
Step 1: Getting your Galileo API key
Please follow the “Getting an API key” section here to get your API key.
Step 2: Install the necessary Python Client
-
Open a Python notebook or the Python environment where you want to install Galileo
-
Install the python client via pip install
galileo-protect
-
Next, run the following code to create a project and get
project_id
andstage_id
to set up integration.
Step 3: Integrate Galileo Protect with your app
Galileo Protect can be embedded in your production application through gp.invoke()
like below:
As part of your invocation config, you’ll need to define a set of Rules you want your application to adhere to, and the Actions that should be taken when these rules are broken.