Welcome to the Prompt Engineering Guide! If you are looking to understand how to talk to Artificial Intelligence (AI) effectively, you have arrived at the right place.
Think of this project as a massive, open-source library dedicated entirely to the art and science of "Prompt Engineering."
Imagine you have a super-smart robot assistant (like ChatGPT or Claude). You ask it to "write a story." The robot writes a generic, boring story. You are disappointed.
Now, imagine you have a manual that tells you exactly how to phrase your request: "Write a suspenseful sci-fi story set on Mars, focusing on a detective searching for water." Suddenly, the robot gives you exactly what you wanted.
The Problem: Talking to AI (LLMs) is powerful but tricky. Information on how to do it well is scattered all over the internet.
The Solution: The Prompt Engineering Guide developed by DAIR.AI collects guides, research papers, techniques, and tools into one central repository.
Before we dive into the files, let's clarify three main concepts you will see throughout this tutorial.
Let's look at a concrete example of how to use this project.
Goal: You want to summarize a long legal document, but the AI keeps missing important details. You need a better strategy.
How to use the Guide:
Instead of just pasting the document, the guide teaches you to structure it like this:
Document: [Insert Long Legal Text Here]
Instruction: First, list the key dates mentioned.
Second, identify the parties involved.
Finally, write a summary based on those dates and parties.
By following the guide, the AI now "thinks" step-by-step (dates -> parties -> summary) and provides a highly accurate summary, solving your problem.
While this project looks like a website to the user, under the hood, it is a collection of Markdown (.md or .mdx) files organized in a specific folder structure.
When you visit the Prompt Engineering Guide website, the technical stack reads these text files and turns them into pretty web pages.
Here is a simplified view of what happens when a user wants to read a guide:
To understand how this repository is organized, we look at the file structure. This helps you know where to look to find specific information or where to contribute if you want to help write the guide.
Here is a simplified view of the project's root folder:
root/
โโโ pages/ # The actual content of the guide
โโโ public/ # Images and assets
โโโ theme.config.tsx # Website layout settings
โโโ next.config.js # Technical configuration
โโโ README.md # Introduction file
We will dive deeper into the technical setup in Technical Stack.
The most important part of this project is the content. The guide is split into several logical sections to help you go from beginner to expert.
In the next few chapters, we will explore these specific folders found inside the pages/ directory:
You can learn more about how the introduction is structured in Content Structure - Introduction.
In this chapter, we learned:
You are now ready to explore the contents of the guide!
Next Chapter: Content Structure - Introduction
Generated by Code IQ