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.1.5.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.1.5.tar.gz.
File metadata
- Download URL: litmus_sdk-0.1.5.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 |
baea7eb74d327e2f427fa93df8713f315cf5323f43bdf8930c6bf23e56cf173a
|
|
| MD5 |
0b559dca5dc5b87b8db937d0f933a5c3
|
|
| BLAKE2b-256 |
a8acbc99bf99ee58562178924569fc93184cb1408bef1d667ab383ef4c46fdb7
|
File details
Details for the file litmus_sdk-0.1.5-py3-none-any.whl.
File metadata
- Download URL: litmus_sdk-0.1.5-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 |
521cbeba9e0fdffe98500e1d8aa6c8667bd1022f1fe69ccaa79274daca535bd9
|
|
| MD5 |
46b3c4cf406fad18be893ea74e403fc4
|
|
| BLAKE2b-256 |
d2be0ff07f476640015192a99879b2359a7156b056f372432b2a6984de5eb76d
|