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.0.tar.gz
(44.2 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.0.tar.gz.
File metadata
- Download URL: litmus_sdk-0.2.0.tar.gz
- Upload date:
- Size: 44.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
128401e80c97fbd7e083dd1f8741bd67a8d470f3aa108dd40f5874feba1fe672
|
|
| MD5 |
2c5e48c3292d8723d3ff3f50dc182d6c
|
|
| BLAKE2b-256 |
9ab3e086d1262644b4f9ae57a7f3dac8b6fe2597097668abe78e864ad5c67f6b
|
File details
Details for the file litmus_sdk-0.2.0-py3-none-any.whl.
File metadata
- Download URL: litmus_sdk-0.2.0-py3-none-any.whl
- Upload date:
- Size: 54.6 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 |
e3ff85f0a16b001116961d11bb7ed1a9cdb6210906113fe8c9f3377684096a47
|
|
| MD5 |
17c0000eb31d62e0c32fa5d5c708b7e6
|
|
| BLAKE2b-256 |
c423fe1ee19c286abbf82de3625b3a49072a7db2ec62cd0c3716d91e1effae6a
|