Prøve GULL - Gratis
Efficient Prompt Engineering: Getting the Right Answers
Open Source For You
|November 2024
OpenAl's GPT-3 and GPT-4 are powerful tools that can generate human-like text, answer questions, and provide insights. However, the quality of these outputs depends heavily on how you frame the input, or prompt. Efficient prompt engineering ensures you get the right answers by designing inputs that guide the AI towards relevant, clear, and useful responses. Let's find out how to craft effective prompts with examples.
-
Prompt engineering is the art of creating prompts that guide AI models towards specific and desired outcomes. The way a question is framed can significantly affect the AI’s response. By carefully structuring and refining your prompt, you can minimise ambiguity and maximise relevance. Here’s an example.
Simple prompt: “Explain climate change.”
Engineered prompt: “Explain how human activities contribute to climate change, specifically focusing on carbon emissions and deforestation.”
In the engineered prompt, we’ve added more details and specific topics for the AI to cover, resulting in a more focused answer.
How the normal prompt works and its difficulties
When people first interact with AI models, they tend to use simple, broad prompts. While these can produce useful results, they often lead to overly general or vague answers. Let’s take an example.
Normal prompt: “Tell me about renewable energy.” The response to this prompt may include a lot of unnecessary information, or it may not focus on the aspect of renewable energy you’re interested in.
The key challenge here is that broad prompts lead to responses that may be too generic or unfocused. By adding specificity and structure, you can avoid this.
Engineered prompt: “Explain the environmental benefits of renewable energy, with examples of how wind and solar power reduce carbon emissions.”
Prepare your input
To create an effective prompt, the first step is to prepare your input. This involves clearly defining what you want the AI to focus on and adding any necessary context to narrow down the response. Here’s an example.
Before prompt engineering: “What is artificial intelligence?”
Denne historien er fra November 2024-utgaven av Open Source For You.
Abonner på Magzter GOLD for å få tilgang til tusenvis av kuraterte premiumhistorier og over 9000 magasiner og aviser.
Allerede abonnent? Logg på
FLERE HISTORIER FRA Open Source For You
Open Source For You
Sending IoT Sensor Data to Public or Private Servers
This IoT system shows a simple and effective way to send sensor data using an ESP8266 microchip.
3 mins
March 2026
Open Source For You
Popular FOSS Tools for LLM Observability, Monitoring and Evaluation
This overview of popular tools for monitoring large language models also sheds light on how LLM-as-a-judge enhances their performance.
2 mins
March 2026
Open Source For You
Data Deduplication Done the Right Way
Deduplication helps to save space on Linux-based storage systems. Choose the right platform and check whether it meets your goals.
6 mins
March 2026
Open Source For You
The Relevance of Rubber Duck Debugging in the Age of AI
Discover why rubber duck debugging is a powerful process today. There's also a step-by-step guide on how to use it in the age of artificial intelligence.
4 mins
March 2026
Open Source For You
GitHub weighs turning off pull requests as AĬ slop floods projects
GitHub has formally acknowledged that AI-generated 'slop' is overwhelming open source projects, forcing maintainers to sift through poor pull requests (PRS), abandoned submissions and guideline violations - and is now considering restricting or even disabling pull requests, the core mechanism of open collaboration.
1 min
March 2026
Open Source For You
Global banks are deploying Ethereum's Layer-2 stack
Banks are standardising on Ethereum's open source stack as production financial infrastructure, shifting from experimental pilots and proprietary blockchains to live Layer-2 networks for tokenised deposits, interbank payments, and cross-border settlement.
1 min
March 2026
Open Source For You
OpenClaw's creator joins OpenAl
In a move that reinforces its commitment to open development rather than acquisition, OpenAI has brought Peter Steinberger, founder of OpenClaw, into the company while placing the popular AI agent under a foundation structure to ensure it remains open source.
1 min
March 2026
Open Source For You
LibreOffice 26.2 comes with native Markdown support
LibreOffice 26.2 has been released by The Document Foundation, strengthening its position as a fully free and open source office suite for Windows, macOS, and Linux, with support for more than 120 languages.
1 min
March 2026
Open Source For You
Indian government mandates labelling of Al-generated content and quicker deletion of illegal deepfakes
India has introduced sweeping AI content rules that immediately place pressure on social platforms and open source AI ecosystems to label, trace and rapidly remove AI Open ource synthetic media at scale.
1 min
March 2026
Open Source For You
I2C and I3C: How Modern Devices Communicate
I3C and I2C are both two-wire communication protocols that help exchange data between multiple devices. While I3C preserves the simplicity of I2C, it introduces new features suited for today's sensor-rich devices.
8 mins
March 2026
Listen
Translate
Change font size
