Skip to main content

🌪️ Promptnado: Your AI-Powered Prompt Engineer

Meet Promptnado – your personal AI prompt engineer! 🚀 By harnessing the power of AI, Promptnado acts as your personal AI prompt engineer, automatically generating, testing, and refining prompts to meet your specific criteria. Say goodbye to manual prompt tweaking and hello to AI-driven prompting!

🌟 Features

  • AI-powered iteration automatically generates and refines prompts.
  • Use natural language instructions to define your prompt criteria.
  • Automated evaluation tests each generated prompt against your specifications.
  • Generate synthetic examples to boost your testing dataset.
  • Choose your preferred models for prompt generation, evaluation, and testing.
  • Evaluate not just text outputs, but also the model's ability to make correct function calls.
  • Support for diverse input formats including strings, input-output pairs, Langchain messages, and interpolated dictionaries.
  • Create new datasets on the fly or use your own for testing.

How Promptnado Works

  1. You provide a system prompt with the token to signify where our prompt changes will go.
  2. You provide example requests to test these changes, or promptnado will generate them for you.
  3. Promptnado's AI generates multiple prompt variations based on your instruction.
  4. Each prompt is tested against your examples and evaluated using AI.
  5. The process repeats, refining prompts until the evaluation results all pass.
  6. You get a finely-tuned prompt that meets your specific needs!

Installation

pip install promptnado

Quick Start

from promptnado import Promptnado

# The system prompt we want to optimize
# We set the <HERE> token to signify where our prompt changes will go
system_prompt = """You are a helpful assistant. 

Rules:
- You are only allowed to talk about coding
- <HERE>
- Try to be concise"""

# The goal of the prompt changes
instruction = "The agent should only respond in English."

# Let's set 2 examples to start
examples = ["¿Cómo estás?", "How do typescript generics work?"]

pn = Promptnado(system_prompt, instruction, examples, max_attempts=5)

# Generate 2 more examples
pn.generate_examples(count=2)

# Run the optimization
pn.run()

Why Promptnado?

Prompt engineering is an art and a science. Promptnado brings the power of AI to this process, allowing you to save time on manual prompt tweaking, discover optimal prompts you might never have thought of, ensure consistency and quality in your AI interactions, and adapt quickly to new tasks and requirements.

Whether you're a seasoned AI engineer or just getting started with language models, Promptnado empowers you to create more effective, targeted prompts with ease. It's like having an AI prompt engineer right at your fingertips

Metadata

Release files for promptnado 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for promptnado 0.1.0
File Size Uploaded Provenance
promptnado-0.1.0.tar.gz 9.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for promptnado 0.1.0
File Interpreter ABI Platform
promptnado-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.2 kB

Release files / promptnado-0.1.0.tar.gz

Download URL promptnado-0.1.0.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f4e3bfa47bc51e066ee0b5c58a6c35642c782a29f365b74e887190c0ec2922a0
BLAKE2b-256 checksum
How to use checksums
a55735b206aeaeeb7ee6e2ed7044eacd0ad29ff47fed614eb2b679f874a5c6d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release files / promptnado-0.1.0-py3-none-any.whl

Download URL promptnado-0.1.0-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
516b3720f5fa87029b2935b74240a0c723055ce1722d40a536f1f1fd87b2948d
BLAKE2b-256 checksum
How to use checksums
12cb5e7090cbd867723d20c9561ae6dcd7bcdee9448ed959c6d7fa0171da52f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Security for promptnado 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page