Skip to main content

Transform prompts to align with Amazon Nova guidelines

Project description

nova-meta-prompter

Transform prompts to align with Amazon Nova guidelines.

Installation

pip install nova-meta-prompter

Or install from source:

git clone <repository-url>
cd nova_metaprompter
pip install -e .

Quick Start

from nova_meta_prompter import transform_prompt

# Transform a prompt
result = transform_prompt("Summarize this document: {document_text}")

# Get the Nova-aligned prompt
print(result['nova_final'])

# View the transformation process
print(result['thinking'])      # Analysis of changes
print(result['nova_draft'])    # Initial draft
print(result['reflection'])    # Reflection on draft

Advanced Usage

Custom Model

# Use Claude Sonnet instead of default Nova Premier
result = transform_prompt(
    "Your prompt here",
    model_id='global.anthropic.claude-sonnet-4-5-20250929-v1:0'
)

Custom Boto Client

import boto3
from botocore.config import Config

# Create custom client
config = Config(region_name='us-east-1', read_timeout=2000)
client = boto3.client('bedrock-runtime', config=config)

# Use with transform_prompt
result = transform_prompt("Your prompt", boto_client=client)

Interactive Notebook

Explore the package with the included Jupyter notebook:

export AWS_PROFILE=your-profile
jupyter notebook nova_metaprompter_showcase.ipynb

AWS Configuration

Set your AWS credentials:

export AWS_PROFILE=your-profile-name
export AWS_REGION=us-west-2

Or use AWS CLI:

aws configure

Requirements

  • Python 3.8+
  • AWS Bedrock access with Nova model permissions
  • Valid AWS credentials

What It Does

The transformer:

  • Analyzes your existing prompts
  • Identifies alignment opportunities with Nova guidelines
  • Applies Nova best practices (clear headers, structured format, step-by-step instructions)
  • Provides detailed reasoning and reflection on changes

Development

Run tests:

pip install -e ".[dev]"
pytest

License

MIT

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

nova_meta_prompter-0.1.0.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nova_meta_prompter-0.1.0-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file nova_meta_prompter-0.1.0.tar.gz.

File metadata

  • Download URL: nova_meta_prompter-0.1.0.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for nova_meta_prompter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2032ea4c85e29866ae861bcb8f0560292774d17b25ea12049ebee09791ffee4d
MD5 398a1c21905e697e0ea544faf549cf54
BLAKE2b-256 c9e639a2c39f6a9a95c5de75cb95b2405118c06c4765c1dd8c3186f893e644db

See more details on using hashes here.

File details

Details for the file nova_meta_prompter-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nova_meta_prompter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 94862edfb2da03eb3e98ecd21450bde0069df35bbb315f2a9f85336af07d34bd
MD5 0ad65b45c89f91eb8b2b67e7894b67dc
BLAKE2b-256 d0135e0af4bde7a2436ba06b885808bd023c5e8046efc07f0756e9ba0d96fc33

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page