Skip to main content

The Python SDK for API of Root Signals

Project description

Root Signals logo

Control and Measurement for LLM automations

Build discord-invite

Root Signals SDK streamlines the evaluation of your LLM pipelines, to yield insights about their effectiveness. While many tools exist for building the pipelines themselves, quantifying their performance can be challenging.

Root Signals addresses this gap with carefully crafted universal evaluators based on cutting edge LLM research, as well as a framework for systematically adding your own.

Easily integrate with your CI/CD process for continuous monitoring to ensure the performance stays within acceptable limits.

Install

pip install root-signals

Quickstart

Before you begin, you'll need to set up your API key. You can either:

  1. Set it as an environment variable ROOTSIGNALS_API_KEY
  2. Add it to a local .env file

Get your API key from:

Example setup:

# Option 1: Environment variable
export ROOTSIGNALS_API_KEY=your-Root-API-key

# Option 2: .env file
echo ROOTSIGNALS_API_KEY=your-Root-API-key >> .env

Run a Root evaluator

from root import RootSignals

# Connect to the Root Signals API
client = RootSignals()

# Run a politeness evaluator
response = client.evaluators.Politeness(
    response="You can find the instructions from our Careers page."
)
print(response)
# {score=0.7, justification='The response is st...', execution_log_id=...}

Check the full list of Root evaluators from the Root evaluators documentation. You can also add your own evaluators.

Documentation

For more details, please see the main SDK documentation.

Community

Check out our discord server. It's a good place to ask questions, get help, and discuss ideas.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

root_signals-1.3.3.tar.gz (163.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

root_signals-1.3.3-py3-none-any.whl (391.9 kB view details)

Uploaded Python 3

File details

Details for the file root_signals-1.3.3.tar.gz.

File metadata

  • Download URL: root_signals-1.3.3.tar.gz
  • Upload date:
  • Size: 163.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for root_signals-1.3.3.tar.gz
Algorithm Hash digest
SHA256 0ebaaa462702495637fe27215ef551caf3319693daeb0b3a4c1acc9c3be24630
MD5 2516fa92fe397f4e1ebc4a7884d68ed0
BLAKE2b-256 f89415aada3a012f00e5e958371a766dcbb56f42b8f30662d327e3605be10fd4

See more details on using hashes here.

File details

Details for the file root_signals-1.3.3-py3-none-any.whl.

File metadata

  • Download URL: root_signals-1.3.3-py3-none-any.whl
  • Upload date:
  • Size: 391.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for root_signals-1.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 741272b288562f194444b52e62ff49096f0da4cdcea900b2b3e525d247189733
MD5 a5e14cb99841791914210e0632128265
BLAKE2b-256 e4eda20ab08d8256773455cf0686fbb8f426964a01dbe2df84c73b8885707d24

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page