# Prompt

## **Automated Prompt Generation**

<figure><img src="/files/lW7nkVYpkHI9Sag9gcgW" alt=""><figcaption></figcaption></figure>

* **One-Click Prompt Generation:** Effortlessly create prompts with a single click using proven and validated methodologies.
* **Supported Techniques:**
  * **Chain-of-Thought Reasoning:** Generate prompts that encourage logical, step-by-step thinking to improve task accuracy.
  * **Few-Shot Sentiment Classification:** Design prompts with a few labeled examples to guide the model for sentiment analysis tasks.
  * **Additional Established Approaches:** Leverage other widely-recognized prompt engineering techniques (complete list available [here](https://www.promptingguide.ai/)).

## **Automated Prompt Optimization**

<figure><img src="/files/sxX2vOgBjo1BSAS1MZDQ" alt=""><figcaption></figcaption></figure>

* **Describe the Task:** Clearly state the task or objective you aim to optimize for.
* **Provide Prompt Examples and Assign Scores:** Include several example prompts and assign a score to each to establish a baseline for optimization.
* **Define Generative Settings:**
  * **Max Steps:** Specify the maximum number of iterations the optimizer should perform.
  * **Prompts per Step:** Indicate the number of prompts to be generated or evaluated in each iteration.
  * **Top K:** Select the top *K* prompts to serve as the baseline for the next iteration.
* **Choose Your Scoring Agent:**
  * **Supervised Mode:** Select a golden dataset to optimize prompt performance. Ensure the dataset includes at least two columns: *inputs* and *references* that represent your ideal output.
  * **Unsupervised Mode:** Provide a text description that clearly defines the goal or desired outcome for the prompts.

## **Seamless Deployment**

* Deploy your chosen prompt version directly to production

These features are designed to enhance your prompt engineering workflow, from initial creation to final deployment.


---

# 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.ownlayer.com/iterate/prompt.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.
