What is PromptDrifter?
PromptDrifter is a command-line tool to test and evaluate Large Language Model (LLM) prompts across different models and providers. It helps catch "prompt drift" when LLM responses change unexpectedly.
By comparing LLM outputs against version-controlled expected responses or predefined patterns, PromptDrifter helps ensure your LLM-powered features behave predictably.
Features
- Automated Guardrails: Integrates LLM response validation directly into your development and CI/CD workflows.
- Early Drift Detection: Catches deviations by comparing LLM outputs against version-controlled expected responses or predefined patterns (like regex).
- Model Agnostic Design: Through a flexible adapter system, PromptDrifter can interact with various LLM providers and models (e.g., OpenAI, Ollama, Gemini).
- Declarative Test Suites: Define your prompt tests in easy-to-understand YAML files, making them simple to create, manage, and version.
- CLI Interface: Simple command-line tool for easy integration and use.
- Response Caching: Speeds up test runs by caching responses from LLMs.
Getting Started
To start using PromptDrifter:
-
Install the package:
pip install promptdrifter
-
Initialize a sample configuration:
promptdrifter init
This will create a promptdrifter.yaml file in your current directory.
-
Edit
promptdrifter.yamlto define your prompts and expected outcomes. -
Run your tests:
promptdrifter run promptdrifter.yaml
License
PromptDrifter is licensed under the MIT License.
Metadata
Release files for promptdrifter 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| promptdrifter-0.0.2.tar.gz | 4.5 MB | Without provenance | Details for promptdrifter-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| promptdrifter-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for promptdrifter-0.0.2-py3-none-any.whl |
Total release size: 4.5 MB
Release files / promptdrifter-0.0.2.tar.gz
| Download URL | promptdrifter-0.0.2.tar.gz |
|---|---|
| Size | 4.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d63e0359972c49e3c7e86ece34e2fc2ed8f7a946af14ae4496ccfba541262082
|
|
BLAKE2b-256 checksum How to use checksums |
e03a786f65b7e22cc2395317f5bb3804bdd630ddb2ce3811b90891f99d345c23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Release files / promptdrifter-0.0.2-py3-none-any.whl
| Download URL | promptdrifter-0.0.2-py3-none-any.whl |
|---|---|
| Size | 59.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a50751a8f78825b15b196322dab2512871ee2805f15cb36dc7d16ede58ad7576
|
|
BLAKE2b-256 checksum How to use checksums |
b312ad4b27d2a4cbef5210f11e22c0a2fff458dd697c28e79044208028f5d474
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Security for promptdrifter 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.