8+1 tips for better prompting that will help you master AI

Remember the early days of search engines? There was an art to typing in the right words (and the operators in between) so you would find what you needed. It’s similar to generative AI.

In the near future, there will be a huge difference in the job market between those who are or are not proficient with AI tools. Today, generative AI models can create anything from poetry through any kind of text to pictures or a piece of computer code at your command. But to get the desired output from these AI tools as efficiently as possible, you need to create the right input – i.e., a prompt.

Prompts are what drives the quality of the AI model’s output. The structure, manner, and content of the input can be important, as well as its tone and style. Good prompts are what help AI help you meaningfully with your work.

“Writing good prompts is the key to unlocking the power and potential of generative AI,” said Jennifer Marsman, principal engineer in Microsoft’s Office of the Chief Technology Officer. 

Over time, both we as users and the machine learning models will understand each other better.”

As generative AI tools become increasingly popular for work and play, knowing how to get the most out of them is helpful. Crafting the right prompt is essential, but it can be a give-and-take. Here are a few of Marsman’s top tips and tricks for writing effective prompts.

1. Be specific

You had a stunning image in your mind, but when you told Bing Image Creator to make it real, the result wasn’t at all what you imagined. What gives?

It’s essential to provide as much detail as possible when writing prompts, especially when it comes to images, Marsman said. One key element she likes to provide is style. Tell the model to produce the image as a pencil sketch, for example, or an oil painting, or a cartoon. Point of view and lighting are also attributes to consider. In an image of a baseball stadium, are you looking down from the stands, from the field, or a bird ’ s-eye view high above? 

In the “underwater palace” example, Marsman added the phrase “high-quality digital art” to her prompt. Without it, the image wouldn’t have had the same level of detail, she said.

Image courtesy of Microsoft

Include details like style, point of view, and lighting when writing prompts to generate images.

Marsman was pleased with the output. But don’t be afraid to iterate, she added. Flipping around the order of words in the prompt will bring different elements to the foreground. If she had wanted to add mermaids as the focus, for example, she could have listed “mermaids” first.

2. Use the right model for the right job

If you’re looking for stories, poems, jokes, or other imaginative answers, use the “more creative” mode of Bing Chat.

But if you’re looking for just the facts, use the “more precise” mode. This will yield succinct and fact-based responses, Marsman said. “Balanced” mode is the default and works well for most scenarios, she added.

3. Fact-check

Bing combines powerful AI models with its immense search index for results that are current, cited, and conversational. But one downside of generative AI models is that they can occasionally generate plausible-sounding answers that are, in fact, wrong. Here are a few tips to help make sure that reasonable-sounding output is indeed true:

  • Use the “more precise” conversation style in Bing Chat. This model tends to do better at grounding its responses in the source material from the web. 
  • Read the references carefully. You can click on the citations and verify that the model correctly interpreted the text.  
  • Tell the model to summarize specific information rather than asking an open-ended question. For example, instead of asking, “What is the theory of general relativity,” you could frame your prompt as “summarize the key concepts of general relativity in one paragraph.” This can help guide the model to generate more accurate and relevant responses, Marsman said. 

4. Tailor results through different points of view 

You can get better answers from a chatbot by telling it how you want it to provide answers. For example, if you want a simple explanation of quantum mechanics, you can ask AI-powered Bing to “explain it to me like I’m in 8th grade.” But if you’re savvy with the jargon and nitty-gritty of the topic, you can ask it to act like a college professor or a technical trainer. This way, you can adjust the Bing Chat’s voice and level of understanding to suit your needs.

You can adjust a Bing Chat’s voice and level of understanding to suit your needs.

 

5. When you want to change the conversation, use the “New Topic” button   

If you want to ask follow-up questions on the same topic in Bing Chat, it’s best to keep the current conversation going. When you want to switch topics, hit the “New topic” button. This gives the model a clean slate — it won’t get confused and merge unrelated topics.

6. You can specify the length 

Do you want a succinct answer or a long tale? You can specify the length — two sentences, for example, or two paragraphs — and guide the model accordingly. And if the chatbot stops before you’re satisfied, you can always prompt it to “go on.”

7. Don’t forget formatting

AI-powered Bing can present data and information from multiple sources across the web and in a variety of different ways to improve understanding. For example, tables and outlines can help users see information in a structured format. Similarly, diagrams and flow charts can help users visualize complex data, making it easier to understand and interpret.

AI-powered Bing can present data and information from multiple sources and in a variety of different ways. Image courtesy of Microsoft.

Image courtesy of Microsoft

8. Leverage your Copilot to write better code

Remember that the model is trained with many programming languages, so asking simply to accomplish a coding task could result in any number of programming languages being used. Specify the programming language you want. You should also include any other relevant contextual information, such as libraries, APIs, or frameworks you are using. You can also mention context from already-written code, like “the user’s input is stored in a variable called x.”

Don’t forget to always run and test your code!

9. If you don’t succeed, prompt again

It’s important to remember that prompting AI to generate responses is not an exact science and that iteration is key, Marsman said. The beauty of creating prompts is that you can try multiple approaches to see what works best. Don’t be afraid to experiment with different lengths, tones, and voices. If the initial results aren’t what you’re looking for, try tweaking your prompt and running it again. With practice, you’ll get better at guiding the model to the results you want.

 


Would you like to start using tools like Microsoft Copilot for Microsoft 365 in an efficient and controlled way? Contact us and we’ll be happy to help you with tool selection, adoption, and effective licensing. You can start by pressing the Request button in the right corner.


Related links:

Read more: Prompts for communicators using the new AI-powered Bing

Simple prompts t try on Bing: Make a meal, plan a vacation, prepare for a new pet, and more (microsoft.com)

Learn more: ExplAIning AI: The fundamentals and the frontiers

 

Based on Jake Siegel’s article The art of the prompt: How to get the best out of generative AI

Our customers

Contact us