Poging GOUD - Vrij

The Art of Prompt Engineering: Getting the Right Results with the Right Prompts

Open Source For You

|

September 2025

Delve into the art of prompt engineering, exploring various types of prompts and discovering the do's and don'ts of effective prompting.

- By: Dr Magesh Kasthuri and Dr Anand Nayyar

The Art of Prompt Engineering: Getting the Right Results with the Right Prompts

Prompt engineering is a critical aspect of working with artificial intelligence models, particularly in the realm of natural language processing.

Crafting the right prompts can significantly influence the quality and accuracy of the results generated by AI models.

Let's begin by understanding the different types of prompts that can be used for effective prompt engineering.

Zero-shot prompting

Zero-shot prompting involves giving the model a task without any prior examples. The model must rely solely on its training data to generate a response and is given a task without any examples. It relies entirely on its pre-trained knowledge to respond.

Example: Travel planner

Prompt: “Plan a 5-day itinerary for a solo traveller visiting Kyoto, Japan.”

Here, the model is expected to understand the task and generate a travel plan without being shown any sample itineraries. It draws on its general knowledge of travel planning and Kyoto's attractions.

Zero-shot prompting is useful when you seek a straightforward answer or when the task is simple and well within the model's training domain.

One-shot prompting

One-shot prompting provides the model with a single example to guide its response. This helps the model understand the task better and produce more accurate results.

Example: Document search

Prompt: “If I ask for a document summary, respond like this: 'Title: AI in Healthcare. Summary: This document explores the integration of AI technologies in clinical diagnostics and patient care.' Now, summarise the document titled 'Blockchain in Finance'.”

This model uses one example to understand the format and tone expected in the summary. One-shot prompting is beneficial for slightly more complex tasks where a single example can significantly enhance the model’s performance.

Few-shot prompting

MEER VERHALEN VAN Open Source For You

Open Source For You

Open Source For You

Docker: Powering the Next Wave of Software Development

In a world where organisations are transforming their infrastructure to house AI-based solutions, Docker and Kubernetes are proving to be powerhouses for developing secure and scalable software that is delivered with speed.

time to read

6 mins

September 2025

Open Source For You

Open Source For You

DevSecOps: Building Secure Software with Open Source Tools

Security needs to be embedded in the design of all modern software products. This is where DevSecOps and its toolchain play a significant role. Find out how they help, and what are the best practices for implementing this toolchain.

time to read

16 mins

September 2025

Open Source For You

Open Source For You

The Network Stack: Helping Linux Systems Communicate

The socket stack, the protocol stack and the network device drivers in the latest Linux versions offer great support for networking. This is how they work...

time to read

3 mins

September 2025

Open Source For You

Open Source For You

Hugging Face introduces an open source, no-code toolkit

Hugging Face has launched AI Sheets, an open source, no-code toolkit that lets users work with datasets using thousands of AI models.

time to read

1 min

September 2025

Open Source For You

Open Source For You

Visualising Data with Open Source Tools

Open source offers a varied range of tools to help interpret data better by visualising it. These tools offer customisation, cost-effectiveness, and community-backed development.

time to read

7 mins

September 2025

Open Source For You

Open Source For You

AI-Driven Data Centre Builder: An Emerging Reality

The Al-driven data centre builder leverages AI to optimise network architecture and host design, helping organisations build data centres that are intelligent, adaptive, and efficient.

time to read

3 mins

September 2025

Open Source For You

Open Source For You

ChatOps and LLMOps: Integrating AI Chatbots with DevOps and LLMs

Chatbots are becoming increasingly intelligent, thanks to technologies like ChatOps and LLMOps that help to integrate them with DevOps and LLMS.

time to read

2 mins

September 2025

Open Source For You

Detecting Anomalies in Operational Data with OpenSearch

OpenSearch offers a robust and affordable anomaly detection solution. This fully open source and extensible platform incorporates machine learning capabilities straight into the operational data pipeline.

time to read

3 mins

September 2025

Open Source For You

Open Source For You

Why Small Businesses Need an AI and Data Governance Policy

Small businesses tend to think an AI and data governance policy is unnecessary and unimportant for their scale of work. They couldn't be more wrong...

time to read

3 mins

September 2025

Open Source For You

Open Source For You

The Art of Prompt Engineering: Getting the Right Results with the Right Prompts

Delve into the art of prompt engineering, exploring various types of prompts and discovering the do's and don'ts of effective prompting.

time to read

7 mins

September 2025

Listen

Translate

Share

-
+

Change font size