# 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="/files/kL3h5JangWn9VExBzhTX" 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="/files/LwVksGZDTwPMygtpAXj7" 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](/ragaai-catalyst/concepts/enable-custom-gateway.md)), 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="/files/WJD7qCGHfWou15oKbUd3" 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="/files/k3JvjTCpOWN3V84zlEui" 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="/files/Z9lEOVmzAl4QdwqVpXPO" 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.raga.ai/ragaai-catalyst/prompt-playground/single-prompt-playground.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
