📋 Table of Contents
- Overview
- Features
- Installation
- Quick Start
- Core Concepts
- Documentation
- Supported Models
- Examples
- Articles & Tutorials
- Contributing
- License
Overview 🔍
PromptLab is a free, lightweight, open-source experimentation tool for Gen AI applications. It streamlines prompt engineering, making it easy to set up experiments, evaluate prompts, and track them in production - all without requiring any cloud services or complex infrastructure.
With PromptLab, you can:
- Create and manage prompt templates with versioning
- Build and maintain evaluation datasets
- Run experiments with different models and prompts
- Evaluate model and prompt performance using built-in and custom metrics
- Compare experiment results side-by-side
- Deploy optimized prompts to production
Features ✨
- Truly Lightweight: No cloud subscription, no additional servers, not even Docker - just a simple Python package
- Easy to Adopt: No ML or Data Science expertise required
- Self-contained: No need for additional cloud services for tracking or collaboration
- Seamless Integration: Works within your existing web, mobile, or backend project
- Flexible Evaluation: Use built-in metrics or bring your own custom evaluators
- Web Interface: Compare experiments and track assets through a web interface
- Multiple Model Support: Works with Azure OpenAI, Ollama, DeepSeek and more. You can also bring your ownd model.
- Version Control: Automatic versioning of all assets for reproducibility
- Async Support: Run experiments and invoke models asynchronously for improved performance
Installation 📦
pip install promptlab
It's recommended to use a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install promptlab
Quick Start 🚀
Check the quick start example here - samples/quickstart
Core Concepts 🧩
Tracer
Tracer is responsible for persisting and updating assets and experiments in the storage layer. At present, only SQLite is supported.
Assets
Immutable artifacts used in experiments, with automatic versioning:
- Prompt Templates: Prompts with optional placeholders for dynamic content
- Datasets: JSONL files containing evaluation data
Experiments
Evaluate prompts against datasets using specified models and metrics.
PromptLab Studio
A web interface for visualizing experiments and comparing results.
Documentation 📖
For comprehensive documentation, visit our Documentation Page.
Key documentation:
- Core Concepts
- Evaluators - Detailed information about built-in and custom evaluators
Supported Models 🤖
- Azure OpenAI: Connect to Azure-hosted OpenAI models
- Ollama: Run experiments with locally-hosted models
- OpenRouter: Access a wide range of AI models (OpenAI, Anthropic, DeepSeek, Mistral, etc.) via OpenRouter API
- Custom Models: Integrate your own model implementations
Examples 📚
- Quickstart: Getting started with PromptLab
- Asset versioning: Versioning Prompts and Datasets
- Custom Metric: Creating custom evaluation metrics
- Async Example: Using async functionality with Ollama and OpenRouter models for improved performance
- Custom Model: Bring your own model for evaluation
Articles & Tutorials 📝
- Evaluating prompts locally with Ollama and PromptLab
- Creating custom prompt evaluation metrics with PromptLab
CI/CD 🔄
PromptLab uses GitHub Actions for continuous integration and testing:
- Unit Tests: Run unit tests for all components of PromptLab
- Integration Tests: Run integration tests that test the interaction between components
- Performance Tests: Run performance tests to ensure performance requirements are met
The tests are organized into the following directories:
tests/unit/: Unit tests for individual componentstests/integration/: Tests that involve multiple components working togethertests/performance/: Tests that measure performancetests/fixtures/: Common test fixtures and utilities
You can find more information about the CI/CD workflows in the .github/workflows directory.
Contributing 👥
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License 📄
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for promptlab 0.1.11
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 |
|---|---|---|---|---|
| promptlab-0.1.11.tar.gz | 56.9 kB | Without provenance | Details for promptlab-0.1.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| promptlab-0.1.11-py3-none-any.whl | Python 3 | none | any | Details for promptlab-0.1.11-py3-none-any.whl |
Total release size: 122.3 kB
Release files / promptlab-0.1.11.tar.gz
| Download URL | promptlab-0.1.11.tar.gz |
|---|---|
| Size | 56.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e61b9369ac71115c46a1c54a3c85b8890dd2a0ce5adea743c3151c814d12407c
|
|
BLAKE2b-256 checksum How to use checksums |
3b275aab6a2c79a0ce5db1a857f2f070563cb6c27b31a994a0133dc3c22c199c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.18
|
Release files / promptlab-0.1.11-py3-none-any.whl
| Download URL | promptlab-0.1.11-py3-none-any.whl |
|---|---|
| Size | 65.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f79a3b7cbdb8f61cdad8127bafd52c7942f9e56efab8b8965375995296d0ed14
|
|
BLAKE2b-256 checksum How to use checksums |
a9e1626a9cad3d9aaddec2c09141bca138dfab6595259cb579f8e1e97de6de8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.18
|
Security for promptlab 0.1.11
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.