Configure Your API Keys

Set API keys for your LLM models to enable metric evaluations on the Catalyst platform. If you're trying to set up a custom gateway, refer the "Enable Custom Gateway" page.

Via UI:

To start running evaluations on RagaAI Catalyst, you need specify the API keys to your LLM models. Follow these steps to set your API keys:

  1. Navigate to Settings -> API Keys.

  2. Enter your API key against the relevant supported model names by clicking "Edit"

  3. Click "Save" to store the API Key(s).

Via SDK:

Alternatively, you can also define your API keys on the SDK using the following commands:

from ragaai_catalyst import RagaAICatalyst

catalyst = RagaAICatalyst(
    api_keys={"OPENAI_API_KEY": OPENAI_API_KEY} #similarly for other supported keys
)

Last updated