Menu

The Art of Prompting

Introduction

Prompt engineering is the practice of designing and refining inputs to guide an AI model toward generating the desired output. It is part science and part art.

Core Principles

  • Be Specific and Clear: Avoid ambiguity. Tell the model exactly what format, tone, and constraints to use.
  • Provide Context: Give the AI the necessary background information so it doesn't have to guess.
  • Assign a Persona: Starting a prompt with "Act as an expert software engineer..." can significantly improve the quality of the response.

Assignment

  1. Review OpenAI's Prompt Engineering Guide. Take a vague prompt and iterate on it to make it highly specific based on their principles.

Support Us!

SaneGenius is a project by a team of passionate software engineers giving back to the community. Join us in empowering learners around the globe by supporting SaneGenius!