0% found this document useful (0 votes)
4 views12 pages

Module 2 Civil

The document provides an introduction to Artificial Intelligence (AI), including its definitions, applications, and the importance of prompts in AI interactions. It explains concepts like Large Language Models (LLMs) and Generative AI (GenAI), as well as techniques for effective prompt engineering to enhance AI responses. Additionally, it discusses the future of prompt engineering and its role in improving creativity, storytelling, and problem-solving skills.

Uploaded by

dmanishashank
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views12 pages

Module 2 Civil

The document provides an introduction to Artificial Intelligence (AI), including its definitions, applications, and the importance of prompts in AI interactions. It explains concepts like Large Language Models (LLMs) and Generative AI (GenAI), as well as techniques for effective prompt engineering to enhance AI responses. Additionally, it discusses the future of prompt engineering and its role in improving creativity, storytelling, and problem-solving skills.

Uploaded by

dmanishashank
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Introduction to Artificial Intelligence and Applications-1BAIA103

MODULE - 2

Introduction to AI

What is AI (Artificial Intelligence)?


AI means making computers smart so that they can think and act like humans.

AI helps machines to:

• Learn things

• Think logically

• Make decisions

Everyday Examples:

• Google Maps → Finds the fastest route

• Netflix → Suggests movies you might like

• ATM Machines → Detects fraud automatically

Important Point:

AI is the big umbrella.


Everything else like LLM and GenAI comes under AI.

What is an LLM (Large Language Model)?


An LLM is a type of AI that understands and uses human language.

It is trained on:

• Books

• Articles

• Websites

So, it learns how language works.

Examples:

• ChatGPT → Answers questions

• Google Gemini (Bard) → Summarizes long text

Simple Analogy:

Think of an LLM like a very smart English teacher

• Ask: “Explain photosynthesis”

• It answers like a teacher explaining in class

1
Introduction to Artificial Intelligence and Applications-1BAIA103

What is GenAI (Generative AI)?

GenAI is AI that creates new things, not just answers.

It can create:

• Text → Essays, stories, poems

• Images → Drawings from text

• Music → Songs

• Videos → Short clips

Examples:

• ChatGPT → Writes essays

• DALL·E / MidJourney → Creates images from descriptions

PROMPT:

What is a Prompt?
A prompt is the input you give to the AI so it understands what you want.

It can be:

• A question

• A command

• An instruction

Why is a Prompt Needed?


AI does not think on its own like humans.
It waits for instructions.

A prompt:

• Guides the AI → Tells it what task to do

• Improves answers → Clear prompt = better answer

• Avoids confusion → AI knows exactly what you expect

2
Introduction to Artificial Intelligence and Applications-1BAIA103

Difference Between a Good Prompt and a Bad Prompt


Bad Prompt Good Prompt

Not clear Clear and specific

Very short or incomplete Gives enough details

No format mentioned Format is clearly mentioned

AI may get confused AI understands exactly

Output may be poor Output is accurate and useful

What is Prompt Engineering, and explain its steps?


Prompt Engineering is the process of writing smart instructions for AI so that it gives the best
answers.

5 Steps of Prompt Engineering

1. Understand the Task

• First, clearly understand what you want the AI to do.

• Decide the goal before writing the prompt.

Example:
“Write an apology email for a delayed response.”

2. Use Precise Language

• Use simple, clear, and direct words.

• Avoid confusing terms or unnecessary jargon.

Example:

• Bad: “Create a letter”

• Good: “Write a formal letter to apologize for the delay.”

3. Add Specific Details

• Give enough details so the AI knows exactly what to generate.

• More clarity leads to better output.

Example:
“Write a poem about summer using beach and sunshine imagery.”

3
Introduction to Artificial Intelligence and Applications-1BAIA103

4. Provide Examples

• Give a sample format or style to guide the AI.

• Examples help the AI understand your expectations.

Example:
“Write a summary in bullet points like this:
• First point
• Second point”

5. Experiment and Refine

• Try different versions of your prompt.

• Modify or add details if the output is not correct.

Example:
Change the wording or include more context until the desired output is achieved.

Explain The Types of Prompts

Explain the Types of Prompts

Natural Language Prompt

A Natural Language Prompt is written just like normal human language.

Example:

Prompt:
“Can you explain how photosynthesis works?”

Output:
“Photosynthesis is how plants make food using sunlight.”

4
Introduction to Artificial Intelligence and Applications-1BAIA103

✔ Key Points:

• Easy to write

• Sounds natural

• Just ask like you talk to a person

System Prompt

A System Prompt gives rules to the AI.

It tells the AI:

• What style to use

• What tone to follow

• What format to write in

Example:

Prompt:
“Write a formal email explaining the delay in project delivery.”

Output:

• Formal language

• Proper email format

✔ Key Point:

• Controls tone and structure

Conditional Prompt

A Conditional Prompt uses conditions like IF – THEN.

Example:

Prompt:
“If the user asks about weather, give a weather update.
If the user asks about sports, give sports news.”

Input:
“What’s the weather today?”

Output:
“Today is sunny with a high of 25°C.”

✔ Key Point:

• AI responds based on the condition

5
Introduction to Artificial Intelligence and Applications-1BAIA103

Prompting Techniques

1. Zero-Shot Prompting (No Example)

You directly ask the AI.


No example is given.

Example:

Prompt:
“Define Artificial Intelligence.”

AI Answer:
Artificial Intelligence is the ability of a computer or machine to perform tasks that normally
require human intelligence.

AI answers using its own knowledge.

2. One-Shot Prompting (One Example)

You give one example, then ask a similar question.

Example:

Example given to AI:


2+3=5

Prompt:
“Using the above example, find 4 + 6.”

AI Answer:
4 + 6 = 10

3. Few-Shot Prompting (More Than One Example)

You give two or more examples, then ask the question.

Example:

Examples given to AI:


1+2=3
3+4=7

Prompt:
“Using the above examples, find 5 + 6.”

AI Answer:
5 + 6 = 11

6
Introduction to Artificial Intelligence and Applications-1BAIA103

Explain the types of writing prompts .


Types of Writing Prompts
1. Creative Writing Prompts
These prompts help you use your imagination. They are useful for writing stories, poems, and
fictional pieces.
2. Descriptive Writing Prompts
These prompts focus on describing people, places, or objects in detail, helping improve
observation and description skills.
3. Problem-Solving Writing Prompts
These prompts help you think logically and solve problems through writing. They encourage
critical thinking.
4. Reflective Writing Prompts
These prompts encourage you to write about your personal experiences, thoughts, and
feelings, helping in self-reflection.
5. Persuasive Writing Prompts
These prompts help you practice convincing the reader about your opinion or point of view on
a topic.

Explain “Igniting the Writing Process with Prompts.” Discuss


how writing prompts help improve creativity, storytelling skills,
and confidence with suitable examples.
Igniting the Writing Process with Prompts
“Igniting the Writing Process with Prompts” helps writers start writing easily and confidently. It gives
simple prompts and useful tips that help writers overcome problems like writer’s block and improve
their writing skills.
1. Encourages Creativity
Writing prompts help generate new ideas and spark imagination. They give you a starting point when
you don’t know what to write.
Example:
Prompt: “Write about a character who discovers a hidden door in their house.”
This helps you imagine a mystery or adventure story and begin writing easily.
2. Overcomes Writer’s Block
When you feel stuck and cannot write, prompts give clear direction and help you move forward.
Example:
Prompt: “Describe a place where you feel most at peace.”
This helps you focus on describing a calm place and start writing without stress.
3. Improves Storytelling Skills
Prompts help you think about characters, settings, and conversations, which improves storytelling.
Example:
Prompt: “Write a dialogue between two people who have just met.”
This improves your ability to write conversations and create interesting characters.

7
Introduction to Artificial Intelligence and Applications-1BAIA103

4. Enhances Expression
Prompts encourage you to express thoughts and emotions in creative ways through stories, essays, or
poems.
Example:
Prompt: “Write a poem about a rainy day.”
This helps you practice descriptive language and creative expression.
5. Gives Clear Direction for Writing
Prompts guide your thinking and help organize ideas, making writing easier and more structured.
Example:
Prompt: “Write an essay explaining why online education is the future.”
This helps you plan your ideas and write a clear, organized essay.
6. Builds Confidence
Using prompts regularly helps writers feel confident because they always know how to begin.
Example:
Prompt: “Write a letter to your future self.”
This personal writing builds comfort and confidence in expressing ideas.

Explain Prompt Engineering and discuss its importance in


Artificial Intelligence. Also describe the future of Prompt
Engineering.
Prompt Engineering means writing clear and proper instructions to get the best answers from AI
tools like ChatGPT
It helps users:
• Get accurate answers
• Get relevant information
• Get clear and meaningful output

Why is Prompt Engineering Important


1. Relevance
• Good prompts help AI give answers related to the question.
• Clear instructions avoid confusion.
• AI does not give unnecessary or wrong information.
This helps in getting answers that match the task.

2. Accuracy
• Proper prompts help AI give correct and meaningful answers.

8
Introduction to Artificial Intelligence and Applications-1BAIA103

• When instructions are clear, AI understands the requirement better.


• This increases reliability of the response.

3. Versatility
• Prompt engineering helps AI perform many different tasks.
• By changing the prompt, AI can create:
o Educational explanations
o Technical documents
o Creative writing
o Professional reports
o Casual conversations
Future of Prompt Engineering (Simple & Easy Explanation)
As Artificial Intelligence is improving, prompt engineering will also become more advanced. Some
future improvements are:

1. Automated Prompt Generation


• AI may create prompts automatically.
• Users do not need to write detailed instructions.
• It saves time and makes AI easier to use.

2. Dynamic Prompts
• Prompts can change based on conversation and user needs.
• AI can adjust its answers according to the situation.
• This helps in better interaction with users.

3. Contextual Awareness
• Future AI will understand user context and intention better.
• AI responses will become more natural and personalized.
• It will feel more like talking to a human.

How Instructions Prompt Technique Works


The Instructions Prompt Technique means giving clear instructions to AI about how to answer.

9
Introduction to Artificial Intelligence and Applications-1BAIA103

Step 1: Provide Clear Instructions


• The user tells AI exactly what type of answer is needed.
• Instructions can include style, format, or level of difficulty.
Example:
"Explain Machine Learning in simple language with real-life examples for beginners."

Step 2: AI Generates Response


• AI reads and understands the instructions.
• It gives an answer based on the given directions.
• Clear instructions give better and more accurate results.

Explain the Top 10 Prompts for Unlocking Imagination and


Innovation
1. How can creativity lead to major innovations?
Creative thinking helps produce new and powerful ideas.
2. Impact of a creative mindset on problem-solving
Thinking creatively helps find unique and effective solutions.
3. Ways to build a culture of innovation
Creating an open and supportive environment helps new ideas grow.
4. Role of play and experimentation
Trying new things and having fun with ideas boosts creativity.
5. Inspiring curiosity in the workplace
Curiosity encourages people to explore and think differently.
6. Does education support or limit creativity?
This helps us understand how learning systems affect imagination.
7. Learning from failure
Failure teaches lessons that lead to better ideas and innovation.
8. Using technology to support creativity
Technology can make idea generation faster and easier.
9. Importance of teamwork across fields
Different skills and ideas together create innovative solutions.
10. Role of leadership in innovation
Good leaders motivate, support, and encourage creative thinking.

Explain the Self-Consistency Prompt

10
Introduction to Artificial Intelligence and Applications-1BAIA103

A Self-Consistency Prompt is a prompt engineering technique in Artificial Intelligence in which


predefined facts, rules, or constraints are included in the prompt to ensure that the AI generates
responses that are logically consistent, factually accurate, and aligned with the given information.
Self-Consistency Prompt – Simple Explanation
A Self-Consistency Prompt means giving AI some clear facts or rules and asking it to answer
without changing or contradicting those facts.
In easy words:
It is like telling AI, “Follow these points and give your answer based only on them.”

Why it is used
It helps AI to:
1. Stay correct – doesn’t give wrong or opposite information.
2. Stay clear – answer is easy to understand.
3. Stay logical – ideas connect properly.

How it works

You give facts or rules


Example:
Climate change happens because of burning fossil fuels. Earth temperature increased by 1.1°C.

AI follows those facts


It uses only that information to answer.

AI gives a proper explanation


Answer will match the facts and will not go off topic.

Simple Example
Prompt:
Climate change is caused by humans burning fossil fuels. Earth temperature increased by 1.1°C.
Explain how this affects animals.
Answer:
Animals may lose their habitats, migrate to cooler places, or struggle to survive because of
temperature increase.

✔ Answer follows given facts


✔ No contradiction
✔ Easy to understand

When we use it
• Studying and learning topics

11
Introduction to Artificial Intelligence and Applications-1BAIA103

• Science and technical subjects


• Making decisions using correct information

12

You might also like