By providing specific details in the prompt, we can help the model to focus on the relevant aspects of the task and improve the accuracy of its results.
Tips and tricks for writing good prompts#
Here are some tips and tricks to help you write great prompts:
Use natural language: Avoid overly formal or technical language. Use relevant keywords to help the LLM understand your query.
Be creative and experiment: Don’t be afraid to experiment with different prompt formats and styles. Assign the LLM a specific role or persona to guide its response.
Break down complex prompts: If your prompt is complex, break it into smaller, more manageable parts. Also, provide intermediate steps or questions to guide the LLM through the process.
Provide examples: Give the LLM examples of what you’re looking for to help it understand your intent.
Iterate and refine: Getting the desired response may take a few iterations. Analyze the LLM’s output to identify areas for improvement in your prompts.
Essential prompt keywords#
Essential prompt keywords are specific words or phrases that convey the intended meaning and guide the natural language processing model toward generating the desired output. Including relevant keywords in prompts ensures the model understands the task or objective and produces accurate results.
For example, consider a prompt like “Summarize the main points of a news article about climate change.” In this prompt, the essential keywords are “summarize,” “news article,” and “climate change.” These keywords guide the model on what task to perform, what type of input data to expect, and what topic to focus on.
Other examples of essential prompt keywords include verbs that specify the desired action, such as “generate,” “classify,” or “translate,” as well as specific nouns that describe the input data, such as “image,” “text,” or “audio.” Including essential prompt keywords helps to ensure that the natural language processing model produces accurate and relevant results that meet the user's needs. Here's the list you need to get familiar with: