Skip to content

Conversation

tanushree-sharma
Copy link
Contributor

@tanushree-sharma tanushree-sharma commented Sep 19, 2025

Overview

Best practices for using the prompt hub

Porting over @PeriniM's PR from the old docs that never got merged langchain-ai/langsmith-docs#894 with some edits

Preview URL: https://langchain-5e9cc07a-preview-prompt-1758318561-b510747.mintlify.app/langsmith/prompt-management-best-practices

@github-actions github-actions bot added the langsmith For docs changes to LangSmith label Sep 19, 2025
Copy link

Preview ID generated: preview-prompt-1758310543-4cc02cc

@tanushree-sharma tanushree-sharma marked this pull request as ready for review September 19, 2025 19:42
Copy link
Contributor

@katmayb katmayb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for porting over, left a few comments on nits/typos

<Note>
Previously this functionality lived in the `langchainhub` package which is now deprecated. All functionality going forward will live in the `langsmith` package.
</Note>
<Warning>We do not reccomend pulling prompts from the Prompt Hub in your production code on every request. Please see our guide on [best practices for using the prompt hub](/langsmith/prompt-management-best-practices) for more information.</Warning>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<Warning>We do not reccomend pulling prompts from the Prompt Hub in your production code on every request. Please see our guide on [best practices for using the prompt hub](/langsmith/prompt-management-best-practices) for more information.</Warning>
<Warning>We do not recommend pulling prompts from the Prompt Hub in your production code on every request. For more information, refer to [best practices for using the prompt hub](/langsmith/prompt-management-best-practices).</Warning>


Prompts are a fundamental component of your LLM application's logic. A minor change can significantly change an LLM's response or tool selection, making lifecycle management important. LangSmith provides tools to manage prompts across development, testing, and production environments:

- **Prompt Hub**: A central store for managing prompts. This is a especially useful source of truth for your prompts when you are collaborating with a team to iterate on them.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- **Prompt Hub**: A central store for managing prompts. This is a especially useful source of truth for your prompts when you are collaborating with a team to iterate on them.
- **Prompt Hub**: A central store for managing prompts. This is an especially useful source of truth for your prompts when you are collaborating with a team to iterate on them.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or, maybe:

A centralized store that makes it easy to version, track, and update prompts, especially when collaborating with others.

Copy link

Preview ID generated: preview-prompt-1758318171-10850d1

Copy link

Preview ID generated: preview-prompt-1758318323-8bd2b6d

Copy link

Preview ID generated: preview-prompt-1758318561-b510747

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
langsmith For docs changes to LangSmith
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants