A prompt is the text you type to ask le Chat a question or give it a task.
π Short prompts often work fine, but with a few techniques, you can guide le Chat to produce answers that are clearer, more accurate, and better suited to your needs.
Here are some practical strategies you can try right away.
Assign a role
Sometimes it helps to tell le Chat who it should βbeβ:
You are an expert travel guide. Suggest a 3-day itinerary in Japan for food lovers.
π By assigning le Chat a role, you can receive answers better suited to your needs. If you often use the same role, consider creating a custom assistant with that role.
Be specific
The more detail you give, the better the result. Instead of:
β Summarize this report.
Try:
β Summarize this report in 5 bullet points, focusing on financial performance.
π Le Chat will adapt to your style and format. If you ask for a table, it will organize the information in a table. If you ask for bullet points, it will answer step by step.
Give context
Adding background helps le Chat adapt its answer. For example:
β Write a welcome email for new customers of a small online bookstore.
is more effective than just:
β Write a welcome email.
Ask for a style or audience
You can shape the tone by telling le Chat who itβs writing for:
Explain quantum computing like Iβm 5.
Or:
Write a LinkedIn post about this feature, in a professional but approachable tone.
π Adapting the tone is a great way to break complex topics into simpler terms.
Use examples
By providing examples, you can guide le Chat to produce the output you want. For example:
Write a product description in the same style as this example: "A sleek, modern chair that fits any living room."
π This technique, when used with multiple examples, is called few-shot prompting.
Break it into steps
For complex tasks, you may proceed step by step:
First outline the main steps of the project. Then create a draft timeline.
π Alternatively, you can enable le Chatβs Think mode to have it break down its reasoning step by step before giving the answer.
Ask for a format
Are you a developer? A marketer? You may need a specific format for your answer such as JSON, CSV, etc.
For example, ask:
Write a list of 5 books in JSON format.
And le Chat will provide the answer in the requested format (and even use your data structure if you provide an example).
π These basic techniques will cover most everyday needs. For advanced prompt engineering, like few-shot prompting, structured outputs, or chaining prompts β check out the prompting guide for developers.
Iterate
Your prompt may not work perfectly the first time. Rephrase it, add details, or request a different format until you get the result you want.
Le Chat is never tired and never judgmental, so remember: itβs okay to keep experimenting!