Help Center/ PanguLargeModels/ FAQs/ FAQs Related to Prompt Engineering/ How Do I Ask the Model to Respond in a Specified Style or Format?
Updated on 2025-11-04 GMT+08:00

How Do I Ask the Model to Respond in a Specified Style or Format?

  • To make the model respond in a specific style, provide domain and role information, such as target audiences or specific scenarios, to help the model understand and capture the expected style.
    You can specify the styles of responses in the prompt. For example, if you want the model to provide concise answers, you can add the following information to the prompt:
    Your reply "needs to be concise and refined," "only include the most important information," or "focus on the main conclusion."
  • If you want the model to output in a specific format, you can specify the format requirements in the prompt or use placeholders and template structures to let the model fill in the content. Example:
    Output in the following format:
    Reason: xxx
    Conclusion: xxx