Introduction to AI and Applications 1
Module 2
Introduction to Prompt Engineering
Course Code 1BAIET103/203 CIE Marks 50
Teaching Hours/Week (L:T:P:) 3:0:0:0 SEE Marks 50
Total Hours of Pedagogy 40 Total Marks 100
Credits 3 Exam Hours 3
Examination type (SEE) Theory
Course outcome (Course Skill Set)
At the end of the course, the student will be able to:
CO1: Explain the concepts and types of artificial intelligence.
CO2: Illustrate basic machine learning methods for regression,
classification and clustering.
CO3: Identify real-world applications across different disciplines.
CO4: Make use of prompt engineering techniques to interact with
generative AI tools.
CO5: Outline recent trends in artificial intelligence and machine learning.
Module-2
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.
1.1 Introduction to Prompt Engineering
L1:
1.1.1 What is Prompt Engineering?
Consider an LLM (Large Language Model) as a huge, intricate
network of creativity and information. The goal of prompt
engineering is to intertwine instructions and information into this
CEC, Mangalore
web in a way that gently nudges the LLM toward the intended result.
It’s like whispering ideas into the ear of a gifted artist, offering just
enough direction to ignite their creative spark without drowning out
their distinct voice.
A prompt is the query, directive, or example given to an LLM. It
establishes the background, clarifies the assignment, and provides
the LLM answer framework. We can adjust the language, provide
particulars, and apply different strategies to make the LLM’s output
creative, convincing, educational, or anything else we desire.
Prompts are input instructions or cues that influence the
model’s reaction to AI models. These prompts can be presented as
conditional restrictions, system-defined instructions, or instructions
in natural language.
● A brief passage of text known as a prompt serve as a roadmap for
an LLM’s answer. It might be as straightforward as one sentence
or as intricate as several clauses and directives.
Fig. 1 Prompt input
● The purpose of a prompt is to give the LLM just enough details
to compred the question asked of it and to produce an insightful
and pertinent response.
Introduction to AI and Applications 3
Fig. 2 Components of Prompt
Through the provision of unambiguous and explicit cues,
developers can direct the behavior of the model and impact the
output produced.
1.1.2 What Makes Prompt Engineering Vital?
Many options become possible when prompts are used to control
the LLM’s behavior. For the following reasons, timely engineering is
becoming more and more crucial:
Reaching beyond the pre-programmed limits of LLMs, prompts
can assist us in realizing the full potential of these tools. We can use
their extensive knowledge and skills for things they weren’t made
for, like authoring engrossing novels or complex musical
compositions.
Increasing precision and management: We can direct the LLM
toward pertinent and factually correct outcomes by carefully crafting
the prompts. This is essential for uses like news reporting or
scientific study, where accurate information is critical.
Increasing uniqueness and creativity: Prompts can ignite an LLM’s
imagination, producing novel and surprising results. They can help
us develop creative solutions to challenging issues, come up with
novel ideas, or even produce brand-new works of art and
entertainment.
Democratizing AI: A greater spectrum of users, including those
without in-depth technical knowledge, can now more easily access
LLMs thanks to prompt engineering. We can enable everyone to
leverage AI for their creative and productive efforts by offering user-
friendly interfaces and clear prompts.
1.2 The Evolution of Prompt Engineering
Although prompt engineering is a relatively new topic, its origins can
be found in the early stages of artificial intelligence. Let’s go back in
time and examine how this fascinating art form has changed over the
years:
1.2.1 Antecedents
ELIZA (1966): Many people believe that Joseph Weizenbaum’s
CEC, Mangalore
chatbot, ELIZA, is the original instance of what can be referred to as
basic prompt engineering. ELIZA imitated therapeutic discussion by
deftly adjusting keywords and patterns in user input, setting the
stage for dialogue systems to come.
In the 1970s, Terry Winograd developed SHRDLU, a natural
language system that was mostly dependent on human orders and
instructions. SHRDLU could reason about blocks in a virtual
environment. This demonstrated how language may direct AI
behavior in particular situations.
1.2.2 Early Emergence
Mad Hatter dialogue systems (1990s) ]: These systems, such as
Jabberwacky and ALICE, placed a strong emphasis on the use of
hilarious responses and open-ended questions, pushing the limits of
natural language interaction and opening the door for more
inventive uses of prompts.
Template-based approaches : In the 2000s, systems such as Madalyn
and Galatea gained popularity. These systems used user-provided
data to
fill in predefined templates and slots to generate stories. The
groundwork
for organized prompting methods was therefore established.
1.2.3 The Rise of Large Language Models
The Transformer revolution (2017): With the introduction of the
Transformer architecture, NLP underwent a revolution that
produced some of the most potent LLMs ever, like GPT-3 and
Jurassic-1 Jumbo. These models made prompt engineering shine
because of their enormous knowledge bases and capacity to produce
writing that is of human caliber.
Adjusting and adjusting (2020s): Modern times are marked by quick
progress in optimizing LLMs for certain activities and enabling
prompt- based context adaptation. Even more sophisticated control
of LLM outputs is possible with the use of techniques like few-shot
learning and conditional generation.
1.3 Types of Prompts
The following are various types of prompts:
● Natural Language Prompts: These prompts mimic human-like
Introduction to AI and Applications 5
directions, offering direction in the form of clues found in
natural language. They make it possible for developers to
engage with the model more naturally by providing commands
that mimic human speech.
● System Prompts: These are pre-written guidelines or
templates that developers supply to direct the output of the
model. They give the model clear instructions on how to express
the intended output format or behavior in an organized manner.
● Conditional Prompts: Conditional prompts entail subjecting
the model to particular limitations or contexts. Developers can
direct the behavior of the model by implementing conditional
prompts, which are based on conditional statements like “If X,
then Y” or “Given A, generate B.”
1.4 How Does Prompt Engineering Work?
The process of prompt engineering is intricate and recursive. The
optimal strategy will differ based on the particular LLM and the
work at hand; there is no one-size-fits-all method for developing
effective prompts. Nonetheless, prompt engineers might adhere to
the following broad principles:
● Begin with a thorough comprehension of the task. What are your
expectations for the LLM? What sort of results are you seeking?
After you have a firm grasp of the assignment, you can begin to
develop a prompt that will assist the LLM in accomplishing your
objectives.
● Make your terminology precise and succinct. There should be no
doubt in the LLM’s understanding of your request. Make use of
straightforward language and refrain from using technical or
jargon terms.
● Give details. The likelihood that the LLM will produce a pertinent
and educational response increases with the level of specificity
in your prompt. To get the LLM to “write a poem,” for instance,
you may ask it to “write a poem about a lost love.”
● Give instances. Give the LLM samples of the kind of output you
are hoping to achieve, if at all feasible. This will make it easier
for the LLM to comprehend your goals and produce more precise
outcomes.
● Try something out. Prompt engineering cannot be approached in
a one-size-fits-all manner. Experimenting with various prompts
and seeing the outcomes is the most effective approach to
CEC, Mangalore
discovering what functions.
The field of quick engineering has a bright future ahead of it. What
to anticipate is:
The emergence of specialist prompting languages: Just as
computers are guided by programming languages, creating efficient
prompts may become even more accessible and intuitive with the
help of specialized prompting languages.
Pay close attention to control and explain ability. As LLMs get
more complicated, it will be important to know how prompts affect
their results. Explainable AI approaches will provide insight into
prompt engineering’s inner workings.
Ethical considerations: Using the ability to influence LLM
behavior ethically is a duty. It will be crucial to address problems with
bias, justice, and manipulation if rapid engineering is to be developed
responsibly.
Review Questions:
[Link] is prompt Engineering?
2. What are the types of prompt?
3. What is LLM?
L2:
1.5 Comprehending Prompt Engineering’s
Function in Communication
Human contact is fundamentally based on communication, and
quick engineering has the potential to completely transform
communication as LLMs become more and more common. Now let’s
explore the intriguing interaction between these two domains:
Improving Specificity and Clarity: Prompts can serve as beacons of
light, pointing the LLM in the direction of succinct and
transparent communication. We may avoid misconceptions and
make sure the intended audience understands the LLM’s
message by giving context, defining goals, and identifying
desired tones.
Increasing Creativity and Engagement: Prompts can help the LLM
reach their creative potential, resulting in stimulating and thought-
provoking dialogue. Debate ideas can start thought-provoking
conversations, but storytelling prompts can produce engrossing
stories. This creates opportunities for creative expression and new
kinds of communication.
Introduction to AI and Applications 7
Adapting Communication to Different Contexts: The LLM’s
communication style can be modified by prompts to meet a variety
of situations. A persuasive argument, a casual chat message, or a
formal email all need a different tone and strategy. Creating focused
questions enables the LLM to handle these subtleties with ease.
Overcoming Linguistic Barriers: By empowering LLMs to translate
languages precisely and naturally, prompt engineering can promote
cross- cultural communication. Language difficulties can be
overcome with more ease and effectiveness when prompts are used
to provide cultural allusions, nuanced interpretations, and intended
meanings.
Ethical Issues: Despite the enormous potential of prompt
engineering in communication, ethical issues need to be taken into
account. Prompts with built-in biases may cause discriminatory
communication and manipulation techniques may be applied
maliciously. Appropriate prompt design and use are essential to
ensuring moral and helpful communication.
1.6 The Advantages of Prompt Engineering
One effective method for raising LLM performance is prompt
engineering. Prompt engineers can assist LLMs in producing more
precise, consistent, and imaginative results by carefully constructing
prompts. Several uses for this could be advantageous, including:
● Question answering: By using prompt engineering, LLMs can
respond to factual queries with greater accuracy.
● Creative writing: LLMs can produce more imaginative and
captivating material, including stories, poetry, and scripts, by
using prompt engineering.
● Machine translation: The precision of LLMs’ language
translations can be increased through prompt engineering.
● Coding: LLMs can produce more precise and effective code by
using prompt engineering.
CEC, Mangalore
Fig. 3 Question answering
Fig. 4 Coding
1.7 The Future of LLM Communication
We can anticipate even more revolutionary shifts in communication
as LLM technology advances and prompt engineering techniques
advance in sophistication. Think of AI-powered negotiation tools that
help achieve win-win agreements, real-time language translation
with sophisticated understanding, or customized news updates
based on your preferences.
The field of prompt engineering is dynamic, with continuous
research endeavors aimed at delving deeper into its possibilities.
Prospective avenues for development could encompass
automated methods for generating prompts, adaptive prompts that
adjust based on user interactions, and tackling issues associated
with subtle cues for intricate activities.
One effective technique for improving AI models and getting the
results you want is prompt engineering. Developers may control
biases, direct the behavior of AI models, and enhance the overall
Introduction to AI and Applications 9
dependability and performance of AI systems by using efficient
prompts.
As the area develops, ever more advanced and contextually
aware AI models will be made possible by ongoing research into
prompt engineering methods and best practices.
1.8 Conclusion
In conclusion, the realm of prompt engineering stands as a gateway
to unlocking the vast potential inherent in large language models
(LLMs). Through this chapter’s exploration, we’ve uncovered the
intricate balance between artistry and precision required to craft
prompts that guide these powerful AI systems toward remarkable
outcomes. Prompt engineering embodies the delicate process of
directing an LLM’s creativity and knowledge, akin to inspiring a
gifted artist without stifling their unique expression. These prompts
serve as blueprints, framing the context, and steering the LLM’s
responses to produce tailored outputs, whether creative, persuasive,
or educational. The significance of prompt engineering extends
beyond mere guidance; it enables LLMs to transcend their pre-
programmed limits, leveraging their vast knowledge for tasks
ranging from storytelling to addressing scientific inquiries.
However, precision in prompt creation becomes pivotal, particularly
in domains where accuracy is paramount. Tracing its evolution, from
early chatbots to revolutionary advancements like the Transformer
architecture, prompt engineering has undergone significant
development, empowering LLMs to generate human-caliber content.
Looking ahead, specialized prompting languages and ethical
considerations are poised to shape the responsible and streamlined
evolution of this field.
Prompt engineering’s role in communication is pivotal, serving
as a beacon for clear, adaptable interactions while requiring ethical
vigilance to mitigate biases and ensure responsible communication
practices. Envisioning the future, prompt engineering holds the
potential to revolutionize AI applications, from negotiation tools to
personalized news updates, reshaping human-AI interactions
profoundly. This chapter lays the groundwork for a deeper
exploration into the nuanced mechanisms, ethical imperatives, and
transformative possibilities embedded within prompt engineering,
inviting further inquiry into its role in shaping the evolving
landscape of human-AI collaboration.
CEC, Mangalore
Review Questions:
[Link] functions of prompt Engineering?
2. What are the types of prompt?
3. What is the future of LLM?
L3:
3. Prompt Engineering Techniques for
chatGPT
3.1 Introduction to Prompt Engineering
Techniques
“Introduction to Prompt Engineering Techniques” provides a
foundational overview of the various methods employed to guide the
output of natural language processing models, with a specific focus
on ChatGPT. This chapter serves as a gateway to understanding the
intricacies of prompt engineering and its pivotal role in shaping the
responses generated by AI language models. Readers are introduced
to the concept of prompt engineering, which involves crafting
specific prompts or instructions to direct the model’s output. The
chapter outlines the importance of prompt engineering in ensuring
that AI models like ChatGPT generate relevant, accurate, and high-
quality text responses across a variety of tasks and domains.
Key topics covered in this introductory chapter include an
overview of different prompt engineering techniques, such as
standard prompts, role prompting, seed-word prompting, and more.
Readers will gain insight into how each technique operates and its
potential applications in influencing ChatGPT’s text-generation
process.
Moreover, the chapter sets the stage for exploring the practical
implementation of prompt engineering techniques, highlighting
their versatility and adaptability to various scenarios. Through
illustrative examples and discussions, readers will develop a solid
understanding of how to effectively utilize prompt engineering
techniques to tailor ChatGPT’s responses to specific needs and
requirements.
3.2 Instructions Prompt Technique
The “Instructions Prompt Technique” is a method employed to guide
the output of natural language processing models, such as ChatGPT,
Introduction to AI and Applications 11
by providing specific instructions for the model to follow. This
technique ensures that the generated text aligns with the desired
objectives and requirements of the task at hand.
For example, if the task is to generate customer service responses,
the instructions prompt might include guidelines such as
● “responses should be professional and provide accurate
information.”
By providing these instructions, users can steer ChatGPT
towards producing responses that meet the criteria of
professionalism and accuracy.
Another example is generating a legal document. In this case, the
instructions prompt might specify that
● “the document should be in compliance with relevant laws
and regulations.”
This instruction ensures that the generated legal document
adheres to legal standards and requirements.
The Instructions Prompt Technique can also be combined with
other prompt engineering methods for enhanced precision and
control over the model’s output. For instance, when generating a
product review for a new smartphone, instructions might dictate that
“the review should be unbiased and informative.”. This instruction,
along with role prompting to adopt the perspective of a tech expert
and seed-word prompting to focus on specific features of the
smartphone, can result in a comprehensive and insightful product
review.
3.3 Zero, One, and Few Shot Prompting
“Zero, One, and Few Shot Prompting” is a prompt engineering
technique utilized to enhance the capabilities of natural language
processing models like ChatGPT by providing varying degrees of
contextual information during the inference process. This technique
is particularly useful when the model is tasked with generating
responses based on limited examples or context.
3.3.1 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
CEC, Mangalore
offer a prompt or instruction to the model.
For instance, if the task is to generate a poem about nature, the
user would input the prompt “Write a poem about nature” to ChatGPT.
Without
Fig. 3.1 Example of Zero Shot Prompting
any additional context or examples, ChatGPT utilizes its pre-existing
knowledge and understanding of language to generate a poem about
nature. This technique is particularly useful when users want the
model to demonstrate its generalization capabilities and produce
responses based solely on its internal knowledge. It allows for more
flexible and open- ended interactions with the model, where users
can explore its creativity and ability to generate text without relying on
specific examples. However, it’s important to note that Zero Shot
Prompting may sometimes result in responses that are less accurate
or relevant compared to prompts provided with examples or context.
Users should be mindful of this limitation and consider employing
other prompt engineering techniques, such as One Shot Prompting
or Few Shot Prompting, when more precise responses are required.
3.3.2 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 .
For example, if the task is to summarize a given paragraph of text,
the user would provide ChatGPT with a single sentence from that
paragraph. ChatGPT then leverages this example to understand the
context and generate a summary that aligns with the provided
sentence.
One Shot Prompting is particularly useful when users have
limited examples or context available but still want the model to
Introduction to AI and Applications 13
produce accurate and relevant responses. By offering a single
example, users can guide ChatGPT to generate responses that are
consistent with the provided context, leveraging the model’s ability
to generalize from limited data.
CEC, Mangalore
Fig. 3.2 Example of One Shot Prompting
Introduction to AI and Applications 15
However, it’s essential to note that the effectiveness of One Shot
Prompting may vary depending on the complexity of the task and the
quality of the example provided. In some cases, providing additional
examples or employing other prompt engineering techniques, such
as Few Shot Prompting, may be necessary to improve the accuracy
and relevance of ChatGPT’s responses.
Review Questions:
[Link] is prompt Engineering technique?
2. What is zero shot prompting?
3. What is one shot prompting?
L4:
3.3.3 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.
For example, if the task is to generate a product review for a new
smartphone, the user might provide ChatGPT with a few sentences
describing the smartphone’s features, specifications, and user
experience. ChatGPT then leverages these examples to understand
the context and generate a review that encompasses the provided
information.
Few Shot Prompting allows users to provide additional context
and guidance to ChatGPT, enabling the model to produce more
accurate and relevant responses compared to One Shot Prompting
or Zero Shot Prompting. By offering a few examples, users can help
ChatGPT better understand the nuances of the task and generate
responses that align closely with the provided context.
However, it’s important to note that while Few Shot Prompting
can enhance the model’s performance, it still relies on the quality
and relevance of the examples provided by the user. Users should
ensure that the examples are representative of the task and contain
CEC, Mangalore
sufficient information to guide ChatGPT effectively. Additionally,
users may need to experiment with the number and type of examples
provided to optimize the model’s performance for different tasks and
domains.
3.4 Self-Consistency Prompt
The Self-Consistency Prompt is a sophisticated prompt engineering
technique employed in natural language processing models like
ChatGPT to ensure the coherence and logical consistency of the
generated text. This technique involves providing the model with a
prompt that contains key information, statements, or facts that users
want the generated text to adhere to or remain consistent with
throughout the conversation. Unlike traditional prompts that simply
instruct the model to generate text
Introduction to AI and Applications 17
Fig. 3.3 Example of Few Shot Prompting
CEC, Mangalore
based on a given task or context, the Self-Consistency Prompt
includes specific elements aimed at guiding the model to maintain
consistency and coherence. These elements could include
background information, established facts, opinions, or constraints
relevant to the conversation topic.
For instance, in a scenario where ChatGPT is engaged in a
discussion about climate change, the Self-Consistency Prompt might
include scientific data, consensus statements, or commonly accepted
principles related to climate science. By incorporating this
information into the prompt, users guide ChatGPT to generate
responses that align with the provided context and remain
consistent with established scientific knowledge throughout the
conversation.
The Self-Consistency Prompt is particularly valuable in
situations where maintaining coherence and logical consistency is
crucial, such as educational content, technical discussions, or
decision-making processes. By anchoring the conversation to specific
information or constraints, users can ensure that ChatGPT generates
responses that are accurate, informative, and contextually
appropriate. However, it’s essential to strike a balance when crafting
Self-Consistency Prompts. Providing too much detail or overly
restrictive instructions may limit the model’s flexibility and
creativity, potentially leading to repetitive or unnatural responses.
Therefore, users should aim to provide sufficient guidance while
allowing ChatGPT the freedom to generate diverse and natural
language responses within the established constraints.
Review Questions:
[Link] is self-consistent prompt?
2. What is few shot prompting?
3. What is Chat GPT?
L5:
3.5 Prompt Gallery
The Prompt Gallery is a curated collection of prompts designed to
assist users in effectively guiding natural language processing
models like ChatGPT. It serves as a repository of predefined prompts
across various categories, providing users with a diverse range of
templates to address specific tasks and applications. From text
generation and summarization to sentiment analysis and question
answering, the Prompt Gallery offers a comprehensive selection of
Introduction to AI and Applications 19
prompts tailored to different use cases and domains.
Within the Prompt Gallery, users can explore and select prompts
based on their specific needs and preferences. Each prompt is
carefully crafted to provide clear instructions and guidelines for the
model, ensuring consistent and high-quality outputs. Whether users
are seeking to generate creative stories, analyze customer feedback,
extract key information from text, or translate content into different
languages, the Prompt Gallery offers a versatile array of prompts to
facilitate these tasks.
Moreover, the Prompt Gallery is continuously updated and
expanded with new prompts to accommodate evolving user
requirements and emerging applications. Users can also contribute
their prompts to the gallery, sharing their expertise and best
practices with the community. By leveraging the Prompt Gallery,
users can streamline their interactions with natural language
processing models, accelerate task completion, and enhance the
overall efficiency and effectiveness of their workflows.
3.5.1 Text Generation Prompts
Text Generation Prompts empower natural language processing
models like ChatGPT to produce text in various formats and styles.
These prompts may include instructions to generate narratives,
essays, product descriptions, or even poetry. By providing specific
tasks and guidelines, users can tailor the generated text to suit their
needs, whether for creative writing, content generation, or
storytelling purposes.
CEC, Mangalore
Fig. 3.4 Example of Text Generation Prompt
3.5.2 Text Classification— Sentiment Analysis Prompts
Text Classification— Sentiment Analysis Prompts guide models in
assessing the sentiment conveyed in a given text. Users can specify
tasks such as determining whether a product review expresses
positive,
Fig. 3.5 Example of Sentiment Analysis Prompt
negative, or neutral sentiment. These prompts enable applications
in sentiment analysis for market research, customer feedback
analysis, or social media monitoring, helping businesses gauge public
perception and sentiment towards their products or services.
Introduction to AI and Applications 21
3.5.3 Text Classification— Sentiment Rating Prompts
Similar to sentiment analysis prompts, Sentiment Rating Prompts
instruct models to assign a numerical rating to the sentiment
expressed in text. This approach allows for more nuanced analysis,
enabling users to quantify sentiment on a scale rather than simply
categorizing it. For instance, a model could rate a movie review on a
scale from 1 to 5 stars based on the reviewer’s sentiment, providing
finer-grained insights into audience opinions and preferences.
Fig. 3.6 Example of Sentiment Rating Prompt
3.5.4 Information Extraction - Entity Extraction Prompts
Entity Extraction Prompts guide models in identifying and
extracting
specific entities, such as names of people, organizations, or
locations,
from text. Users can employ these prompts for tasks like named
entity recognition, document indexing, or content analysis. For
instance, in news articles, entity extraction prompts can help identify
key figures, places, or events mentioned, facilitating content
categorization or summarization.
CEC, Mangalore
Fig. 3.7 Example of Entity Extraction Prompt
3.5.5 Information Extraction— Relation Extraction
Prompts
Relation Extraction Prompts enable models to identify and extract
relationships between entities mentioned in the text. Users can utilize
these prompts to uncover connections, associations, or interactions
between different entities, such as identifying familial relationships,
business partnerships, or cause-effect relationships in text data.
These prompts are valuable for tasks like knowledge graph
construction, information retrieval, or automated reasoning.
Fig. 3.8 Example of Relation Extraction Prompt
3.5.6 Question Answering— Closed-Domain QA Prompts
Closed-Domain QA Prompts direct models to answer specific
questions within a predefined domain or topic. These prompts
facilitate applications like customer support bots, where users seek
answers to common queries related to products, services, or policies.
Introduction to AI and Applications 23
By providing structured prompts, users can ensure accurate and
relevant responses tailored to the domain of interest, enhancing user
satisfaction and efficiency.
Fig. 3.9 Example of Closed-Domain QA Prompts
3.5.7 Question Answering - Open-Domain QA Prompts
Open-Domain QA Prompts task models by answering questions
across diverse topics or domains. These prompts encourage models
to leverage their general knowledge and understanding of the world
to provide informative and contextually relevant answers. Open-
domain QA prompts are useful for general-purpose information
retrieval, educational platforms, or virtual assistants where users
seek answers to a wide range of questions.
Fig. 3.10 Example of Open-Domain QA Prompt
3.5.8 Text Summarization Prompts
Text Summarization Prompts guide models in condensing longer
pieces of text into concise summaries while preserving key
information and main ideas. These prompts are valuable for
applications such as document summarization, news aggregation, or
content curation. By providing clear instructions, users can ensure
that the generated summaries accurately capture the essence of the
original text, making it easier for readers to grasp the main points
without having to read the entire document.
CEC, Mangalore
Fig. 3.11 Example of Text Summarization Prompt
3.5.9 Keywords Extraction Prompts
Keywords Extraction Prompts instruct models to identify and
extract
significant terms or phrases from text that encapsulate its main
themes or
Fig. 3.12 Example of Keyword Extraction Prompt
Prompts for Effective Writing 25
topics. These prompts are useful for tasks such as content tagging,
search engine optimization, or document indexing. By guiding on
identifying keywords, users can enhance content organization,
improve searchability, and facilitate information retrieval in large
text datasets.
3.5.10 Text Editing Prompts
Text Editing Prompts guide models in revising or refining text to
enhance clarity, coherence, or style. These prompts may include
tasks such as grammar correction, sentence restructuring, or
vocabulary enrichment. By leveraging text editing prompts, users
can automate proofreading tasks, improve the readability of their
writing, and ensure that their content adheres to language
conventions and standards.
Fig. 3.13 Example of Text Editing Prompt
3.5.11 Text Translation Prompts
Text Translation Prompts direct models to translate text from one
language to another, enabling cross-lingual communication and
information access. These prompts are essential for applications
such as multilingual content localization, language translation
services, or international
CEC, Mangalore
26 Prompt Engineering: Empowering Communication
Fig. 3.14 Example of Text Translation Prompt
communication platforms. By providing clear translation prompts,
users can obtain accurate and contextually appropriate translations,
facilitating seamless language exchange and understanding.
3.5.12 Text Transliteration Prompts
Text Transliteration Prompts guide models in converting text from
one writing system to another while preserving its pronunciation or
phonetic characteristics. These prompts are particularly useful for
tasks such as transliterating names, terms, or phrases between
languages or writing systems. By providing transliteration prompts,
users can ensure that text is accurately represented in different
scripts, facilitating cross-cultural communication and information
sharing.
Each of these prompt categories plays a crucial role in guiding
natural language processing models like ChatGPT to perform specific
tasks effectively and efficiently. By leveraging these prompts and
providing clear instructions, users can harness the full potential of
language models for a wide range of applications, from content
generation and analysis to translation and information retrieval.
Fig. 3.15 Example of Text Transliteration Prompt
3.6 Conclusion
In conclusion, this chapter has provided an extensive examination
of prompt engineering techniques tailored specifically to enhance
Prompts for Effective Writing 27
ChatGPT’s text generation capabilities. By dissecting each technique
with clarity and offering illustrative examples, readers have
gained a comprehensive understanding of how to leverage these
methods effectively. From foundational instruction-based prompts to
sophisticated reinforcement learning strategies, the chapter has
explored various facets of prompt engineering, including role
prompting, standard prompts, zero, one, and few-shot prompting, as
well as more intricate methodologies like the “Let’s think about this”
prompt and self-consistency prompt. Furthermore, the chapter has
discussed how combining multiple prompt engineering methods
synergistically can tailor ChatGPT’s responses to
diverse tasks and contexts. Ethical considerations and best practices
for responsible usage have also been addressed, emphasizing the
importance of mitigating biases and ensuring the ethical deployment
of AI models like ChatGPT.
By the chapter’s conclusion, readers are equipped with a robust
toolkit of prompt engineering techniques, poised to unlock the full
potential of ChatGPT across a spectrum of natural language
processing tasks. Whether navigating dialogue prompts, crafting
adversarial challenges [4], or employing reinforcement learning
prompts, this chapter serves as an invaluable guide for maximizing
the efficacy and versatility of ChatGPT in real-world applications.
With a nuanced understanding of prompt engineering techniques,
users can navigate the complexities of AI-driven text generation with
confidence and precision.
Review Questions:
[Link] is Text translation prompt?
2. What is key word extract prompt?
3. What summarization prompt
L6:
4. Prompts for Creative Thinking
1.1 Introduction
“Prompts for Creative Thinking” is a captivating chapter in “The
Prompt Revolution: Empowering Communication through Effective
Prompts” that invites readers to embrace their inner creativity and
explore new dimensions of thought. In a world that increasingly
values innovation and originality, creative thinking has become an
CEC, Mangalore
28 Prompt Engineering: Empowering Communication
essential skill across various domains. This chapter delves into the
power of prompts as catalysts for igniting imagination, sparking
innovative ideas, and overcoming mental blocks. It explores a wide
range of prompts designed to stimulate creative thinking and offers
practical strategies for leveraging them effectively.
Readers will embark on a journey through different techniques
and exercises that tap into their creative reservoirs. Whether
seeking fresh ideas for problem-solving, brainstorming innovative
solutions, or simply desiring to infuse more creativity into their daily
lives, this chapter provides a treasure trove of prompts to inspire
and ignite the creative spark.
From open-ended questions that challenge conventional
thinking to playful prompts that encourage unconventional
associations, readers will discover how prompts can expand the
boundaries of their imagination and unlock new possibilities. By
exploring diverse perspectives, connecting seemingly unrelated
concepts, and embracing curiosity, readers will be guided toward
cultivating a mindset that embraces creative thinking. Through real-
life examples and engaging exercises, readers will witness the
transformative power of prompts in unlocking their creative
potential. They will learn how to break free from mental constraints,
unleash their unique ideas, and embrace the joy of discovery.
“Prompts for Creative Thinking” encourages readers to embrace
the unknown, embrace ambiguity, and cultivate a mindset of
exploration. By incorporating these prompts into their personal
and professional lives, readers will be equipped to overcome
creative hurdles, think outside the box, and approach challenges
with fresh perspectives. Ultimately, this chapter serves as a roadmap
for fostering creative thinking, allowing readers to tap into their
innate creativity and harness it as a valuable tool for problem-solving,
innovation, and personal growth. Whether an aspiring artist, an
entrepreneur, or a professional seeking fresh insight, “Prompts for
Creative Thinking” offers a wealth of inspiration, techniques, and
prompts to empower readers on their creative journey.
1.2 Unlocking Imagination and Innovation
It is a comprehensive guide comprising the top 50 prompts to ignite
creativity and drive innovation within organizations. By
encouraging brainstorming sessions, embracing failure as a learning
opportunity, and fostering a culture of curiosity and
experimentation, this guide promotes an environment where
employees feel empowered to think outside the box and challenge
conventional norms. It emphasizes the importance of cross-
Prompts for Effective Writing 29
disciplinary collaboration, diversity, and inclusion, while also
advocating for continuous learning and adaptation to emerging
trends and technologies. Through clear goal-setting, autonomy, and
recognition of innovative contributions, organizations can cultivate
a dynamic atmosphere that inspires employees to unlock their full
creative potential and drive meaningful change.
Here are the top 10 prompts for unlocking imagination and
fostering 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.
These prompts are intended to spark your imagination,
encourage innovative thinking, and inspire creative exploration.
Feel free to adapt them, combine them, or use them as a starting
point for your imaginative ideas.
1.3 Brainstorming Prompts for Problem Solving
“Brainstorming Prompts for Problem Solving” offers a curated
selection of the top 10 prompts designed to facilitate effective
brainstorming and problem-solving sessions. This resource
encourages participants to explore innovative solutions and
approaches to tackling complex challenges by providing diverse
prompts. From encouraging lateral thinking and challenging
assumptions to promoting collaboration and embracing diverse
perspectives, these prompts foster a dynamic environment where
CEC, Mangalore
30 Prompt Engineering: Empowering Communication
creativity flourishes and novel ideas emerge. Whether addressing
organizational dilemmas, product development issues, or societal
concerns, this collection equips teams with the tools they need to
generate actionable insights and devise innovative solutions that
drive positive change.
Here are the top 10 prompts for brainstorming and problem-
solving:
1. Addressing the challenges of [specific industry] through
innovative problem-solving.
2. How can we optimize [specific process] for increased efficiency
and effectiveness?
3. Brainstorm solutions to enhance customer satisfaction in
[industry/ sector].
4. Identifying and overcoming obstacles to successful
project implementation.
5. Improving team communication and collaboration for better
problem- solving.
6. Strategies to reduce costs and increase profitability in
[specific business area].
7. Brainstorming ideas to enhance employee morale and job
satisfaction.
8. Developing innovative approaches to [specific market]
expansion.
9. Solving environmental sustainability challenges in
[industry/sector].
10. Addressing cybersecurity concerns and ensuring data protection.
These prompts are designed to stimulate your problem-solving
skills and inspire innovative thinking. Use them as a starting point
for brainstorming sessions, adapt them to suit your specific
challenges, and explore a wide range of ideas to find creative
solutions. Remember, the goal is to think freely, embrace diverse
perspectives, and uncover unique approaches to problem-solving.
1.4 Inspiring Prompts for Artistic Expression
“Inspiring Prompts for Artistic Expression” presents a curated
selection of prompts designed to ignite creativity and encourage
artistic exploration. Whether for seasoned artists seeking fresh
inspiration or beginners looking to unleash their creative potential,
this resource offers a diverse range of prompts spanning various
mediums and styles. From prompts that evoke emotions and
memories to those that challenge conventional techniques and
perspectives, individuals are invited to experiment, express
themselves authentically, and push the boundaries of their artistic
Prompts for Effective Writing 31
practice. With prompts that stimulate imagination and invite
personal interpretation, this collection catalyzes artistic growth and
self-expression, empowering individuals to create meaningful and
impactful works of art .
Here are a few prompts for inspiring artistic expression:
1. Create an artwork that represents the beauty of diversity and
inclusivity.
2. Illustrate a moment of personal triumph and resilience through
art.
3. Express the harmony between nature and technology in a
visual composition.
4. Capture the essence of a favorite childhood memory through
your artistic medium.
5. Create a piece that conveys the emotions of courage and bravery.
6. Illustrate the concept of time travel through a visual
storytelling artwork.
7. Use color and form to depict the energy of a bustling cityscape.
8. Craft an artwork inspired by a piece of literature that has
profoundly impacted you.
9. Illustrate the interconnectedness of all living things in a
nature- inspired piece.
10. Create a visual representation of the music that moves and
inspires you.
These prompts are designed to ignite your artistic inspiration
and encourage exploration of various artistic mediums. Use them as a
starting point for your creative endeavours, adapt them to suit your
unique style, and let your imagination soar. Remember, the goal is to
express yourself authentically and enjoy the process of artistic
creation.
1.5 Conclusion
“Prompts for Creative Thinking” unfolds as a gateway to boundless
innovation, guiding readers through a landscape rich with
possibilities.
This chapter, nestled within “The Prompt Revolution: Empowering
Communication through Effective Prompts,” concludes with a
profound call to embrace creativity as an intrinsic asset across all
spheres of life. It champions the significance of unleashing
imagination and pioneering thought in a world that cherishes
ingenuity and originality.
CEC, Mangalore
32 Prompt Engineering: Empowering Communication
This chapter propels readers toward a transformative journey
by unveiling an array of meticulously crafted prompts. It empowers
them to dismantle mental barriers, encouraging the birth of
innovative concepts and fostering a mindset teeming with original
ideas. These prompts, ranging from thought-provoking inquiries to
imaginative exercises, serve as catalysts for unconventional thinking
and pave the way for uncharted territories of creativity.
Ultimately, “Prompts for Creative Thinking” stands as a testament
to the power of prompts in unlocking the innate creativity within
individuals. It extends an invitation to embrace ambiguity, revel in
curiosity, and navigate unexplored realms of imagination. As readers
venture forth, armed with these innovative prompts, they embark
on a journey that transcends boundaries, ushering in a new era of
inventive thought and transformative endeavors.
Review Questions:
[Link] is brain storming prompt?
2. What is artistic creative expression?
3. What is creative thinking?
L7:
5. Prompts for Effective Writing
1.1 Introduction
“Prompts for Effective Writing” is a chapter that unveils a treasure
trove of inspiration and guidance to enhance writing skills and foster
creative expression. Whether you are an aspiring writer, a
professional wordsmith, or someone seeking to improve your written
communication, this chapter provides a wealth of prompts and
strategies to unlock your writing potential.
The chapter begins by emphasizing the importance of effective
writing and its impact across various domains. It explores the power
of words to convey ideas, evoke emotions, and engage readers. From
there, it dives into a collection of prompts specifically designed to
spark creativity, overcome writer’s block, and develop narrative
skills. These prompts cover a wide range of genres, styles, and
themes, catering to different interests and writing goals. From
fiction to non-fiction, poetry to storytelling, and descriptive writing
to persuasive pieces, readers will find prompts that inspire and
challenge them to explore new avenues of expression.
Through thought-provoking prompts, writers will be
Prompts for Effective Writing 33
encouraged to delve into their imagination, draw from personal
experiences, and observe the world with a fresh perspective. They
will be prompted to create vivid characters, build immersive worlds,
craft compelling narratives, and infuse their writing with authentic
voices. In addition to sparking creativity, the chapter provides
practical strategies for overcoming common writing challenges. It
offers techniques to conquer writer’s block, develop writing
routines, and refine the craft of storytelling. It encourages writers to
experiment with different writing exercises and prompts, pushing
the boundaries of their comfort zones and embracing the joy of the
writing process. The chapter highlights the importance of revision
and editing in the writing journey. It guides writers in refining their
work, enhancing clarity, and polishing their prose. By offering tips
and techniques for self-editing and seeking feedback, writers can
elevate the impact of their words and communicate more effectively
with their readers.
“Prompts for Effective Writing” is a valuable resource for writers
at all levels, providing a roadmap to inspire creativity, overcome
hurdles, and refine the art of written expression. Whether you are
working on a novel, blog posts, essays, or simply seeking to improve
your writing skills, these prompts will guide you on a transformative
writing journey, empowering you to captivate readers, articulate
ideas with clarity, and unleash your unique voice on the page.
1.2 Igniting the Writing Process with Prompts
“Igniting the Writing Process with Prompts” serves as a
comprehensive guide to invigorate and streamline the writing
journey through the strategic use of prompts. Nestled within the
pages of this chapter, writers find a treasure trove of inspiration and
practical strategies tailored to fuel creativity and overcome
obstacles. From prompts designed to spark imagination and banish
writer’s block to those crafted to refine storytelling skills and enhance
expression, this resource illuminates’ pathways for writers of all
levels to navigate the intricacies of the writing process with
confidence and clarity. By harnessing the transformative power of
prompts, writers are empowered to embark on transformative
journeys, crafting compelling narratives, and forging deeper
connections with their audience.
Here are the 10 sample prompts to ignite the writing process
and inspire creativity:
1. Explore the concept of time travel in a short story or essay.
CEC, Mangalore
34 Prompt Engineering: Empowering Communication
2. Write about a character who discovers a hidden world
within everyday objects.
3. Describe a day in the life of someone living on a different planet.
4. Use a photograph as inspiration to craft a short story or poem.
5. Write about a moment of serendipity that changes a character’s
life.
6. Imagine a world where emotions are tangible and can be
exchanged between people.
7. Create a story inspired by a vivid dream you’ve had recently.
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 concept of a forbidden library with magical books.
These prompts ignite your imagination, spark creativity, and
jumpstart the writing process. Use them as starting points for your
unique stories, essays, or poems, and let your creativity flow as you
explore new ideas and perspectives.
1.3 Prompts for Overcoming Writer’s Block
“Prompts for Overcoming Writer’s Block” offers a lifeline to writers
grappling with creative stagnation by presenting a curated selection
of prompts meticulously designed to reignite inspiration and
overcome the formidable barrier of writer’s block. Within this chapter,
writers discover a diverse array of prompts tailored to stimulate
imagination, unlock dormant ideas, and reignite the creative spark.
From exercises that encourage free association and exploration of
personal experiences to prompts that challenge conventional
thinking and prompt unconventional perspectives, this resource
equips writers with the tools to break through mental barriers and
unleash their creativity onto the page. By providing targeted prompts
and practical techniques, this chapter empowers writers to navigate
the challenges of writer’s block with confidence, ultimately
revitalizing their writing process and reigniting their passion for
storytelling .
Here are the top 10 prompts to help overcome writer’s block
and inspire your writing:
1. Explore the concept of a character who is also experiencing
writer’s block.
2. Write about a character who finds inspiration in unexpected
places.
3. Describe a writing exercise that helps break through creative
barriers.
Prompts for Effective Writing 35
4. Create a story where the protagonist battles a literal
representation of writer’s block.
5. Write a dialogue between two characters discussing strategies
for overcoming creative obstacles.
6. Describe a character who turns to nature to find inspiration
and
overcome writer’s block.
7. Write about a writer who discovers a magical pen that dispels
writer’s block.
8. Explore the idea of a character seeking advice from a mentor to
overcome creative stagnation.
9. Write a letter to yourself offering encouragement and
motivation during a writing slump.
10. Describe a character who finds inspiration through travel and
new
experiences.
These prompts are designed to inspire you, spark your creativity,
and help you overcome writer’s block. Use them as a starting point
for your writing practice, adapt them to suit your preferences, and let
them guide you back to the joy of writing.
Review Questions:
[Link] is igniting writing?
2. What is effective prompt writing?
L8:
1.4 Prompts for Developing Narrative Skills
“Prompts for Developing Narrative Skills” offers a structured approach
to enhancing storytelling abilities and narrative proficiency across
various domains. This chapter emphasizes the significance of
prompts in guiding individuals through crafting compelling
narratives, whether for personal or professional purposes. Through a
curated selection of prompts spanning different genres, themes, and
storytelling techniques, readers are provided with the tools to explore
their creativity, develop characters, plot arcs, and settings, and
refine their storytelling voice. These prompts prompt individuals to
delve into their imagination, evoke emotions, and weave narratives
that resonate with audiences. By engaging with these prompts,
individuals can sharpen their narrative skills, experiment with
CEC, Mangalore
36 Prompt Engineering: Empowering Communication
storytelling structures, and hone their ability to communicate ideas
effectively through narratives. The chapter also offers insights into
narrative theory, storytelling best practices, and techniques for
overcoming common narrative challenges. Whether used for writing
fiction, crafting marketing narratives, or delivering presentations,
“Prompts for Developing Narrative Skills” empowers individuals to
become more adept storytellers, capable of captivating audiences
and conveying messages with impact.
Here are a few prompts for developing narrative skills:
1. Craft a story about a character who discovers a mysterious
object with unique powers.
2. Write a narrative set in a future world where technology
has transformed daily life.
3. Create a story that explores the concept of time travel and
its consequences.
4. Develop a narrative around a character overcoming a personal
fear or phobia.
5. Write a story set in a magical realm where animals possess
human- like qualities.
6. Explore the challenges and triumphs of a character’s journey to
self- discovery.
7. Develop a story centered around a misunderstood villain and
their redemption arc.
8. Write about a character who uncovers a family secret that
changes their life.
9. Create a narrative set in a dystopian society where conformity
is strictly enforced.
10. Develop a story about a character’s quest for a long-lost treasure.
These prompts are designed to stimulate your imagination,
develop your narrative skills, and provide inspiration for
storytelling. Use them as a starting point for your creative writing,
adapt them to suit your style, and let your creativity flow as you
explore new characters, settings, and plotlines.
1.5 Conclusion
“Prompts for Effective Writing” offers a panoramic vista of
inspiration, guidance, and empowerment for writers of all stripes.
Through a meticulously curated collection of prompts and
strategies, this chapter acts as a lighthouse, illuminating the winding
paths of creative expression and written finesse.
Beginning with the profound impact of potent writing across
diverse realms, the chapter unveils a treasure trove of prompts
Prompts for Effective Writing 37
designed to ignite the imagination, conquer hurdles, and refine the
art of storytelling. Spanning genres, styles, and themes, these
prompts beckon writers to embark on transformative journeys,
from crafting immersive narratives to honing persuasive prose.
Beyond mere sparks of creativity, this chapter equips writers
with practical techniques to navigate obstacles. Techniques to vanquish
writer’s block, establish writing routines, and embrace the essence of
storytelling are generously shared. Moreover, it accentuates the
importance of revision and editing, empowering writers to polish
their prose and forge deeper connections with their readers.
In essence, “Prompts for Effective Writing” isn’t just a
compendium of prompts; it’s a roadmap guiding writers toward the
zenith of their craft. Whether forging novels, essays, or seeking to
refine communication skills, these prompts catalyze transformative
writing journeys. They empower writers to captivate, articulate with
eloquence, and unfurl their unique voices onto the canvas of
language, fostering a landscape where creativity reigns supreme.
CEC, Mangalore