Prompt is the key link between humans and large models. It determines how the model understands the task as well as the quality and direction of the generated result. In practical applications, if team members write prompt in different ways, it can cause inconsistent output effects, poor reproducibility, and difficulty in accumulation.
The Prompt Template feature provides a standardized and structured method for designing prompt, enabling teams to regulate interaction methods with large models and ensure output result consistency and controllability. The platform built-in includes various types of prompt templates, covering fields such as text creation, role play, and code programming. Meanwhile, the Prompt Template can also serve as a holistic knowledge asset for the team, making it easy to reuse and iterate, enhancing Intelligent Agent development efficiency and application output quality.
Related Concept Definition
Prompt Template: A preset structured prompt framework containing best practices and optimization strategies for specific scenarios. Developers can use these templates directly or perform customization modifications based on templates. By using the Prompt Template feature, technical barriers in Intelligent Agent development can be significantly reduced, enabling quick creation of high-quality AI applications while underwriting application stability and reliability.
Prompt Template
1. Enter the Prompt Template Page
Go to Tencent Cloud Intelligent Agent Development Platform Console, in the left menu click Prompt Template. 2. Create and Configure a New Template
Click Create Prompt Template to create and save a custom prompt.
Note:
When replaceable variables are involved, input the template text in the prompt section and use {{variable name}} to create variable. Meanwhile, variables filled in the template variable section must be consistent with the template.
3. Filtering and Searching Templates
Click the template library, then filter by All Templates, Official Template, Custom Template, and Favorite in the upper-right corner. Meanwhile, users can also quickly locate the target template by searching the title or description.
4. Copying and Favoriting Templates
Click View to see the prompt template detail. It supports copying the template. Click More to favorite the template.
Note:
Variable replacement: In the template variable settings panel, users can input specific variable values. The template variables will be automatically replaced with user-entered data during copying.
Using Prompt Template Within Application
Click Application Development in the left-side navigation of the platform, select the application for modification, enter the application editing page, and click the prompt component under role-based directives. Click Template, then choose use template/save as template. Use template: Import prompt template library template.
Save as template: Save the current setting as a reusable template.
Select template. You can find the required template in the prompt template library through filtering and keyword search. Click insert prompt to one-click insert the selected prompt template into the prompt text box within the application development UI.
Note:
The prompt template with specialized template variable settings panel allows users to input specific variable values. After entering the values, variables in the copied or one-click inserted prompt will be replaced with user-entered data. For more information, see Variables. If you want to modify and reuse the original prompt template, you can save the prompt as a template.
You can supplement the title, overview, and variables as needed, and select the appropriate Task and Industry tags based on the prompt , making it easy for subsequent retrieval. After completing, submit to store the current prompt as a Custom Template in the template library.