> ## Documentation Index
> Fetch the complete documentation index at: https://langbear.runbear.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Template management

> Manage and improve your prompt templates online.

LangBear introduces a web user interface that enables easy creation and management of prompt templates.
Users can conveniently draft, alter, and organize prompt templates on the platform. This practical feature
streamlines the prompt development process, ensuring a user-friendly experience.

<img src="https://mintcdn.com/elaborateai/ppAp014YrJPwWogC/images/prompt-management.png?fit=max&auto=format&n=ppAp014YrJPwWogC&q=85&s=30780700fccc4b69ed459810aac42b3d" alt="Template management" width="1118" height="578" data-path="images/prompt-management.png" />

## Creating a new prompt template

By clicking the `New Prompt` button, you can create a new template. There
are two primary types of prompt templates: `llm` and `chat`.

### LLM-type blocks

<img src="https://mintcdn.com/elaborateai/ppAp014YrJPwWogC/images/prompt-llm.png?fit=max&auto=format&n=ppAp014YrJPwWogC&q=85&s=3e789b26e937772f28eed7de65db0830" alt="LLM-type prompt templates" width="1087" height="501" data-path="images/prompt-llm.png" />

Supported blocks:

* **Prompt Block** - A block for plain text prompt message.
* **FewShotExamples Block** - A list of examples for few-shot learning.

### Chat-type blocks

<img src="https://mintcdn.com/elaborateai/ppAp014YrJPwWogC/images/prompt-chat.png?fit=max&auto=format&n=ppAp014YrJPwWogC&q=85&s=fd7227b9dd52341b587d0c8ae1b301c2" alt="Chat-type prompt templates" width="1120" height="735" data-path="images/prompt-chat.png" />

Supported blocks:

* **SystemMessage Block** - A message for the system.
* **HumanMessage Block** - A request message given by a human.
* **AIMessage Block** - A response message given by AI assistant.
* **FewShotExamples Block** - A list of examples for few-shot learning.

## Tracking versions of prompt templates

LangBear offers the feature of multiple prompt versions, which greatly enhances
flexibility. It encourages users not to shy away from modifying prompts. This
functionality provides the advantage of comparing different prompt versions and
switching to another if desired.

## Locallizing prompt templates

You can manage different prompts for each language. While Language Learning
Models (LLMs) support content generation in various languages, supplying prompts
in different languages enhances the user experience.
