# Single-Prompt Playground

RagaAI Catalyst's Prompt Playground offers a powerful and intuitive interface for creating, testing, and managing prompt templates. This feature is designed to streamline your prompt engineering process and enhance the quality of your LLM interactions.

### **Step-by-Step Guide to Creating a Prompt in RagaAI Catalyst Playground**

1. Access the Prompt Playground:
   * Navigate to the Project.
   * Locate and click on the "Playground" section.
2. Initiate a New Prompt:

   * Click the `New Prompt` button to start creating your prompt template.

   <figure><img src="https://1811327582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYbIiNdp1QbG4avl7VShw%2Fuploads%2FRZBU4OeXyQPqR4AOTnyp%2FScreenshot%202024-09-30%20at%205.55.19%E2%80%AFPM.png?alt=media&#x26;token=9b729f11-c4b3-43db-8671-4fc7cef05a88" alt=""><figcaption></figcaption></figure>
3. Craft Your Prompt:

   * Use the built-in editor to write your prompt.
   * Incorporate variables and conditional logic if needed for dynamic prompt generation. Variables can be created by writing the variable name within doubly curly braces, for e.g, {{var}}

   <figure><img src="https://1811327582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYbIiNdp1QbG4avl7VShw%2Fuploads%2F5jMKcKwKNTammdTYjp2T%2FScreenshot%202024-09-30%20at%206.00.17%E2%80%AFPM.png?alt=media&#x26;token=93201d52-263e-4f88-8de1-3940ab32699e" alt=""><figcaption></figcaption></figure>
4. Test Multiple Model Configurations:

   * Run prompts across different models to explore various configurations.
   * In case you have configured a custom gateway (details [here](https://docs.raga.ai/ragaai-catalyst/concepts/enable-custom-gateway)), the value of the "model" key provided by you should also populate in the model dropdown, and can be used for inferencing here.
   * Fine-tune your approach by experimenting with different settings for optimal performance.

   <figure><img src="https://1811327582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYbIiNdp1QbG4avl7VShw%2Fuploads%2FQ83a95FIDbTh5gTLWuxl%2FScreenshot%202024-09-30%20at%205.58.53%E2%80%AFPM.png?alt=media&#x26;token=375703e2-2ee4-4217-b38e-ee479ee73c70" alt=""><figcaption></figcaption></figure>
5. Evaluate Your Prompt:

* Click the `Run` button to test your prompt in real-time.
* Analyze the generated output to ensure it meets your expectations.

<figure><img src="https://1811327582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYbIiNdp1QbG4avl7VShw%2Fuploads%2FTTVMjPPQ13zGa1wSUH0p%2FScreenshot%202024-09-30%20at%206.00.47%E2%80%AFPM.png?alt=media&#x26;token=e43b0eee-37e2-4766-8eb0-e1ae54e3e8d7" alt=""><figcaption></figcaption></figure>

6. Save and Version Your Prompt:

* Once satisfied with your prompt, click the `Commit` button.
* Enter a commit message describing the changes or purpose of this version.
* This action saves a new version of your prompt in the RagaAI Catalyst system.

<figure><img src="https://1811327582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYbIiNdp1QbG4avl7VShw%2Fuploads%2FhvIPnm0OLttGmZtJ6pXK%2FScreenshot%202024-09-30%20at%206.02.20%E2%80%AFPM.png?alt=media&#x26;token=3758e787-513b-4f78-b1f0-b0c8157eebb4" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Until you commit your prompt, it will not be saved in the playground. You can commit your prompt at any time by clicking the `Commit` button.
{% endhint %}
