DEV Community

Cover image for 7 Steps To Become A Prompt Engineer
Lucas Lima do Nascimento for Latitude

Posted on • Originally published at blog.latitude.so

7 Steps To Become A Prompt Engineer

Introduction

Hello there, dear reader! If you’re looking for an article where you’ll actually find a DOABLE guide for getting somewhere with prompt engineering, you’ve come to the right place!

My name is Lucas and I’ve been a software engineer for over 5 years now.

My journey into the world of software and AI began during my university studies at UFU (Universidade Federal de Uberlândia), where I pursued a Bachelor's Degree in Computer Engineering and actually took part in a Robotics Team called Roboforge — you should probably know that robotics and AI are kind of close fields too — where we actually got first place while competing in one of Latin America’s biggest competition: LARC (which stands for Latin America Robotics Competition, not that creative, I have to say).

Literally me, programming at the competition

Literally me, programming at the competition

Some really awesome robots that were playing soccer (fully autonomous)

Some really awesome robots that were playing soccer there (fully autonomous)

 

And in this guide, I’ll give my best shot at taking you step-by-step through what you should learn to get a position as a prompt engineer!

 

Step 1: Understanding the Basics of LLMs

Before diving into prompt engineering in particular, it's important to have a solid foundation in AI. You know it already — first, you have to learn to walk before you learn to run.

So, explore a little bit and understand how LLMs work. You don’t have to know everything, though, but, try to answer at least 3 questions:

  • What the hell is an LLM?
  • What types of LLM exist out there?
  • How do I build an LLM? (You don’t have to build one! Just learn the basics on how it’s done)

Answering these 3 questions above, you’ll probably find yourself with a bunch of new terms added to your vocabulary and, even more than that, with a bunch of new knowledge added to your toolkit.

It also can be motivating to actually see the requirements of a few prompt engineering positions and Latitude has created a platform for you to see those positions easily. You can check that out here:

Image description
⭐️ Prompt Engineering Jobs by Latitude ⭐️

 

Step 2: Learn by Doing: Craft a few prompts

https://media2.giphy.com/media/Lny6Rw04nsOOc/giphy.gif?cid=7941fdc6i5g02pksdhbmzgixxrd3gupxpvcqzv70dgx7xddd&ep=v1_gifs_search&rid=giphy.gif&ct=g

Crafting prompts is an iterative process that involves trial and error. Start by experimenting with simple prompts for personal projects and use cases while gradually moving on to more complex ones. This hands-on approach — which we usually call project-based learning, a really interesting way to learn, which usually leads to ~23% increase in student achievement — will help you understand how AI models interpret and respond to different inputs

No ideas on how to start prompting? No worries, I’ve got you covered! Let’s check a few examples:

Hop on your favorite LLM (and if you don’t have one, feel free to check our comparison guide) and start with a few basic prompts:

Long article text here .............
....................................

Summarize the above article for me.
Enter fullscreen mode Exit fullscreen mode

Or, another useful example:

Interesting topic title you found somewhere

Translate the above topic title to French.
Enter fullscreen mode Exit fullscreen mode

Both of those examples can show how simple and powerful prompt engineering can really be! Feel free to try those out or any others that might suit you.

 

Step 3: Learn Some Programming Basics

https://media1.giphy.com/media/scZPhLqaVOM1qG4lT9/giphy.gif?cid=7941fdc62sk1u4dv8b8kv77toibcfqsi0hskna3vpwcry9py&ep=v1_gifs_search&rid=giphy.gif&ct=g

Programming is a critical skill for any AI professional. To become a proficient prompt engineer, you should learn at least the basics of one programming language such as Python or R, that are really relevant to the field.

Besides that, there are numerous benefits that coding skills will give you: from implementing and testing your prompts programmatically to manipulating data effectively. There are numerous online resources and courses available to help you get started with programming (e.g. Python Roadmap — an awesome roadmap to guide you through your journey, or Python Project Ideas for you to learn by doing).

 

Step 4: Applying prompt engineering to real-world examples

https://media4.giphy.com/media/T1A5qkSgZ2p24aOWQc/giphy.gif?cid=7941fdc6lq89yghhfrxjcj2zhr6huxeim93wvgxmq7monsf0&ep=v1_gifs_search&rid=giphy.gif&ct=g

Awesome, so, now, you already know how to create basic prompts and how to code a little. A really good next step would probably be to start checking some real-world scenarios and how they are being handled while retaining information about the users too!

Let’s check one example here as well:

  • Start by imaging a scenario where the company you’re working for has an e-commerce application.
  • They’re implementing a new search mechanism with AI in order that users can search with natural language
  • The AI here should return a JSON with the characteristics the user asked for

If you’re running an e-commerce for clothing, you’ll probably want to search for relevant information to that sector — like the age, in years. For example:

# If the user says:
# Birthday gift for my 18 months old daughter

# Maybe a good return would be:
{
  "gender": "female",
  "occasion": "birthday",
  "age_years": 1.5
}
Enter fullscreen mode Exit fullscreen mode

Now, let’s run this same scenario working for an e-commerce for sports clothing. Now, searching for the same elements might not be adequate.

# If the user says:
# Birthday gift for my 10 years old daughter, she loves skateboarding

# Maybe a better return would be:
{
  "gender": "female",
  "occasion": "birthday",
  "sport_suggestion": "skate",
  "age_years": 10
}
Enter fullscreen mode Exit fullscreen mode

While creating software, the user is always the most important role in the play — from e-commerces to emails, to study companions and code assistants. He is the one who actually pays you, so, always remember to keep that in mind while studying other real-world scenarios.

 

Step 5: Learn where things go wrong

https://media3.giphy.com/media/QMHoU66sBXqqLqYvGO/giphy.gif?cid=7941fdc6brnz477ztjtc3m8w1a3qrxkkso9x9w4wc5pfdt88&ep=v1_gifs_search&rid=giphy.gif&ct=g

If you got here, you probably faced a few problems here and there while playing with prompting. From math to sources, to hallucination, there are literally tons of different pitfalls you can end up into if you’re not carefully creating your prompt.

This step here is actually learned by failing, and then, learning (based on how inaccurate the result was) what you can do differently to improve your prompt.

Want source citations and your LLM is generating people and articles on the fly? Try RAG (Retrieval Augmented Generation — that you can learn more about here — and LLMs with access to the internet! They will surely be more precise.

Some really bizarre math is showing up mid-calculation? Honestly, LLMs kind of suck at math (which I, personally, find ironically funny). Maybe you can try out some different LLMs — with more focus on the math side — or a different approach to solving the same problem, running things step-by-step or skipping calculations with LLMs and using general programming to solve that instead.

 

Step 6: Get Some Fine-Tuning Skills and Improve Reliability

https://media1.giphy.com/media/3oKHWCVJHorZfXrUTm/giphy.gif?cid=7941fdc6njrmil1gz9mvzkf30adm4fo6xwbye7f41gji7742&ep=v1_gifs_search&rid=giphy.gif&ct=g

Ok. At this point, you probably know your way around prompting for most of the scenarios you’ll find out there. Unfortunately, as you’ll eventually realize, LLMs tend to be extremely chaotic when not fine-tuned properly, creating varying degrees of “creativity” in your responses.

This could not be a problem, but, generally, it is. Whenever you’re working with responses, we generally want the AI to have a limited range of variance and bias so that we can constrain our answers between the confinement of accepted answers.

If you’re in this step, I recommend you take a look at how LLMs are actually configured, check out temperature and Top P sampling, and check for yourself how changing those values and percentages can alter the variance obtained for your prompts.

Ready to build, test, and deploy some of those prompts? A really cool platform for this is Latitude’s new product, which is currently in early access! Whenever it’s released, I’m sure you’ll find a bunch of cool stuff there that will actually help you in your journey, so check it out!

https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yfa1j029u6zv64gydhci.png

⭐️ Enter the Waitlist! ⭐️

 

Step 7: Showcase your work and Start Applying

https://media0.giphy.com/media/t8QNJ2LngI5OJQN3FP/giphy.gif?cid=7941fdc65kjgm7mma80ge5wcotgj6yh3untmlnu9ze1s9cp5&ep=v1_gifs_search&rid=giphy.gif&ct=g

Hands-on experience is invaluable in the field of prompt engineering and hey, if you’re following along, I’m sure you have tons of that, so, it’s just the time to showcase it to the world!

Don’t forget to make your work tangible to HR persons! They are the ones recruiting and looking for people, so, show both scenarios: technical for the technical people and non-technical for the non-technical people — this means basically: including a variety of prompts and the corresponding AI responses to demonstrate your expertise, translating that response to non-technical terms when needed.

Once you have a solid way to showcase things -- being that from just posts or a portfolio, start applying for prompt engineering positions and it’s just a matter of waiting until you find an awesome place to work.

Kind of lost on where to apply? Latitude’s come to the rescue again — yes, they truly built a whole platform for you to check prompt engineering jobs out, so please, take a look:
⭐️ Prompt Engineering Jobs by Latitude ⭐️

Conclusion

https://media4.giphy.com/media/lD76yTC5zxZPG/giphy.gif?cid=7941fdc6x0r5nlmgaz9pvradu7dqz9yfck7uip2x4t5ybzgm&ep=v1_gifs_search&rid=giphy.gif&ct=g

Hey! I’m glad that you got here!

Becoming an engineer is a rewarding journey that involves mastering fundamentals, honing your skills, understanding user needs, and crafting effective products — and this goes for any engineering, from software to prompting.

If you follow those steps, you'll be REALLY well-equipped to enter this exciting field and honestly, we'd love to hear your thoughts and experiences as you embark on this path. Feel free to share your insights in the comments below and don't forget to check out Latitude's new product to further enhance your skills!

Top comments (6)

Collapse
 
bura_chuhadar_41dd119e0e3 profile image
Bura Chuhadar

I don't understand why these kinds of articles popping. The prompt engineer term started with a person doing a shitpost about where it is putting prompt engineer as a job for companies. It is like writing an article how to use Google and using the word engineering. Can we please stop using prompt engineering as a term. It devalues the word engineer.

Collapse
 
john_phillips profile image
John

I agree with what you said.

Collapse
 
phpartisanmakeweeb profile image
phpArtisanMakeWeeb

"Prompt Engineer"? Lmao, that's sad. Imagine spending 2 hours learning how to write an AI prompt and calling yourself an "engineer". That's disrespectful towards real engineers and programmers.

Collapse
 
angeldevildev profile image
Angelo Broggian

I don't think that it should be called Prompt Engineer....

Collapse
 
kiran_fatima profile image
Kiran Fatima

Everyone is already a prompt engineer now. 😏

Collapse
 
john_phillips profile image
John

Haha, 'act like a nutritionist, look at my data, and...' Now you can consider me either a prompt engineer or a nutritionist.