How I Won Singapore’s GPT-4 Prompt Engineering Competition | by Sheila Teo | Dec, 2023


A deep dive into the strategies and takeaways I learned along the way

Celebrating a milestone — The real win was the priceless learning experience!

Last month, I had the incredible honor of winning Singapore’s first ever GPT-4 Prompt Engineering competition, which brought together over 400 prompt-ly brilliant participants, organised by the Government Technology Agency of Singapore (GovTech).

Prompt engineering is a discipline that blends both art and science — it is as much technical understanding as it is of creativity and strategic thinking. This article is a compilation of the prompt engineering strategies and insights that I learned along the way, that push any LLM to do exactly what you need and more!

This article covers the following, with 🟢 referring to beginner-friendly prompting techniques while 🟠 refers to advanced strategies:

1. [🟢] Structuring prompts using the CO-STAR framework

2. [🟢] Sectioning prompts using delimiters

3. [🟠] Using system prompts with LLM guardrails

4. [🟠] Analyzing datasets using only LLMs, without plugins or code

Effective prompt structuring is crucial for eliciting optimal responses from an LLM. The CO-STAR framework, a brainchild of GovTech Singapore’s Data Science & AI team, is a handy template for structuring prompts. It considers all the key aspects that influence the effectiveness and relevance of an LLM’s response, leading to more optimal responses.

CO-STAR framework — Image by author

Here’s how it works:

(C) Context: Provide background information on the task.

This helps the LLM understand the specific scenario being discussed, ensuring its response is relevant and aligned with your expectations.

(O) Objective: Define what the task is that you want the LLM to perform.



Source link

Leave a Comment