ChatGPT Prompt Engineering

ChatGPT Prompt Engineering

Chat GPT is a popular Generative Pre-Trained Transformer, which is a deep learning language model based on semi supervised learning with human feedback

It's not without its own flaws, below is the questions I asked ChatGPT about itself. It did correct itself in the end.

No alt text provided for this image

Then I tell it that on OpenAI page I have seen a reference

No alt text provided for this image

ChatGPT: 0, Me: 1

Now I ask the original question again

No alt text provided for this image


This article is about Prompts, how we ask correct questions so it responds with correct answer what we need, it comes out in minimal back and forth and is to a level of our expectation.

Yes you can experiment, play around, make mistakes and do some level of information gathering from the tool. But to use a tool properly, you need to understand details on how the tool works and how to use it.

No alt text provided for this image


The prompt includes 3 main parts (Guidance, Modifiers, Output)

Guidance

How we want ChatGPT to behave, this is not the question. It is part of priming the prompt. you can have a initial prompt to tell it that, or include the information along with the question in the main prompt.

Persona - What we want ChatGPT to act like, an expert in some area, example (Chef, Personal trainer, Doctor etc).

Audience - Explain this information to a programmer, to a 10 yr old, teenager or a TLDR version.

Constraint - What kind of response do you want, what kind of person is responding like friendly, sarcastic, professional.

Goal - What is my goal to ask this question, do I want to improve sales, revenue or I am looking for a solution to a personal problem.

Modifiers

There are qualifiers we can add to our prompts to get better information

Adjectives - that define the noun/subject/item on which we are looking information on - big, happy, fun

Adverb - that define the verb or action done by the subject - quickly, never, today

Quantifiers - What kind of data do we expect ChatGPT to respond with, like top 10 or just a few, or a few more (as a continuation of the previous prompt).

Location - The data we want ChatGPT to consider when forming a response like worldwide, US only, Europe

Output

What we want it to do about the item

Do we want to compare, contrast, explain/detail, improve, summarize, brainstorm, Some options which are available are

  • Compare one item to another item
  • Compare or contrast or critique an opinion or a topic from different perspectives. Example: Provide contrasting feedback for climate change from perspective of a environmentalist vs scientist
  • Summarize a transcript and give top 10 items discussed, or top 10 keywords
  • Improve a piece of text and make it more professional, or explain that text to a person with certain role, in this mode it knows the person with have some context in the field and not start from basics.

We also can prompt it to ask us questions to give a more fulfilling answers by telling it to - (ask bullet point questions for clarifications before generating answers. Is that understood?)

Output formats

Do we want it categorized in top 5 categories, subcategories, a table format.

We can tell chatGPT to categorize a response into N sections based on chronological or geographical events, or based on main factors in the article

Ask it to organize the categories in tabular format, ask it to add more categories to the table or add more description to the existing columns.

Reverse prompting

This is reverse engineering a prompt to learn how to write good prompts.

You give some good text which you like and ask ChatGPT on what prompt will generate similar text

Once you have the prompt, you can enrich it further or you can ask chatGPT to improve over existing text by giving it subsequent directions in followup prompts on the area you want it to improve upon.


Here are some good references:

Awesome ChatGPT prompts:

ChatGPT prompts for marketers



Peace !!!

Hussein Said

Marketing | Sales

1 年

An excellent guided article that discusses from a unique angle what I saw in many courses about prompt engineering, this can be an introductory chapter that includes all aspects needed to understand what Chat GPT is and how it will serve humans based on specific knowledge about a particular topic that this human should translate to the machine to get the best out of it. Thanks a lot

回复
Matthew Craig

Semiconductor, Electronics, & Medical Device Recruiter Helping High-Tech Companies Build the Future ???

1 年

Fantastic guide Amit. It's going to be interesting to see how this process evolves as models get more advanced.

回复

要查看或添加评论,请登录

Amit Tomar的更多文章

  • Quantum computing - Maths

    Quantum computing - Maths

    My next few posts will be about quantum computing, (not the Iran’s version where they portrayed a ZedBoard Zynq-7000 as…

  • Speech to Text

    Speech to Text

    Speech-to-text technology converts spoken language into written text using automated speech recognition (ASR). It is…

  • Model Quantization

    Model Quantization

    Model quantization is a technique used to optimize machine learning models by reducing their size and computational…

  • Cryptocurrency: How it works

    Cryptocurrency: How it works

    A cryptocurrency is a digital currency designed to work as a medium of exchange through a computer network that is not…

  • GAN: Diffusion Model

    GAN: Diffusion Model

    A generative adversarial network (GAN) is a class of machine learning frameworks and a prominent framework for…

  • Transformer model for Computer vision

    Transformer model for Computer vision

    When the transformer model came in the “Attention is all you need” paper, it changed the way NLP tasks were handled. I…

    1 条评论
  • Custom back-propagation

    Custom back-propagation

    A neural network is a network of neurons. A neuron is a mathematical function which transforms the input data elements…

    1 条评论
  • Asymmetric Encryption

    Asymmetric Encryption

    Public-key cryptography, or asymmetric cryptography, is the field of cryptographic systems that use pairs of related…

    1 条评论
  • SYMMETRIC ENCRYPTION

    SYMMETRIC ENCRYPTION

    A Symmetric cipher is an algorithm which uses only 1 key for both encryption and decryption. So the same key is used to…

  • WebRTC flow

    WebRTC flow

    Let's simplify how webRTC works. There are 3 parts to webRTC.

社区洞察

其他会员也浏览了