Get Access to DeepRails

To get started, you’ll need access to the DeepRails Krino Console and API.

Get Your API Key

1

Visit the Krino Console

Go to your organization’s Krino Console and select API Keys.

2

Select Create API Key

3

Give your key a distinct name and click Create Key

Install the DeepRails Client

  1. Open a Python notebook or any python environment where you want to install DeepRails
  2. Install the python client via pip install deeprails
  3. Next, run the following code to setup DeepRails client. Replace DEEPRAILS_API_KEY with your API Key.
from deeprails import DeepRails

# Initialize the client (replace "YOUR_TOKEN" with a valid token)
client = DeepRails(token="DEEPRAILS_API_KEY")

Log Your First Evaluation Run

After installation, run the following code in your Python environment. Replace the placeholders with your actual data.

prompt = "Write a poem about winter"
output = "A frosty greeting on a snowy morn..."

eval_response = client.evaluate.create({
    "model_input": {"user_prompt": prompt},
    "model_output": output,
    "type": "text",
    "guardrail_metrics": ["correctness", "completeness"],
    "score_format": "continuous",
})

print("Evaluation created:", eval_response)

Explore Results in Krino Console

Once your evaluations are logged:

  1. Open your Krino Console
  2. Browse historical runs, filter by project or model
  3. Compare prompts and completions side-by-side
  4. Debug issues with detailed feedback per metric

Next Steps