---
description: Manage, iterate, and deploy your prompts in one place
---

# Prompt Hub

As teams grow in size, it becomes tricky for subject matter experts who are not developers to help with prompt development. Prompt Hub is a centralized repository for teams to manage, iterate, and deploy prompt templates. It's a collaborative workspace to version control templates and use them across playground, tasks, APIs, and experiments.

{% hint style="info" %}
Access our Prompt Hub [API reference here](https://app.gitbook.com/s/mhFhGCSqoEDadg0YeZfq/reference/prompt-hub-api)
{% endhint %}

{% embed url="https://www.youtube.com/watch?v=xFbjbdB-Edg" %}

## Key features

1. **Version control your templates** to track updates and revert when needed
2. **Save templates directly from prompt playground**, including LLM parameters, messages, tools, and metadata.
3. **Access templates via API**
4. **Evaluate results versioned by prompt template**

## Save new prompts

Any playground template can be saved to the Prompt Hub. The Prompt Hub stores the template along with LLM parameters, function definitions, and other metadata necessary to reproduce the LLM call.&#x20;

<figure><img src="https://2088270005-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAlgpMyBRcl2qFZRQ67%2Fuploads%2FE7b2s6NkHbrae4K8AVk8%2FScreenshot%202024-12-10%20at%205.25.56%E2%80%AFPM.png?alt=media&#x26;token=7879d1e0-56e2-47b7-a092-6c7e7d455960" alt=""><figcaption><p>User provides a unique Prompt Name, description, version description, and tags, which will be saved as metadata associated with the prompt in the Prompt Hub.</p></figcaption></figure>

<figure><img src="https://2088270005-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAlgpMyBRcl2qFZRQ67%2Fuploads%2Fh82yRWboOIAjvnBMhWh1%2FScreenshot%202024-12-10%20at%205.26.24%E2%80%AFPM.png?alt=media&#x26;token=00c2be30-0155-48df-9f56-fbbb1cfa3ef4" alt=""><figcaption><p>The Prompt Hub listing page displays all prompts saved in the space. Users can search for prompts by name using the search bar and sort them by criteria such as 'Last Updated' or 'Name' for easy navigation.</p></figcaption></figure>

<figure><img src="https://2088270005-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAlgpMyBRcl2qFZRQ67%2Fuploads%2F9ekuJd45CXcq4Ebuey5t%2FScreenshot%202024-12-10%20at%205.35.57%E2%80%AFPM.png?alt=media&#x26;token=be8b2136-2cbe-4da8-aed8-f6aeb9544d61" alt=""><figcaption><p>By clicking on a specific prompt, the user can view its metadata, version history, and the associated prompt template and LLM parameters for the selected version.</p></figcaption></figure>

## Load prompts in prompt hub to playground

A saved prompt can be loaded into the Prompt Playground for iteration. This can be done directly from the prompt version view, the Prompt Hub listing page, or within the Prompt Playground itself.

<figure><img src="https://2088270005-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAlgpMyBRcl2qFZRQ67%2Fuploads%2FPd1QFFAmuaDsyjJCNuPg%2FScreenshot%202024-12-10%20at%205.43.13%E2%80%AFPM.png?alt=media&#x26;token=9a9185ce-b0b1-4922-b926-fc108d9525d8" alt=""><figcaption><p>User selects 'Edit in Prompt Playground' to load Version 2 of the RAG Prompt w/out Hallucinations into the Prompt Playground.</p></figcaption></figure>

<figure><img src="https://2088270005-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAlgpMyBRcl2qFZRQ67%2Fuploads%2FpUUKeyxziDuCF8O1GJQX%2FScreenshot%202024-12-10%20at%205.43.41%E2%80%AFPM.png?alt=media&#x26;token=fffa0f81-4a48-4b1f-9cde-e9d52d8cc718" alt=""><figcaption><p>User selects the play button to load the latest version of the prompt into the playground.</p></figcaption></figure>

<figure><img src="https://2088270005-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAlgpMyBRcl2qFZRQ67%2Fuploads%2F15NSSVWzJ2vX4Wbsxcsr%2FScreenshot%202024-12-10%20at%205.44.09%E2%80%AFPM.png?alt=media&#x26;token=08cc8a0a-f0a2-474b-bf47-1c89119068a7" alt=""><figcaption><p>User selects 'Load Prompt' to load a prompt name and version into the playground.</p></figcaption></figure>

## Edit prompts and create new versions

Once the prompt is loaded into the Prompt Playground, you can freely make changes and test the updated template on a dataset. You can modify the system template is modified to instruct the LLM to provide concise, one-sentence responses. Instead of creating a new prompt, the user updates the version of the existing prompt directly, preserving the connection to the original template from the Prompt Hub.

<figure><img src="https://2088270005-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAlgpMyBRcl2qFZRQ67%2Fuploads%2Fhas8NhNO2WdAeR9mH4nU%2FScreenshot%202024-12-10%20at%205.45.38%E2%80%AFPM.png?alt=media&#x26;token=48cd56b9-db20-4fd2-8909-591e92a16f75" alt=""><figcaption><p>Save changes as a new prompt or creating a new version of an existing prompt</p></figcaption></figure>

<figure><img src="https://2088270005-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAlgpMyBRcl2qFZRQ67%2Fuploads%2FJpfvpfOJV6VKxOFrpIfm%2FScreenshot%202024-12-10%20at%205.57.17%E2%80%AFPM.png?alt=media&#x26;token=7cb48291-4f64-4166-927b-af138d27f1c8" alt=""><figcaption><p>Provide a description of their changes to track context across changes</p></figcaption></figure>

## Learn more
