Prompt engineering

Metadata

Published

Apr 9, 2025

Authors

Lee Boonstra

Read time

5 min read

Paper overview

What is prompt engineering

Imagine you have a really smart friend who can help you with almost anything you ask. But sometimes, when you ask your friend a question, they might not understand exactly what you want. Maybe you ask them to tell you a story, and they give you a recipe instead. That’s kind of what happens when we talk to AI models like Gemini, GPT, or Claude. These models are super smart, but they need clear instructions to give us the right answers. That’s where prompt engineering comes in.

Prompt engineering is like learning how to talk to your smart friend in a way that helps them understand exactly what you want. It’s the process of writing prompts—questions or instructions—that guide the AI to give you the best possible answer. Just like how you might adjust how you ask your friend for help, prompt engineering is about tweaking your prompts to get the most useful and accurate responses from the AI.

The authors of this research paper wanted to figure out the best ways to write these prompts. They wanted to understand how different words, structures, and settings affect how the AI responds. They also wanted to share tips and tricks for becoming a "prompting expert," so anyone can get better at asking the AI the right questions.

How did they do the research

The researchers looked at how large language models (LLMs) work. These models are like super-smart computers that can understand and generate text. When you give them a prompt, they try to predict what the next word should be, based on what they’ve learned from the data they were trained on. But the way you write your prompt can make a big difference in how helpful their response is.

The researchers tested different types of prompts and settings to see what worked best. They looked at things like:

  • Output length: How long should the AI’s response be? If you ask for a short answer, the AI might stop after a few words. If you ask for a longer answer, it might keep going until it reaches a limit.
  • Sampling controls: These are settings like temperature, top-K, and top-P. Temperature controls how random the AI’s response is. A low temperature means the AI will stick to the most likely answers, while a high temperature makes it more creative. Top-K and top-P limit the AI to choosing from the most likely next words, which can make the responses more focused or more varied.
  • Prompting techniques: These are different ways to write prompts. For example, you can give the AI examples of what you want (few-shot prompting), or you can tell it to act like an expert (role prompting).

The researchers also looked at how to fix common problems, like when the AI gives unhelpful or confusing answers. They shared tips like keeping prompts simple, using examples, and experimenting with different formats until you get the results you want.

What did they find out

The researchers found that the way you write your prompt can completely change how the AI responds. For example, if you ask the AI to "write a story about a dragon," it might give you a long, creative story. But if you ask it to "write a short, funny story about a dragon who loves pizza," it might give you something more specific and fun.

They also discovered that the settings you use can make a big difference. If you set the temperature too high, the AI might give you weird or random answers. If you set it too low, the AI might stick to the same, predictable responses. The right temperature depends on what you’re asking the AI to do. If you want something creative, a higher temperature might be better. If you want something precise, a lower temperature is probably best.

Another important finding was that the length of the prompt matters. Short prompts can be good for simple questions, but for more complicated tasks, you might need to write a longer prompt that gives the AI more context. For example, if you’re asking the AI to help you plan a vacation, a short prompt like "plan a trip to Paris" might not be enough. You might need to add details like "for a family with two kids" or "on a budget."

The researchers also found that sometimes you need to try different prompts and settings to see what works best. It’s like solving a puzzle—sometimes you have to tweak a few things before you get the result you want.

Why does this research matter

This research is important because it helps us understand how to get the most out of AI models. By learning how to write better prompts and adjust the right settings, we can make the AI more helpful and accurate. This isn’t just for experts—it’s for anyone who uses AI tools, whether it’s for work, school, or just for fun.

The researchers also pointed out that prompt engineering is an iterative process. That means it’s something you do over and over, tweaking and adjusting until you get the results you want. It’s like learning a new skill—once you get the hang of it, you can use it to make the AI do all sorts of cool things.

One of the biggest contributions of this research is that it makes prompt engineering more accessible. You don’t need to be a data scientist or a machine learning engineer to write good prompts. With a little practice and some basic tips, anyone can become a prompting expert.

The researchers also emphasized the importance of experimenting and trying new things. AI models are constantly being updated and improved, so what works today might not work the same way tomorrow. By staying curious and keeping an open mind, we can keep up with the latest developments in AI and make the most of these powerful tools.

In the end, this research shows that the way we talk to AI matters. By learning how to write better prompts and adjust the right settings, we can unlock the full potential of these models and use them to solve real-world problems, create new ideas, and even have a little fun along the way.

About Anara

Anara helps academics and research teams understand, organize, and write scientific documents. We're building tools to help researchers think and work better. Our AI- powered platform enables teams to quickly comprehend complex research, maintain organized knowledge bases, and produce well-cited documents - accelerating the path from discovery to publication. Experience how Anara can transform your research workflow today.

Get your research done faster with Anara.

Anara helps you understand, organize and write scientific documents with AI. Take it for a spin today. No card required.

Get Anara free
test