AIToday
LangChain BlogPublished: Nov 10, 2026, 04:00 JST

LangChain launches Promptim, an open-source prompt optimizer

Send on LINE
LangChain launches Promptim, an open-source prompt optimizer

3 Key Points

  1. What happened

    LangChain released Promptim, an open-source library that takes an initial prompt, a LangSmith dataset, and custom evaluators, then loops—scoring outputs and asking a metaprompt for changes—keeping updates only when dev-split metrics improve.

  2. Why it matters

    It aims to save engineering time and add rigor to prompt work, and by concentrating effort on model-agnostic evals it makes switching model providers easier, though LangChain says it is not a silver bullet and still wants a human in the loop.

WHO IT HITSAI engineers and prompt engineers who maintain production prompts will be affected: they can hand off some manual tweaking to an automated loop, while still reviewing final prompts via LangSmith's Prompt Hub.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

Context & Analysis

Promptim arrives as a first attempt by LangChain at prompt optimization, a space where DSPy has been a pioneering effort for a while. The library builds on evaluation-driven development—creating a dataset, defining metrics, and scoring every prompt change—by automating the suggestion and scoring loop. It plugs into LangSmith for dataset management, prompt management, result tracking, and optional human labeling. LangChain frames the choice to focus on a single prompt as a more tractable problem than optimizing an entire compound AI system, and it deliberately keeps humans in the loop through annotation queues and Prompt Hub review. The team also says it is looking ahead to dynamic few-shot prompting, LangSmith UI integration, more optimization methods, and eventually optimizing LangGraph graphs as a whole, ideally through an integration with DSPy.

FAQ
How is Promptim different from DSPy?
Promptim focuses on optimizing a single prompt and keeps the human more in the loop, while DSPy targets the whole compound AI system and offers a wider breadth of solutions such as finetuning and few-shot prompting.
Do I need automated metrics to use it?
No—you can optionally add human feedback through LangSmith's Annotation Queues, which is useful when you lack good automated metrics or want to optimize beyond them.
How do I try Promptim?
Install it with pip install promptim; LangChain also points to a YouTube walkthrough and asks for feedback on GitHub or Twitter.
LangChain BlogRead Original Article
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Next articleScott Wiener wins Pelosi seat, vows AI risk action