Prompting 101
The following best practices offer guidance on effectively instructing AI models like ChatGPT. They cover various aspects, from model selection to formatting, specificity, and code generation. Following these practices ensures clear and successful interactions with these AI systems.
Prompting Best Practices
- Be Clear and Specific: Articulate your needs clearly. Include key details for specific information requests. Vague or broad prompts can lead to generalized responses.
- Use Concise Language: Balance detail with conciseness. Avoid overly verbose prompts to prevent confusion.
- Provide Context: Include relevant background information for context-dependent questions or requests.
- Structure Your Prompt Logically: Organize prompts logically, especially when asking multiple questions.
- Specify the Desired Format: Indicate if you need responses in a specific format (list, summary, detailed explanation, guide, etc.).
- Use Correct and Precise Language: Employ correct grammar and terminology, particularly for technical or specialized topics.
- Set the Tone: Indicate the desired tone (professional, casual, humorous, etc.) for the response.
- Be Ethical and Responsible: Avoid prompts leading to harmful, biased, or unethical content.
- Iterative Approach: Refine your prompt based on initial responses for more precise information.
- Understand the Model’s Limitations: Acknowledge LLMs' capabilities and limitations for various tasks.
- Include Examples When Necessary: Provide examples or describe the required structure for specific styles or formats.
- Utilize Keywords Wisely: Include relevant keywords for quicker subject matter recognition, especially for niche topics.
- Differentiating Text with Special Characters:
- Quotation Marks (""): Use quotation marks to highlight specific phrases, terms, or direct questions. This can signal the LLM to focus on the quoted text.
- Parentheses (): Employ parentheses to add supplementary information or clarification without disrupting the main flow of the prompt.
- Brackets []: Brackets are useful for inserting editorial notes or additional context that can aid in the LLM’s understanding of the prompt.
- Hyphens and Dashes –, —: Use hyphens for compound words and dashes for adding emphasis or an explanatory note within a sentence.
By incorporating these best practices, including the effective use of special characters, you can enhance the clarity and specificity of your prompts, leading to more accurate and relevant responses from LLMs.
For more information, visit OpenAI’s articles here:
Open AI has been very helpful in producing supporting educational information to help users better use and understand their products, such as this image they released around prompting best practices
See Image Here