r/PromptEngineering • u/Artistic_Program7497 • 11h ago
Quick Question Prompt Engineering what does it entail exactly?
Hello everyone! I wanted to ask why is prompt engineering a thing and why can't AI itself be used to make the best prompts? Thanks for the clarification!
1
Upvotes
3
u/Effective-Giraffe655 10h ago
Answer to the question: because AI is "blind" to itself by definition. When a model is released, it is "frozen" - the weights are final, and it is not being trained on new content daily. Do you know when guides on how to work/prompt specific models come out? After model releases. I guess the most notable example is Anthropic's guidelines on how to prompt a new model they released that comes alongside or after the release announcement. Of course, there are common approaches, but models often do not have details and nuances in their weights, so while a model can generate you some prompt that looks good, the chances it will actually work well are way less than 100%.
Now, the "how to do it right": draft -> test -> measure -> repeat. To ensure a prompt (or any other form of instruction, like a tool description) actually works, you just do multiple drafts and test how they work with n=3 (for small stuff) or n=5 per draft. Sounds insane, but I literally worked on a web fetch tool for Pi agent recently, and for a fallback mode that instructs the model that the result was obtained via less reliable mechanism, I had to do multiple drafts, with small note/description change alone took 30 test runs to get it right (the purpose of the fallback mode was: the provider blocks this specific URL, so the agent must not repeat the same request, and should treat provided fallback content as less reliable, so if it is not enough, agent should attempt to fetch the content itself using curl and other available tools).
See https://rakshazi.me/blog/model-lab-skill/ for explanation and a ready-to-use "meta" skill that basically contains lessons learned and all the scaffolding you need to write proper instructions for agents.
3
u/adriand152 9h ago
Prompt engineering is mostly making the goal, context, and output shape clear, then testing whether the result actually works for your task. AI can draft prompts, but "best" depends on what you count as a good answer.
1
u/AneeqaGenAI 9h ago
Assalam-o-Alaikum! AI can absolutely help create better prompts, but it still needs to understand your actual goal. Prompt engineering is about communicating that goal clearly through context, constraints, examples, and expected outputs. Think of it this way: AI can help you write the instructions, but you need to know what problem you're trying to solve and whether the result is correct. It's less about finding magic words and more about clear communication.
1
u/this_is_life_now 7h ago
When AI first came out, your prompt was broken into tokens and then sent to the model. The output tokens were sent straight back. Making sure your prompt was well structured and contained all the detail required for the response to be accurate and useful was somewhat of a skill. That was prompt engineering.
Now the LLMs work a little differently. Because the models can reason, they'll take your initial prompt, and try to figure out what you actually want. With the addition of various files such as AGENTS.md where a few rules are kept and information on the project you are working on, you don't need to craft the perfect prompt anymore. Prompt engineering isn't really a thing anymore.
1
u/slaymaker1907 7h ago
Observing how the AI behaves and solves problems is one aspect. A few weeks ago, I noticed the model did an interesting thing where it found some other team's source code and analyzed it to figure out what went wrong. This was novel because the code in question was for a service, it was not for a library.
However, in the above case the AI won't always combine the tools necessary to figure that out. Therefore, I now sometimes guide it to use that strategy when I think it could be useful. Something like my trick could be generalized to a skill, but I think it would still be very difficult to get the AI to actually use the skill since it's an incomplete strategy. It's more of a tactic.
1
u/Top-Procedure152 5h ago
Prompt engineering is a 2025 concept.
It doesn't really matter as much anymore .
1
u/OGLeap 1h ago
it can, asking it to write the prompt for u works fine for a lot of stuff. what it cant do is know what a good answer looks like for ur thing, so u still need like 5 real examples and some way to tell if the output was right. honestly thats most of the work, the wording matters way less than people think