Title: 5 Set Constraints
Course: LLM_Prompt_Engineering_For_Developers > Section: Module 46: 5 Set Constraints

5. Set Constraints

Explanation:

Setting limits such as word count, tone, or style can further minimize ambiguity and guide the model toward a more focused response.

Example:

- Simple Prompt: “Write about healthy eating.”
- Constrained Prompt: “In 100 words, summarize the key components of a healthy diet aimed at weight loss, using a formal tone.”

Tip:

By imposing constraints, you can not only obtain clearer responses but also control the length and style of the output.

6. Use Examples