DATE:
AUTHOR:
The LangChain Team
LangSmith SaaS

🔍 Diff view in LangSmith's prompt hub

DATE:
AUTHOR: The LangChain Team

We’ve added a new Diff View feature in LangSmith’s Prompt Hub. As prompts evolve, keeping track of changes can get tricky—especially when iterating rapidly. With Diff View, you can:

  • Compare updates between commits to see what’s changed.

  • Review earlier prompt versions to understand progress.

  • Revert to a previous state seamlessly if a change doesn’t work out.

This makes it easier to refine your prompts while maintaining full visibility into their history.

How It Works

  1. Go to the Commits tab in the Prompt Hub.

  2. Toggle on the Diff View button in the top-right corner.

  3. Compare a commit with its previous version or explore changes across multiple commits.

Every saved update to a prompt automatically creates a new commit, so you’ll always have a clear audit trail of changes.

For SDK users, you can also access a specific commit by using the prompt name and commit hash:
prompt_name:commit_hash.

Learn more in the docs: https://docs.smith.langchain.com/prompt_engineering/concepts#commits

Powered by LaunchNotes