Getting Started with Self-Hosting
Self-hosting Judgment Labs' platform is a great way to have full control over your LLM evaluation infrastructure. Instead of using our hosted platform, you can deploy your own instance of Judgment Labs' platform.
Part 1: Infrastructure Skeleton Setup
Please have the following infrastructure set up:
- A new/empty AWS account that you have admin access to: this will be used to host the self-hosted Judgment instance. Please Tip down the account ID.
- A Supabase organization that you have admin access to: this will be used to store and retrieve data for the self-hosted Judgment instance.
- An available email address and the corresponding app password (see Tip below) for the email address (e.g. no-reply@organization.com). This email address will be used to send email invitations to users on the self-hosted instance.
Part 2: Request Self-Hosting Access from Judgment Labs
Please contact us at support@judgmentlabs.ai with the following information:
- The name of your organization
- An image of your organization's logo
- [Optional] A subtitle for your organization
- Domain name for your self-hosted instance (e.g. api.organization.com) (can be any domain/subdomain name you own; this domain will be linked to your self-hosted instance as part of the setup process)
- The AWS account ID from Part 1
- Purpose of self-hosting
We will review your email request ASAP. Once approved, we will do the following:
- Whitelist your AWS account ID to allow access to our Judgment ECR images.
- Email you back with a backend Osiris API key that will be input as part of the setup process using the Judgment CLI (Part 3).
Part 3: Setting Up Your Self-Hosted Environment
For detailed instructions on setting up your self-hosted environment, please refer to the self-hosting page in the CLI section. This guide will walk you through the prerequisites, deployment process, and HTTPS listener setup for your self-hosted instance.
Part 4: Accessing Your Self-Hosted Environment
self_hosted_judgment_api_url
in this section) should be in the format https://{self_hosted_judgment_domain}
(e.g. https://api.organization.com
).From the Judgeval SDK
You can access your self-hosted instance by setting the following environment variables:
JUDGMENT_API_URL = "self_hosted_judgment_api_url"
JUDGMENT_API_KEY = "your_api_key"
JUDGMENT_ORG_ID = "your_org_id"
Afterwards, Judgeval can be used as you normally would.
From the Judgment platform website
Visit the url https://app.judgmentlabs.ai/login?api_url={self_hosted_judgment_api_url}
to login to your self-hosted instance. Your self-hosted Judgment API URL will be whitelisted when we review your request from Part 2.
You should be able to log in with the root user you configured during the setup process (--root-judgment-email
and --root-judgment-password
from the self-host main
command).
Adding more users to the self-hosted instance
To add a new user, make sure you're currently in the workspace/organization you want to add the new user to. Then, visit the workspace member settings and click the "Invite User" button. This process will send an email invitation to the new user to join the organization.