All Products
Search
Document Center

Alibaba Cloud Model Studio:Prompt automatic optimization

Last Updated:Nov 27, 2024

Alibaba Cloud Model Studio provides the prompt automatic optimization feature that can make the models more accurate and reliable when performing specific tasks.

Procedure

  1. Log on to the Alibaba Cloud Model Studio console.

  2. In the left-side navigation pane, choose Application Component > Prompt Engineering.

  3. On the Prompt Automatic Optimization tab, enter your prompt in the Original Prompt field.

  4. Click Optimize. The result is displayed in the Optimized Prompt field.

    Important

    The automatic optimization process calls a model and consumes a specific number of tokens. Because the inputs and outputs are unpredictable, the system cannot estimate the exact number of tokens that are consumed. The actual number is displayed in the lower-right corner of the field.

  5. Click Copy to copy the optimized prompt or click Save as Template to save the optimized prompt as a template.

    To view the template that you saved, click Prompt Template > Custom Template. For more information about template testing, see Prompt templates.

    image