maitrix-org/PromptAgent

This is the official repo for "PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimization". PromptAgent is a novel automatic prompt optimization method that autonomously crafts prompts equivalent in quality to those handcrafted by experts, i.e., expert-level prompts.

47
/ 100
Emerging

Employs Monte Carlo Tree Search (MCTS) to strategically sample model errors and iteratively refine prompts through reward simulation, unifying prompt sampling and evaluation in a single principled framework. Supports diverse model backends including OpenAI APIs, PaLM, Hugging Face text generation models, and vLLM for local inference, with YAML-based configuration for flexible experimentation. Integrates with BIG-bench tasks and the LLM Reasoners library, enabling optimization across reasoning and knowledge-intensive domains.

351 stars. No commits in the last 6 months.

Stale 6m No Package No Dependents
Maintenance 2 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 19 / 25

How are scores calculated?

Stars

351

Forks

46

Language

Python

License

Apache-2.0

Last pushed

Jul 17, 2025

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/prompt-engineering/maitrix-org/PromptAgent"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.