Home

Awesome

ChatGPT3 Prompt Engineering

Guide and framework for creating ChatGPT3 Prompts

GitHub Repo stars - Our GitHub Stars!

Deploy Jekyll site to Pages GitHub last commit

This repo was developed by @mattnigh. Follow or connect with me on my LinkedIn.

What is Prompt Engineering?

Prompt engineering is the process of designing and refining the initial text or input (the prompt) that is given to a language model like ChatGPT to generate a response. It involves designing prompts that guide the model to generate a specific tone, style, or type of content.

Prompt Engineering: The Basics

When not to use Prompt Engineering or ChatGPT


Creating ChatGPT Prompts: A Framework

Using a prompt framework when creating prompts for ChatGPT. Frameworks provides structure and clarity to the prompt creation process. It breaks prompt creation process into clear and distinct steps. I created the below framework (CRISPE) for my own use and experimentation of ChatGPT.

CRISPE Prompt Framework:

How to Build Prompts -> CRISPE Example

<table> <tr> <td>Step </td> <td>Example Prompt </td> </tr> <tr> <td>Capacity and Role </td> <td>`Act as an expert on software development on the topic of machine learning frameworks, and an expert blog writer.` </td> </tr> <tr> <td>Insight </td> <td>`The audience for this blog is technical professionals who are interested in learning about the latest advancements in machine learning.` </td> </tr> <tr> <td>Statement </td> <td>`Provide a comprehensive overview of the most popular machine learning frameworks, including their strengths and weaknesses. Include real-life examples and case studies to illustrate how these frameworks have been successfully used in various industries.` </td> </tr> <tr> <td>Personality </td> <td>`When responding, use a mix of the writing styles of Andrej Karpathy, Francois Chollet, Jeremy Howard, and Yann LeCun.` </td> </tr> <tr> <td>Experiment </td> <td>`Give me multiple different examples.` </td> </tr> </table>

The final prompt being:

Act as an expert on software development on the topic of machine learning frameworks, and an expert blog writer. The audience for this blog is technical professionals who are interested in learning about the latest advancements in machine learning. Provide a comprehensive overview of the most popular machine learning frameworks, including their strengths and weaknesses. Include real-life examples and case studies to illustrate how these frameworks have been successfully used in various industries. When responding, use a mix of the writing styles of Andrej Karpathy, Francois Chollet, Jeremy Howard, and Yann LeCun.

I would refine this by saying Give me another example or Give me multiple examples and other prompts below (under Prompt Refinement).

Prompt Refinement: Fixing 'Soulless Writing'

Prompt Refinement: Increase Readability

Prompts for Web Developers

ChatGPT3 can also Pair Program

Ask the model to act as a...


Recommended Resources


Want to know how this was made? It is a passion project using ChatGPT and the below resources: