Promptim: an experimental library for prompt optimization
The point
LangChain released Promptim, an experimental open source library for prompt optimization. You give it an initial prompt, a dataset, and custom evaluators, and it runs a loop to produce a refined prompt that aims to beat the original.
Why it matters
For builders, it makes prompt work measurable instead of manual tweaking.
Key details
- It scores on a dev split, uses a metaprompt to suggest changes, and keeps a new prompt only if metrics improve
- Human feedback is optional through LangSmith Annotation Queues
- Install with pip install promptim
Original ~5 min → 25 sec here Source: LangChain Blog, Nov 9, 2026