Module 2: Introduction to Prompt Engineering
Introduction to Prompt Engineering: Introduction to Prompt Engineering, The Evolution of
Prompt Engineering, Types of Prompts, How Does Prompt Engineering Work?,
Comprehending Prompt Engineering's Function in Communication, The Advantages of Prompt
Engineering, The Future of LLM Communication.
Prompt Engineering Techniques for ChatGPT: Introduction to Prompt Engineering
Techniques, Instructions Prompt Technique, Zero, One, and Few Shot Prompting, Self-
Consistency Prompt.
Prompts for Creative Thinking: Introduction, Unlocking Imagination and Innovation.
Prompts for Effective Writing: Introduction, Igniting the Writing Process with Prompts.
2.1 Introduction to Prompt Engineering
Prompt Engineering is a rapidly growing field that focuses on creating effective inputs —
known as prompts — to guide Large Language Models (LLMs), such as ChatGPT, Gemini,
or Claude, toward producing desired outputs.
LLMs are capable of generating human-like text, solving problems, answering questions, and
performing creative tasks. However, their responses heavily depend on the quality and clarity
of the prompt given to them. Prompt engineering involves crafting these prompts strategically
to unlock the model’s full potential.
Prompt engineering is both an art (creative phrasing and contextual clarity) and a science
(structured experimentation and optimization).
2.1.1 What is Prompt Engineering?
Definition:
Prompt Engineering is the process of designing and refining input instructions (prompts) to
guide an LLM’s behavior and optimize its output for accuracy, relevance, and creativity.
Explanation:
Think of an LLM as a highly intelligent system with immense stored knowledge.
A prompt acts as a cue or signal that determines how the model uses this knowledge.
The goal is to influence the model’s reasoning process without explicitly programming
it.
Analogy:
Prompting an LLM is like whispering ideas to a gifted artist — you give direction and
inspiration but let the model express itself creatively.
Characteristics of Prompts:
Prompts may be: Natural language queries (e.g., “Summarize this article in simple
terms.”), System instructions (e.g., “You are a helpful assistant.”), Conditional
statements (e.g., “If X, then Y.”)
Prompts can range from a single line to a detailed paragraph.
Effective prompts clearly convey: Context, Objective, Expected format.
Mrs. Thockchom Priya, EPCET
Purpose of a Prompt:
To provide the LLM with sufficient detail to:
1. Understand the query correctly.
2. Generate relevant, accurate, and coherent output.
Components of a Prompt:
1. Instruction: What to do (e.g., “Summarize the
paragraph.”)
2. Context: Background information (e.g., “The
paragraph discusses climate change.”)
3. Input Data: The text or data the LLM should process.
4. Output Indicator: The desired style, tone, or format
(e.g., “In bullet points.”)
2.1.2 Importance of Prompt Engineering
Prompt Engineering is vital because it determines the effectiveness of an AI system’s
interaction with users.
1. Unlocking Full Potential of LLMs
Prompts can push LLMs beyond their initial training boundaries.
They enable tasks like storytelling, code generation, or music composition.
2. Increasing Precision and Control
Carefully crafted prompts reduce ambiguity.
They guide the model toward factually accurate and relevant responses.
Crucial in areas like:
o News reporting
o Scientific research
o Legal writing
3. Increasing uniqueness and Enhancing Creativity
Prompts can trigger imaginative outputs, enabling LLMs to:
o Generate poems, art concepts, or unique narratives.
o Explore innovative problem-solving approaches.
4. Democratizing AI
Simplifies AI interaction for non-technical users.
Makes AI accessible via natural language rather than code.
Encourages broader adoption across education, business, and creative fields.
Mrs. Thockchom Priya, EPCET
2.2 Evolution of Prompt Engineering
Although modern prompt engineering emerged with LLMs, its roots can be traced to early AI
systems designed to interpret human instructions.
Antecedents (1960s–1970s)
1. ELIZA (1966) – Joseph Weizenbaum
o One of the earliest chatbot systems.
o Simulated a psychotherapist using keyword recognition and substitution
patterns.
o Represented the foundation of human–computer dialogue.
2. SHRDLU (1970s) – Terry Winograd
o Natural language system operating in a virtual “block world.”
o Demonstrated how language could direct AI behavior within defined
environments. Focused on humor, personality, and open-ended responses.
Showed that contextual understanding is vital for intelligent conversation.
Early Emergence (1990s–2000s)
1. Mad Hatter Dialogue Systems (1990s):
o Examples: Jabberwacky and ALICE.
o Focused on humor, personality, and open-ended responses. Expanded
conversational flexibility and creativity.
2. Template-Based Approaches (2000s):
o Systems like Madalyn and Galatea used predefined text templates.
o Prompts filled in specific slots with user data. Represented structured and
controlled language generation — a precursor to modern prompting.
The Rise of Large Language Models (2017–Present)
1. Transformer Revolution (2017):
o The Transformer architecture changed NLP by allowing parallel processing of
text. Enabled large-scale models like GPT-3, BERT, and Jurassic-1 Jumbo.
o These models displayed human-like understanding and generation abilities.
2. Fine-tuning & Context Adaptation (2020s):
o Emergence of few-shot and zero-shot learning.
o Prompts now serve as task descriptors instead of explicit training data.
o Conditional generation and prompt-based tuning improved task flexibility.
2.3 Types of Prompts
1. Natural Language Prompts:
o Written in simple, conversational language.
o Mimic human dialogue.
o Example: “Explain photosynthesis in simple terms.”
2. System Prompts:
o Predefined instructions that shape the model’s behavior globally.
o Example: “You are an academic writing assistant; use formal tone.”
3. Conditional Prompts:
o Use logical or contextual conditions.
o Example: “If the text mentions climate, discuss global warming effects.
Mrs. Thockchom Priya, EPCET
2.4 How Does Prompt Engineering Work?
Prompt engineering is an intricate and recursive process that involves designing and refining
the input (prompt) given to a Large Language Model (LLM) to obtain the most accurate,
relevant, and meaningful output.
There is no universal method for creating effective prompts because:
Each LLM (e.g., GPT-4, Claude, Gemini) responds differently.
Each task (e.g., summarization, translation, explanation) requires a distinct approach.
Thus, prompt engineering requires experimentation, adaptation, and clarity to achieve
optimal results
Fundamental Principles of Prompt Engineering
Prompt engineers typically follow a few broad principles to design efficient prompts.
a) Begin with a Thorough Comprehension of the Task
The first step is to clearly understand the task or objective.
Ask yourself:
o What do you expect the LLM to do?
o What type of output are you seeking — a summary, analysis, creative text, or
explanation?
Once the task is well understood, it becomes easier to craft a prompt that helps the LLM
fulfill your objectives effectively.
Example:
Instead of simply asking “Explain photosynthesis,” specify “Explain the process of
photosynthesis in plants for a 10-year-old student.”
b) Make Your Terminology Precise and Concise
Use clear, direct, and unambiguous language in your prompts.
Avoid:
o Overly technical or jargon-heavy terms
o Vague or confusing phrasing
The LLM should easily understand what is being requested without misinterpretation.
Tip:
A concise prompt helps the model stay focused and produce more relevant results.
Example:
Vague: “Tell me about computers.”
Precise: “Explain the key components and functions of a computer system.”
c) Give Details
The more specific your prompt, the better the model’s response quality.
Adding details helps the LLM understand the context and intent of the request.
Example:
General: “Write a poem.”
Specific: “Write a poem about a lost love set during a rainy evening.”
Such specificity improves the relevance, tone, and creativity of the output.
Mrs. Thockchom Priya, EPCET
d) Give Instances (Examples)
Providing examples or sample outputs helps the LLM better understand your
expectations.
This approach is known as few-shot prompting, where you demonstrate the desired
style or format.
Example:
Example Input: “The day was bright and sunny.”
Example Output: “Mood – Happy and cheerful.”
Now analyze this text: “Dark clouds gathered over the city.”
Examples act as guides and make the model’s responses more precise and consistent.
e) Try Something Out (Experimentation)
There is no fixed formula in prompt engineering.
The best results come from trial and error — experimenting with different prompts
and evaluating outcomes.
Modify and refine prompts based on:
o Tone of output
o Level of detail
o Accuracy or creativity
Methods of experimentation include:
Rephrasing the same question differently
Adding step-by-step reasoning (Chain-of-Thought prompting)
Assigning roles to the model (e.g., “Act as a research assistant...”)
This iterative experimentation leads to discovering what works best for each LLM and task.
2.5 Comprehending Prompt Engineering’s Function in Communication
Communication lies at the heart of all human interaction. With the rise of Large Language
Models (LLMs), prompt engineering has emerged as a crucial tool that shapes how these AI
systems communicate with humans.
Prompt engineering influences:
The clarity and specificity of AI-generated messages,
The creativity and engagement of conversations,
The adaptability of tone across different contexts, and
The bridging of linguistic and cultural gaps.
a) Improving Specificity and Clarity
Prompts act as guiding tools that direct LLMs toward clear, concise, and transparent
communication.
By including:
o Context (background or situation),
o Goals (desired outcomes), and
o Tone (formal, informal, persuasive, etc.),prompt engineers can ensure that the
LLM’s responses are easily understood and accurately aligned with user
intent.
Mrs. Thockchom Priya, EPCET
Example:
Instead of: “Explain climate change.”
Use: “Explain climate change in simple terms suitable for high school students, emphasizing
causes and effects.”
Result:
Avoids ambiguity and ensures clarity of communication.
b) Increasing Creativity and Engagement
Carefully designed prompts can unlock the creative potential of LLMs.
They can generate:
o Engaging conversations
o Storytelling outputs
o Debates or thought-provoking dialogues
Creative prompts make communication more interactive, imaginative, and
emotionally engaging.
Examples:
“Write a short story about a robot learning empathy.”
“Debate the pros and cons of artificial intelligence in education.”
These prompts transform static exchanges into dynamic and meaningful interactions,
encouraging new forms of creative communication.
c) Adapting Communication to Different Contexts
One of the strengths of LLMs is their ability to adapt tone and style based on prompts.
Prompt engineering enables models to shift between different communication
contexts, such as:
o Formal communication: e.g., business letters, official reports
o Informal communication: e.g., chats, social media replies
o Persuasive communication: e.g., marketing or debate responses
By providing focused and contextual instructions, the LLM can adopt the correct
tone, structure, and vocabulary for any given scenario.
Example:
“Write a polite email to a professor requesting an extension.”
“Write a friendly text message to a colleague about today’s meeting.”
This adaptability makes AI communication more human-like and situationally appropriate.
d) Overcoming Linguistic Barriers
Prompt engineering can empower LLMs to translate languages accurately and
naturally, promoting cross-cultural communication.
By embedding contextual cues and cultural references into prompts, users can ensure
that translations capture meaning, tone, and emotion, not just literal words.
Example:
Prompt: “Translate this paragraph into Spanish, keeping the tone humorous and informal.”
Mrs. Thockchom Priya, EPCET
Such prompts improve: Cultural sensitivity, Nuanced understanding, Effective
multilingual exchange
Thus, prompt engineering helps bridge global communication gaps and supports more
inclusive interactions across languages and cultures.
e) Addressing Ethical Issues in Communication
With great communication power comes great ethical responsibility.
Poorly designed or biased prompts can lead to:
o Discriminatory or misleading communication
o Manipulation of information
o Reinforcement of stereotypes
Therefore, ethical prompt design must ensure:
o Fairness and neutrality
o Transparency and honesty
o Avoidance of harmful or manipulative intent
Example of bias risk:
A prompt that assumes stereotypes about gender or culture can influence the LLM’s tone or
content negatively.
To prevent this, prompts must be carefully reviewed, balanced, and objective.
Ethical prompt engineering ensures that AI-driven communication remains trustworthy,
inclusive, and socially responsible.
2.6 The Advantages of Prompt Engineering
Question answering: By using prompt engineering, LLMs can respond to factual
queries with greater accuracy.
Example:
Poor Prompt: “Tell me about space.”
Improved Prompt: “List three key facts about the formation of galaxies in the
universe.”
Creative writing: LLMs can produce more imaginative and captivating material,
including stories, poetry, and scripts, by using prompt engineering.
Example:
“Write a short poem about the beauty of a sunset from the perspective of the ocean.”
“Create a dialogue between an artist and their painting as they discuss
inspiration.”
Machine translation: The precision of LLMs’ language translations can be increased
through prompt engineering.
Example:
“Translate this sentence into French, keeping the tone polite and formal.”
Coding: LLMs can produce more precise and effective code by using prompt
engineering.
Example:
Mrs. Thockchom Priya, EPCET
“Write a Python function to calculate the factorial of a number using recursion.”
“Explain how this JavaScript function works, step by step.”
2.7 The Future of LLM Communication
LLM advancements will revolutionize human–AI communication.
Future uses include AI-powered negotiation, real-time translation, and personalized
content delivery.
Prompt engineering plays a key role in improving AI performance, reducing bias, and
guiding model behavior.
Future trends:
o Automated prompt generation
o Adaptive prompts that respond to user interaction
o Handling subtle and complex tasks
Ongoing research aims to make AI more context-aware, dependable, and
intelligent.
Impact:
o Smarter human–AI collaboration
o Better personalization and accessibility
o Greater need for ethical and unbiased AI systems
Prompt Engineering Techniques for ChatGPT: Introduction to Prompt Engineering
Techniques, Instructions Prompt Technique, Zero, One, and Few Shot Prompting, Self-
Consistency Prompt.
2.1 Introduction to Prompt Engineering Techniques
This section provides an overview of methods used to guide the responses of AI
language models like ChatGPT.
Prompt Engineering means designing specific prompts or instructions to make the
model produce relevant, accurate, and high-quality text.
Purpose:
To control and shape the model’s output according to the task requirements.
Ensures responses are relevant, context-aware, and useful.
2.2 Instructions Prompt Technique
The Instructions Prompt Technique is used to guide NLP models like ChatGPT by
giving clear and specific instructions on how to generate responses.
It helps ensure that the model’s output meets the desired goals, such as tone, accuracy,
or style.
Examples:
1. Customer Service Response:
Instruction: “Responses should be professional and provide accurate information.”
→ Produces polite and factual answers.
Mrs. Thockchom Priya, EPCET
2. Legal Document Generation:
Instruction: “The document should comply with relevant laws and regulations.”
→ Ensures legal correctness.
3. Product Review:
Instruction: “The review should be unbiased and informative.”
→ Can be combined with other techniques like:
o Role Prompting: e.g., act as a tech expert.
o Seed-word Prompting: focus on features like camera or battery life.
2.3 Zero, One, and Few Shot Prompting
This technique helps guide ChatGPT’s responses by giving it different levels of examples or
context before generating text.
Zero Shot Prompting
Zero Shot Prompting is a prompt engineering
technique used in natural language processing
models like ChatGPT to generate responses without
any specific examples or training data related to the
given task. Instead of providing examples or
context, users only offer a prompt or instruction to
the [Link] model gets no examples, only an
instruction.
It uses its pre-trained knowledge to generate a response.
Example: “Write a poem about nature.”
Use: For creative or general tasks.
Limitation: May be less accurate or relevant without examples.
One Shot Prompting
One Shot Prompting is a prompt engineering technique utilized in natural language
processing models such as ChatGPT to generate responses based on a single example
or instance provided by the user. In this approach, users supply the model with a specific
example relevant to the task at hand, and the model then uses this example to generate
a response
The model is given one example to
understand the task format.
Example: Show one sample summary
before asking it to summarize another
paragraph.
Use: When limited data or context is
available.
Limitation: Accuracy depends on the
quality of the single example.
Mrs. Thockchom Priya, EPCET
Few Shot Prompting
Few Shot Prompting is a prompt engineering technique utilized in natural language
processing models like ChatGPT to generate responses based on a small number of
examples or instances provided by the user. In this approach, users supply the model
with a few relevant examples or instances related to the task at hand, and the model
then uses these examples to generate a response.
The model is given a few examples (2–5 typically) to learn the expected response style.
Example: Provide 2–3 sample product reviews before asking for a new one.
Use: Produces more accurate and context-aware responses.
Limitation: Depends on quality and relevance of provided examples.
2.4 Self-Consistency Prompt
The Self-Consistency Prompt is used to make ChatGPT’s responses coherent, logical,
and consistent throughout a conversation.
It includes key facts, background information, or constraints that the model must
follow when generating text.
Purpose
Ensures that the model’s responses stay accurate, relevant, and consistent with given
facts or context.
Helps avoid contradictions or changes in tone during long or technical discussions.
Example
Topic: Climate Change
Prompt may include: Scientific facts, data, or principles about climate science.
→ Ensures ChatGPT’s responses stay true to accepted scientific knowledge.
Applications
Educational content
Technical or scientific discussions
Decision-making processes
Advantages
Maintains logical flow and factual accuracy.
Improves quality and trustworthiness of responses.
Caution
Giving too many restrictions can limit creativity and make responses repetitive.
A balance between guidance and flexibility is essential.
Mrs. Thockchom Priya, EPCET
Prompts for Creative Thinking: Introduction, Unlocking Imagination and Innovation.
2.1 Introduction
“Prompts for Creative Thinking” is a chapter from The Prompt Revolution: Empowering
Communication through Effective Prompts [1].
Focuses on developing creativity, innovation, and original thinking through the use
of prompts.
Highlights the importance of creative thinking as a vital skill across all domains in
today’s world.
Creative Thinking:
The ability to look at problems or situations from a new perspective, generating novel and
useful ideas.
Prompts as Catalysts:
Prompts help in igniting imagination, overcoming mental blocks, and sparking innovative
ideas.
2.2 Unlocking Imagination and Innovation
This section provides a comprehensive guide featuring 50 prompts designed to ignite
creativity and drive innovation in organizations.
Encourages an environment where individuals feel empowered to experiment,
embrace failure, and challenge norms.
Key Strategies for Fostering Innovation
1. Encourage Brainstorming: Promote open discussions and idea sharing.
2. Embrace Failure: Treat mistakes as opportunities for learning and growth.
3. Foster Curiosity & Experimentation: Support creative risk-taking.
4. Promote Collaboration: Especially cross-disciplinary teamwork.
5. Ensure Diversity & Inclusion: Different perspectives enhance creativity.
6. Adopt Continuous Learning: Stay updated with new trends and technologies.
7. Provide Autonomy & Recognition: Empower individuals and celebrate creative
contributions.
Top 10 Prompts for Unlocking Imagination and Innovation
1. How can unlocking creativity lead to breakthrough innovations?
2. The impact of a creative mindset on problem-solving and innovation.
3. Strategies for cultivating a culture of innovation through imagination.
4. The role of play and experimentation in stimulating imagination for innovation.
5. Inspiring a sense of wonder to fuel creative thinking in the workplace.
6. Can education systems enhance or inhibit imagination and innovation?
7. How embracing failure can foster a culture of innovation through imagination.
8. Integrating technology to amplify creative thinking and innovation.
9. The importance of interdisciplinary collaboration in unlocking innovation.
10. The role of leadership in fostering a culture of imagination and innovation.
Mrs. Thockchom Priya, EPCET
Prompts for Effective Writing: Introduction, Igniting the Writing Process with
Prompts.
Prompts for Effective Writing
The chapter helps writers improve writing skills and boost creativity through guided
prompts.
Emphasizes the power of words to convey ideas, evoke emotions, and engage readers.
Prompts help to overcome writer’s block, develop storytelling, and explore different
genres (fiction, non-fiction, poetry, persuasive writing).
Encourages writers to use imagination, personal experience, and observation for
authentic expression.
Offers practical tips for building writing habits, revising, and editing for clarity and
impact.
Aims to inspire creativity, refine writing, and unleash individual voice.
Igniting the Writing Process with Prompts
Focuses on using writing prompts to start, guide, and improve the creative process.
Prompts help spark ideas, banish writer’s block, and enhance storytelling skills.
Encourages writers to experiment and connect deeply with readers.
10 Sample Prompts to Ignite Writing Creativity
1. Explore the concept of time travel in a short story or essay.
2. Write about a character who discovers a hidden world within everyday objects.
3. Describe a day in the life of someone living on another planet.
4. Use a photograph as inspiration for a story or poem.
5. Write about a moment of serendipity that transforms a character’s life.
6. Imagine a world where emotions are tangible and exchangeable.
7. Create a story inspired by a vivid dream.
8. Write a letter from your present self to your future self.
9. Craft a dialogue between two characters who communicate without speaking.
10. Explore the idea of a forbidden library filled with magical books.
Mrs. Thockchom Priya, EPCET