# keirp/automatic_prompt_engineer

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/keirp-automatic-prompt-engineer).**

1,360 stars · 172 forks · Python · MIT

## Links

- GitHub: https://github.com/keirp/automatic_prompt_engineer
- awesome-repositories: https://awesome-repositories.com/repository/keirp-automatic-prompt-engineer.md

## Description

Automatic Prompt Engineer is a framework designed to automate the generation, refinement, and performance measurement of language model instructions. It functions as a systematic tool for optimizing prompt phrasing by iteratively testing candidate instructions against specific input and output datasets to maximize task accuracy.

The system distinguishes itself through an evaluation-driven approach that uses automated feedback loops to score prompt variations. By employing template-based input structuring, it ensures consistent testing environments where candidate instructions are measured against predefined performance metrics.

The framework includes integrated utilities for managing the computational and financial resources required for optimization tasks. It provides pre-computation features to estimate token usage and costs before execution, allowing for budget control during large-scale testing. Users can define custom evaluation and prompt templates to standardize how models interact with data and how performance is scored across different iterations.

## Tags

### Artificial Intelligence & ML

- [Automated Prompt Engineering](https://awesome-repositories.com/f/artificial-intelligence-ml/automated-prompt-engineering.md) — Provides a systematic framework for the automated generation, refinement, and performance measurement of language model instructions.
- [Automated Prompt Optimization](https://awesome-repositories.com/f/artificial-intelligence-ml/automated-prompt-optimization.md) — Automates the refinement and selection of model instructions by evaluating candidate prompts against target datasets.
- [Prompt Optimization Frameworks](https://awesome-repositories.com/f/artificial-intelligence-ml/prompt-optimization-frameworks.md) — Provides a comprehensive framework for automatically generating, evaluating, and refining natural language instructions based on performance data.
- [Prompt Optimization Tools](https://awesome-repositories.com/f/artificial-intelligence-ml/prompt-optimization-tools.md) — Automatically refines natural language instructions by iteratively generating, evaluating, and selecting the most effective phrasing. ([source](https://github.com/keirp/automatic_prompt_engineer#readme))
- [Prompt Evaluation Tools](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-prompt-configurations/prompt-evaluation-tools.md) — Ranks and selects optimal prompt variations by measuring their performance against predefined input and output datasets.
- [Large Language Models](https://awesome-repositories.com/f/artificial-intelligence-ml/large-language-models.md) — Facilitates the iterative engineering of natural language instructions to maximize language model performance on specific tasks.
- [Automated Code Refinement Loops](https://awesome-repositories.com/f/artificial-intelligence-ml/model-feedback-loops/automated-code-refinement-loops.md) — Implements automated loops that iteratively modify instructions based on performance feedback to improve model outcomes.
- [Prompt Iteration Workflows](https://awesome-repositories.com/f/artificial-intelligence-ml/prompt-iteration-workflows.md) — Provides workflows for the iterative generation and testing of prompts to identify the most effective phrasing.

### Testing & Quality Assurance

- [LLM Evaluation](https://awesome-repositories.com/f/testing-quality-assurance/model-testing/llm-evaluation.md) — Standardizes the evaluation of language model workflows by scoring performance across different prompt variations.
