This is an early release preview. You may encounter bugs.
Prompt Learning logo
Unclaimed

Tool coding

Prompt Learning

D 39/100 GitHub score ? This grade is derived from GitHub signals, not user votes. Open for the full breakdown.
Discussion

01 / Summary

About Prompt Learning.

Prompt Learning is a Python SDK and CLI that improves an LLM prompt from natural-language feedback rather than numeric scores. It builds on meta prompting, where an LLM rewrites prompts, but replaces scalar signals such as pass or fail with textual feedback: annotations, rule reminders, and explanations of what went wrong. The prompt changes while the model weights stay fixed, so the approach also applies after deployment.

The loop uses three roles. An agent runs the task with the current prompt, an evaluator LLM finds failures and writes feedback, and a meta-prompt LLM revises the prompt from that feedback. You supply a dataset with input variables, the model's outputs, and one or more feedback columns, or you run your own evaluator functions to generate the feedback first. Optional annotations analyze why errors happened to guide the rewrite.

Besides whole prompts, it can optimize a ruleset, which suits coding agents whose behavior is steered by a list of rules. Prompts can be plain strings, message lists, or Phoenix prompt versions. Datasets are split into token-aware batches to fit the model's context window, and a budget in US dollars caps spending, with per-batch and running cost estimates in verbose mode.

A separate image command generates several images from a prompt with Google's image models and can collect human feedback, and an image evaluator uses Gemini vision to score prompt adherence, visual quality, artistic appeal, and consistency.

  • Feedback-driven optimization: rewrites prompts from natural-language critiques instead of numeric scores
  • Three-model loop: agent, evaluator, and meta-prompt LLMs that improve the prompt over iterations
  • Multiple feedback columns: combines several kinds of critique, such as quality notes and error messages
  • Custom evaluators: runs your evaluator functions to generate feedback before optimizing
  • Annotations: LLM-written analysis of errors that guides the rewrite
  • Ruleset optimization: refines a rule list for coding agents instead of the whole prompt
  • Cost controls: a spending budget plus per-batch and running cost estimates
  • Token-aware batching: splits datasets to fit the configured context window
  • Image prompt testing: generates image variations and scores them with a Gemini vision evaluator
  • Providers: OpenAI by default, with Google AI and Gemini as an alternative

02 / Discussion CREDIBILITY-GATED

Discussion

Reading is open to everyone. Posting and voting need a verified identity or a GitHub grade of B or higher.

  • No discussions yet.

04 / Build

Build with Prompt Learning.

Browse the catalog for frameworks, tools, and harnesses, each scored on real GitHub credibility.

Get Prompt Learning →

Browse the catalog