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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8fa6e281376d3f04043686f51634ddd452326af2dc01e94afcbe28dab8b7fcc
|
|
| MD5 |
f0f74239505ed9f6c5c5d3bdfdb7fbbc
|
|
| BLAKE2b-256 |
e50891d3a956ed012387fe4cf895080a97074c7e99b6121e66d78bdcda29cd55
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
708674c8b708d46a6301fedcdf7aeba608f0442a79c89c9aa46f3f69aa5b26a9
|
|
| MD5 |
e932e877b7dbedb51a34aaf43664dcb9
|
|
| BLAKE2b-256 |
1fb029cebfe9a0b3f5b40855c5982a3f9e7726fad2115ea45a4506488f052d16
|