PE2
PE2
Q.1)
1. Be Clear: Say exactly what you want.
2. Keep It Short: Use as few words as possible.
3. Be Specific: Give details so there’s no confusion.
4. Use Action Words: Start with verbs like “write,” “explain,” or
“list.”
5. Know Your Audience: Use words they’ll understand.
6. Avoid Bias: Don’t push for a certain answer.
7. Stay Organized: Use steps or bullet points for complex tasks.
Q.2)
In prompt engineering, temperature and tokens are crucial for
controlling the behavior and quality of the AI’s output. Let’s break
them down:
1. Temperature:
What it does: Temperature controls the randomness of the AI’s
responses. It affects the creativity and determinism of the output.
Why it’s important: It helps tailor the response style to the task at
hand, ensuring better alignment with the user’s needs.
2. Tokens:
What they are: Tokens are chunks of text the model processes.
One token is typically about 4 characters of English text.
Token limit: Each prompt and response has a token limit, which
affects how much context the model can consider at once.
Q.3)
Different AI models interpret prompts differently based on their
architecture, training data, and intended purpose. Let’s break it
down across a few key model types:
Example: GPT can write a full story from a single prompt, inferring
tone and style.
Q.4)
Fine-tuning in prompt engineering is important because it helps AI
models give better and more accurate answers by teaching them
to focus on specific tasks. Here’s why it matters in simple terms:
2. Improves Accuracy:
The AI learns to be more precise, reducing mistakes in its
responses.
3. Understands Context:
Fine-tuning helps the AI understand the context of the question,
giving more meaningful answers.
4. Reduces Bias:
It corrects unfair patterns in the AI, making the answers more
balanced.
5. Saves Effort:
After fine-tuning, you don’t need long prompts. The AI already
knows what to do, making it faster and easier to use.
Q 5)
Transformer learning enhances with prompt engineering because
prompt engineering helps the AI give better and more accurate
answers. Here are five key points:
Q.7
Iterative Prompt Design improves AI responses by refining
prompts step-by-step to achieve better accuracy, clarity, and
relevance. Here are five key points:
1. Improves Clarity:
Each iteration simplifies and clarifies the prompt, ensuring the AI
understands the task better.
Example: First prompt: “Summarize this article.” → Improved
prompt: “Summarize this article in 3 points, focusing on key
ideas.”
2. Corrects Errors:
Identifies mistakes in AI responses and refines the prompt to
reduce errors and improve accuracy.
3. Enhances Precision:
Adjusts prompts to focus on specific details, making responses
more relevant and on-point.
4. Customizes Output:
Allows tailoring prompts to achieve the desired tone, style, or
format according to user needs.
5. Optimizes Performance:
Repeated refinement boosts AI performance, producing more
polished and high-quality answers.
Q.8)
In NLP (Natural Language Processing), a context-sensitive form
helps AI understand the meaning of words or sentences by
looking at the surrounding context. Here’s why it’s important:
2. Reduces Confusion:
Clarifies confusing sentences.
Example: “He saw the man with binoculars.” — Did he have
binoculars, or did the man?
3. Understands Pronouns:
Figures out who he, she, or it refers to.
Example: “Sara told Amy she won.” — Context shows who won.
4. Detects Emotions:
Understands the tone of a sentence.
Example: “I love this scary movie!” — “Scary” isn’t negative here
because the context shows excitement.
5. Improves Translations:
Makes translations more accurate by understanding the full
meaning.
Example: “I’ll drop you a line” means “I’ll contact you,” not
dropping an actual line.
Q.9)
Multiple Steps Prompting means breaking down a complex task
into smaller, clear steps when giving instructions to AI. This helps
the model understand the task better and produce more accurate
results.
Significance of complex tasks:
1. Improves Clarity:
Splits the task into smaller parts, making the AI’s job easier and
reducing confusion.
Example: Instead of asking, “Write a report on climate change,”
you can break it down into:
Step 1: Define climate change.
3. Reduces Errors:
Smaller steps help identify mistakes early, so you can fix them
before moving to the next step.
4. Manages Complexity:
Simplifies big projects by turning them into manageable parts.
This is useful for tasks like coding, problem-solving, or creative
writing.
5. Boosts Creativity:
Encourages diverse ideas by prompting the AI to generate
different solutions at each step.