Skip to main content

LLM regression testing via embedding drift

Project description

litmus-sdk

LLM regression testing via embedding drift.

Install

pip install litmus-sdk

Quick start

from litmus_sdk import LitmusSDK

sdk = LitmusSDK(db_path="./litmus.db", project_id="my-project")
sdk.init("v1.0.0")

# Your litellm calls are now instrumented automatically
import litellm
response = litellm.completion(model="gpt-4o-mini", messages=[{"role": "user", "content": "Hello"}])

# Compare two versions
report = sdk.compare("v1.0.0", "v2.0.0")
report.display()

CLI

litmus --help

Development

pip install -e ".[dev]"
pytest tests/

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

litmus_sdk-0.2.1.tar.gz (40.3 kB view details)

Uploaded Source

Built Distribution

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

litmus_sdk-0.2.1-py3-none-any.whl (49.9 kB view details)

Uploaded Python 3

File details

Details for the file litmus_sdk-0.2.1.tar.gz.

File metadata

  • Download URL: litmus_sdk-0.2.1.tar.gz
  • Upload date:
  • Size: 40.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for litmus_sdk-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a8fa6e281376d3f04043686f51634ddd452326af2dc01e94afcbe28dab8b7fcc
MD5 f0f74239505ed9f6c5c5d3bdfdb7fbbc
BLAKE2b-256 e50891d3a956ed012387fe4cf895080a97074c7e99b6121e66d78bdcda29cd55

See more details on using hashes here.

File details

Details for the file litmus_sdk-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: litmus_sdk-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 49.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for litmus_sdk-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 708674c8b708d46a6301fedcdf7aeba608f0442a79c89c9aa46f3f69aa5b26a9
MD5 e932e877b7dbedb51a34aaf43664dcb9
BLAKE2b-256 1fb029cebfe9a0b3f5b40855c5982a3f9e7726fad2115ea45a4506488f052d16

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