LEARNING PROMPT ENGINEERING
BASICS
Prof Dr.C.Karthikeyan
Copyright @ Prof Dr.C.Karthikeyan /
ddprofkarthikeyan
PROF DR.C.KARTHIKEYAN 1
WHAT IS PROMPT
ENGINEERING
Prompt engineering is the practice of
designing and refining specific text
prompts to guide transformer-based
language models, such as Large
Language Models (LLMs), in generating
desired outputs. It involves crafting clear
and specific instructions and allowing the
model sufficient time to process
information.
Copyright @ Prof Dr.C.Karthikeyan /
ddprofkarthikeyan
PROF DR.C.KARTHIKEYAN 2
WHAT ARE THE 3
TYPES OF PROMPT
ENGINEERING?
A. We have three major approaches to
PE. Some may have some ways of
carrying out this art, but the commonly
used ones include
n-shot prompting,
chain-of-thought (CoT) prompting,
and
generated knowledge prompting.
Copyright @ Prof Dr.C.Karthikeyan /
ddprofkarthikeyan
PROF DR.C.KARTHIKEYAN 3
WHAT ARE THE
TYPES?
Prompt engineering, primarily used in
communication with a text-to-text
model and text-to-image model, is the
process of structuring text that can be
interpreted and understood by a
generative AI model. Prompt
engineering is enabled by in-context
learning, defined as a model's ability to
temporarily learn from prompts.
Copyright @ Prof Dr.C.Karthikeyan /
ddprofkarthikeyan
PROF DR.C.KARTHIKEYAN 4
IS PROMPT
ENGINEERING
CODING?
From crafting questions to fine-tuning
the language, prompt engineering is
more about communicating than
coding.”
Copyright @ Prof Dr.C.Karthikeyan /
ddprofkarthikeyan
PROF DR.C.KARTHIKEYAN 5
WHAT IS THE ROLE
OF A PROMPT
ENGINEER?
A Prompt Engineer specializes in designing,
developing and refining AI-generated text
prompts, optimizing prompt performance, and
improving the AI prompt generation process for
various applications.
Copyright @ Prof Dr.C.Karthikeyan /
ddprofkarthikeyan
PROF DR.C.KARTHIKEYAN 6
WHAT IS
THE FULL
FORM OF
PROMPT?
Share | PROMPT, an acronym for PROMPTS for
Restructuring Oral Muscular Phonetic Targets, is a
multidimensional approach to speech production disorders
that has come to embrace not only the well-known physical-
sensory aspects of motor performance, but also its cognitive-
linguistic and social-emotional aspects.
Copyright @ Prof Dr.C.Karthikeyan /
ddprofkarthikeyan
PROF DR.C.KARTHIKEYAN 7
WHAT IS THE SALARY
OF PROMPT ENGINEER
IN INDIA?
How much do Prompt Engineering
employees make? Employees who knows
Prompt Engineering earn an average of
₹20lakhs, mostly ranging from ₹19lakhs
per year to ₹23lakhs per year based on 2
profiles. The top 10% of employees earn
more than ₹22lakhs per year.18-Sept-2023
Copyright @ Prof Dr.C.Karthikeyan /
ddprofkarthikeyan
PROF DR.C.KARTHIKEYAN 8
WHAT ARE THE TWO
PARTS OF A PROMPT?
Whether it's a two-sentence prompt or
a four-paragraph prompt, there are
typically three parts. The first
sentence or two focuses on
background. It reminds students of
general knowledge or information
learned from texts read. The
middle sentence(s) identify the
actual writing task.
Copyright @ Prof Dr.C.Karthikeyan /
ddprofkarthikeyan
PROF DR.C.KARTHIKEYAN 9
WHAT IS PROMPT TOOLS?
The prompt tool in Prompt flow offers a collection of textual
templates that serve as a starting point for creating prompts.
These templates, based on the Jinja2 template engine, facilitate
the definition of prompts.
Copyright @ Prof Dr.C.Karthikeyan /
ddprofkarthikeyan
PROF DR.C.KARTHIKEYAN 10
WHAT IS
PROMPT WITH
EXAMPLE?
“Did you hear me?” he
prompted when his friend did
not respond to his first question.
The actor had to be prompted by
someone who was standing
offstage. The computer prompted
me to type in a number. Noun The
actor was given a prompt by
someone offstage.
Copyright @ Prof Dr.C.Karthikeyan /
ddprofkarthikeyan
PROF DR.C.KARTHIKEYAN 11
CAN A FRESHER
BECOME PROMPT
ENGINEER?
Whether the individual is a fresher or an
experienced one they need to learn technical
skills which include programming skills and
languages to elevate their career prospects.
Technical skills are crucial for the prompt
engineer career as this is one of the most new-age
careers in the technical field.
Copyright @ Prof Dr.C.Karthikeyan /
ddprofkarthikeyan
PROF DR.C.KARTHIKEYAN 12
IS THERE A FUTURE FOR PROMPT
ENGINEERING?
As AI tools continue to evolve and become more sophisticated, the role of the prompt engineer will also
evolve. The future of prompt engineering is in refining interactions with AI systems to produce even
more optimal responses
Copyright @ Prof Dr.C.Karthikeyan /
ddprofkarthikeyan
PROF DR.C.KARTHIKEYAN 13
WHAT LANGUAGE IS USED IN
PROMPT ENGINEERING?
You will use a variety of programming languages, including Java, Python, and C++, as prompt
engineers. To excel in this career, you must become familiar with these languages.
Copyright @ Prof Dr.C.Karthikeyan /
ddprofkarthikeyan
PROF DR.C.KARTHIKEYAN 14
WHAT IS PROMPT ENGINEERING IN
SIMPLE TERMS?
Prompt engineering is both an AI engineering technique for refining large language models (LLMs)
with specific prompts and recommended outputs and the term for the process of refining input to
various generative AI services to generate text or images.
Copyright @ Prof Dr.C.Karthikeyan /
ddprofkarthikeyan
PROF DR.C.KARTHIKEYAN 15
WHAT IS PROMPT
CODE?
The Javascript Window prompt() method is used
to display a dialog box with an optional message
prompting the user to input some text. It is often
used if the user wants to input a value before
entering a page. It returns a string containing the
text entered by the user, or null. Syntax:
prompt(message, default)
Copyright @ Prof Dr.C.Karthikeyan /
ddprofkarthikeyan
PROF DR.C.KARTHIKEYAN 16
WHAT IS PROMPT
LANGUAGE?
PromptLang is a custom programming
language designed for use inside GPT-
4 prompts and AI interactions. Its
simple and human-readable syntax
makes integrating with various
platforms, including APIs and data easy.
Copyright @ Prof Dr.C.Karthikeyan /
ddprofkarthikeyan
PROF DR.C.KARTHIKEYAN 17
CHALLENGES OF
PROMPT
ENGINEERING
Prompt engineering involves dealing
with complex AI models, intricate
algorithms, and large datasets. The
technical challenges, including model
optimization, data preprocessing,
and handling biases, can be
demanding and time-consuming,
requiring deep technical expertise and
problem-solving skills.
Copyright @ Prof Dr.C.Karthikeyan /
ddprofkarthikeyan
PROF DR.C.KARTHIKEYAN 18
HOW DO YOU
START A
PROMPT?
Writing prompt construction:
1. Part 1. Introduce the topic or writing situation with a
statement or generalization to orient the student to the
topic.
2. Part 2. Encourage students to brainstorm and to make a
personal connection with the topic. ...
3. Part 3. Describe the writing task, purpose, and audience.
Copyright @ Prof Dr.C.Karthikeyan /
ddprofkarthikeyan
PROF DR.C.KARTHIKEYAN 19
DOES PROMPT
ENGINEERING
REQUIRE MATHS?
To compensate for AI's
inaccuracies, prompt engineers
must have excellent numeracy.
Spot mathematical errors yourself.
Most AI tools improve their
accuracy if you provide them with
more context in the prompts. Your
instructions should indicate the
correct formulas or patterns.
Copyright @ Prof Dr.C.Karthikeyan /
ddprofkarthikeyan
PROF DR.C.KARTHIKEYAN 20
CAN ANYONE
STUDY PROMPT
ENGINEERING?
The course covers prompt
templates, creative prompt
structures, and the art of
designing prompts for various
tasks and applications. Open to
learners from all
backgrounds, this course does
not require traditional
engineering skills.
Copyright @ Prof Dr.C.Karthikeyan /
ddprofkarthikeyan
PROF DR.C.KARTHIKEYAN 21
WHAT ARE
PROMPT
LEVELS?
The prompt hierarchy typically
starts with physical prompts and
progresses to verbal, gestural,
model, and positional prompts.
The goal is to fade out the prompts
over time as the person becomes
more independent in completing the
task
Copyright @ Prof Dr.C.Karthikeyan /
ddprofkarthikeyan
PROF DR.C.KARTHIKEYAN 22
WHAT IS THE FIRST
STEP IN DESIGNING
A PROMPT
Design: The first step involves
identifying the intended output
from the AI. What task should it
perform? What kind of response are
we seeking? With a clear goal in
mind, the initial prompt is designed to
reflect these requirements.
Copyright @ Prof Dr.C.Karthikeyan /
ddprofkarthikeyan
PROF DR.C.KARTHIKEYAN 23
WHAT IS
PROMPT SKILL?
It's the art and science of crafting
effective prompts that elicit
valuable responses from AI
models like ChatGPT and Claude
2. As AI becomes more integrated
into our daily lives, the ability to
communicate effectively with these
models becomes increasingly
important.
Copyright @ Prof Dr.C.Karthikeyan /
ddprofkarthikeyan
PROF DR.C.KARTHIKEYAN 24
THANK YOU
Questions and Feedback to
ddprofkarthik@gmail.com
Copyright @ Prof Dr.C.Karthikeyan /
ddprofkarthikeyan
PROF DR.C.KARTHIKEYAN 25

Learn Prompt Engineering Basics chatgpt llms guide

  • 1.
    LEARNING PROMPT ENGINEERING BASICS ProfDr.C.Karthikeyan Copyright @ Prof Dr.C.Karthikeyan / ddprofkarthikeyan PROF DR.C.KARTHIKEYAN 1
  • 2.
    WHAT IS PROMPT ENGINEERING Promptengineering is the practice of designing and refining specific text prompts to guide transformer-based language models, such as Large Language Models (LLMs), in generating desired outputs. It involves crafting clear and specific instructions and allowing the model sufficient time to process information. Copyright @ Prof Dr.C.Karthikeyan / ddprofkarthikeyan PROF DR.C.KARTHIKEYAN 2
  • 3.
    WHAT ARE THE3 TYPES OF PROMPT ENGINEERING? A. We have three major approaches to PE. Some may have some ways of carrying out this art, but the commonly used ones include n-shot prompting, chain-of-thought (CoT) prompting, and generated knowledge prompting. Copyright @ Prof Dr.C.Karthikeyan / ddprofkarthikeyan PROF DR.C.KARTHIKEYAN 3
  • 4.
    WHAT ARE THE TYPES? Promptengineering, primarily used in communication with a text-to-text model and text-to-image model, is the process of structuring text that can be interpreted and understood by a generative AI model. Prompt engineering is enabled by in-context learning, defined as a model's ability to temporarily learn from prompts. Copyright @ Prof Dr.C.Karthikeyan / ddprofkarthikeyan PROF DR.C.KARTHIKEYAN 4
  • 5.
    IS PROMPT ENGINEERING CODING? From craftingquestions to fine-tuning the language, prompt engineering is more about communicating than coding.” Copyright @ Prof Dr.C.Karthikeyan / ddprofkarthikeyan PROF DR.C.KARTHIKEYAN 5
  • 6.
    WHAT IS THEROLE OF A PROMPT ENGINEER? A Prompt Engineer specializes in designing, developing and refining AI-generated text prompts, optimizing prompt performance, and improving the AI prompt generation process for various applications. Copyright @ Prof Dr.C.Karthikeyan / ddprofkarthikeyan PROF DR.C.KARTHIKEYAN 6
  • 7.
    WHAT IS THE FULL FORMOF PROMPT? Share | PROMPT, an acronym for PROMPTS for Restructuring Oral Muscular Phonetic Targets, is a multidimensional approach to speech production disorders that has come to embrace not only the well-known physical- sensory aspects of motor performance, but also its cognitive- linguistic and social-emotional aspects. Copyright @ Prof Dr.C.Karthikeyan / ddprofkarthikeyan PROF DR.C.KARTHIKEYAN 7
  • 8.
    WHAT IS THESALARY OF PROMPT ENGINEER IN INDIA? How much do Prompt Engineering employees make? Employees who knows Prompt Engineering earn an average of ₹20lakhs, mostly ranging from ₹19lakhs per year to ₹23lakhs per year based on 2 profiles. The top 10% of employees earn more than ₹22lakhs per year.18-Sept-2023 Copyright @ Prof Dr.C.Karthikeyan / ddprofkarthikeyan PROF DR.C.KARTHIKEYAN 8
  • 9.
    WHAT ARE THETWO PARTS OF A PROMPT? Whether it's a two-sentence prompt or a four-paragraph prompt, there are typically three parts. The first sentence or two focuses on background. It reminds students of general knowledge or information learned from texts read. The middle sentence(s) identify the actual writing task. Copyright @ Prof Dr.C.Karthikeyan / ddprofkarthikeyan PROF DR.C.KARTHIKEYAN 9
  • 10.
    WHAT IS PROMPTTOOLS? The prompt tool in Prompt flow offers a collection of textual templates that serve as a starting point for creating prompts. These templates, based on the Jinja2 template engine, facilitate the definition of prompts. Copyright @ Prof Dr.C.Karthikeyan / ddprofkarthikeyan PROF DR.C.KARTHIKEYAN 10
  • 11.
    WHAT IS PROMPT WITH EXAMPLE? “Didyou hear me?” he prompted when his friend did not respond to his first question. The actor had to be prompted by someone who was standing offstage. The computer prompted me to type in a number. Noun The actor was given a prompt by someone offstage. Copyright @ Prof Dr.C.Karthikeyan / ddprofkarthikeyan PROF DR.C.KARTHIKEYAN 11
  • 12.
    CAN A FRESHER BECOMEPROMPT ENGINEER? Whether the individual is a fresher or an experienced one they need to learn technical skills which include programming skills and languages to elevate their career prospects. Technical skills are crucial for the prompt engineer career as this is one of the most new-age careers in the technical field. Copyright @ Prof Dr.C.Karthikeyan / ddprofkarthikeyan PROF DR.C.KARTHIKEYAN 12
  • 13.
    IS THERE AFUTURE FOR PROMPT ENGINEERING? As AI tools continue to evolve and become more sophisticated, the role of the prompt engineer will also evolve. The future of prompt engineering is in refining interactions with AI systems to produce even more optimal responses Copyright @ Prof Dr.C.Karthikeyan / ddprofkarthikeyan PROF DR.C.KARTHIKEYAN 13
  • 14.
    WHAT LANGUAGE ISUSED IN PROMPT ENGINEERING? You will use a variety of programming languages, including Java, Python, and C++, as prompt engineers. To excel in this career, you must become familiar with these languages. Copyright @ Prof Dr.C.Karthikeyan / ddprofkarthikeyan PROF DR.C.KARTHIKEYAN 14
  • 15.
    WHAT IS PROMPTENGINEERING IN SIMPLE TERMS? Prompt engineering is both an AI engineering technique for refining large language models (LLMs) with specific prompts and recommended outputs and the term for the process of refining input to various generative AI services to generate text or images. Copyright @ Prof Dr.C.Karthikeyan / ddprofkarthikeyan PROF DR.C.KARTHIKEYAN 15
  • 16.
    WHAT IS PROMPT CODE? TheJavascript Window prompt() method is used to display a dialog box with an optional message prompting the user to input some text. It is often used if the user wants to input a value before entering a page. It returns a string containing the text entered by the user, or null. Syntax: prompt(message, default) Copyright @ Prof Dr.C.Karthikeyan / ddprofkarthikeyan PROF DR.C.KARTHIKEYAN 16
  • 17.
    WHAT IS PROMPT LANGUAGE? PromptLangis a custom programming language designed for use inside GPT- 4 prompts and AI interactions. Its simple and human-readable syntax makes integrating with various platforms, including APIs and data easy. Copyright @ Prof Dr.C.Karthikeyan / ddprofkarthikeyan PROF DR.C.KARTHIKEYAN 17
  • 18.
    CHALLENGES OF PROMPT ENGINEERING Prompt engineeringinvolves dealing with complex AI models, intricate algorithms, and large datasets. The technical challenges, including model optimization, data preprocessing, and handling biases, can be demanding and time-consuming, requiring deep technical expertise and problem-solving skills. Copyright @ Prof Dr.C.Karthikeyan / ddprofkarthikeyan PROF DR.C.KARTHIKEYAN 18
  • 19.
    HOW DO YOU STARTA PROMPT? Writing prompt construction: 1. Part 1. Introduce the topic or writing situation with a statement or generalization to orient the student to the topic. 2. Part 2. Encourage students to brainstorm and to make a personal connection with the topic. ... 3. Part 3. Describe the writing task, purpose, and audience. Copyright @ Prof Dr.C.Karthikeyan / ddprofkarthikeyan PROF DR.C.KARTHIKEYAN 19
  • 20.
    DOES PROMPT ENGINEERING REQUIRE MATHS? Tocompensate for AI's inaccuracies, prompt engineers must have excellent numeracy. Spot mathematical errors yourself. Most AI tools improve their accuracy if you provide them with more context in the prompts. Your instructions should indicate the correct formulas or patterns. Copyright @ Prof Dr.C.Karthikeyan / ddprofkarthikeyan PROF DR.C.KARTHIKEYAN 20
  • 21.
    CAN ANYONE STUDY PROMPT ENGINEERING? Thecourse covers prompt templates, creative prompt structures, and the art of designing prompts for various tasks and applications. Open to learners from all backgrounds, this course does not require traditional engineering skills. Copyright @ Prof Dr.C.Karthikeyan / ddprofkarthikeyan PROF DR.C.KARTHIKEYAN 21
  • 22.
    WHAT ARE PROMPT LEVELS? The prompthierarchy typically starts with physical prompts and progresses to verbal, gestural, model, and positional prompts. The goal is to fade out the prompts over time as the person becomes more independent in completing the task Copyright @ Prof Dr.C.Karthikeyan / ddprofkarthikeyan PROF DR.C.KARTHIKEYAN 22
  • 23.
    WHAT IS THEFIRST STEP IN DESIGNING A PROMPT Design: The first step involves identifying the intended output from the AI. What task should it perform? What kind of response are we seeking? With a clear goal in mind, the initial prompt is designed to reflect these requirements. Copyright @ Prof Dr.C.Karthikeyan / ddprofkarthikeyan PROF DR.C.KARTHIKEYAN 23
  • 24.
    WHAT IS PROMPT SKILL? It'sthe art and science of crafting effective prompts that elicit valuable responses from AI models like ChatGPT and Claude 2. As AI becomes more integrated into our daily lives, the ability to communicate effectively with these models becomes increasingly important. Copyright @ Prof Dr.C.Karthikeyan / ddprofkarthikeyan PROF DR.C.KARTHIKEYAN 24
  • 25.
    THANK YOU Questions andFeedback to ddprofkarthik@gmail.com Copyright @ Prof Dr.C.Karthikeyan / ddprofkarthikeyan PROF DR.C.KARTHIKEYAN 25