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.3.tar.gz (18.3 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.3-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nova_meta_prompter-0.1.3.tar.gz
  • Upload date:
  • Size: 18.3 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.3.tar.gz
Algorithm Hash digest
SHA256 a69aa45584ccfa6457440d3783a2ea396bf4755239131919f272c1ef6a0e01c8
MD5 00dbdcd75462bbe5d9f9a78176d20093
BLAKE2b-256 263fddbf5bbf5d9ef197b0ca6f42e9ba572c0771ceaab3d76fdf16c9b5f9d14f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nova_meta_prompter-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5d8326013b2fd862f8b15c056087213b290ef7b7b2c143a29fe0063fc38df887
MD5 5e5d60d86c96893a4b97384256d6f9db
BLAKE2b-256 a175a38a1af41e6f50d0c974e52548ad1236c07b13b442b71fd8a47b838b94a8

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