# Prompt

## **Automated Prompt Generation**

<figure><img src="https://2399115798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWsdxCCToJ5K2nk2ZZvqc%2Fuploads%2Fn5H9J4DVi5BqciTP9X2u%2FPrompt%20auto%20generation.gif?alt=media&#x26;token=bf0515a2-44c9-4066-91e6-7aedbf3c72c2" 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="https://2399115798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWsdxCCToJ5K2nk2ZZvqc%2Fuploads%2Fqc6mLYscaSWPIllk6fDG%2FPromptOptimizer.gif?alt=media&#x26;token=97acabaa-25b8-4216-b35e-49278f6ad3a4" 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.
