AI Prompt Engineering

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/38

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

39 Terms

1
New cards
Role–Task–Format
The three essential components every effective prompt must specify.
2
New cards
Role definition
Sets expected expertise
3
New cards
Task instructions
Tell the model exactly what to do and how to approach the task.
4
New cards
Output format specification
Ensures answers are structured
5
New cards
Anchoring
Placing key constraints at the beginning and end to increase adherence.
6
New cards
Grounding
Forcing the model to rely on provided text/data instead of general knowledge.
7
New cards
Chain-of-thought (CoT)
Requesting explicit intermediate reasoning steps for complex tasks.
8
New cards
When to avoid CoT
When concise answers are needed or hallucination risk increases.
9
New cards
Few-shot prompting
Providing examples to teach a pattern or structure.
10
New cards
Least-to-most prompting
Breaking a complex task into smaller ordered subproblems.
11
New cards
Tree-of-thoughts
Exploring multiple reasoning branches and picking the best path.
12
New cards
Self-consistency
Sampling multiple reasoning paths and selecting the majority answer.
13
New cards
ReAct
Interleaving reasoning with actions or tool use based on observations.
14
New cards
Metacognitive prompting
Instructing the model to reflect on assumptions or missing information before answering.
15
New cards
Purpose of metacognition
Improves reasoning reliability and reduces subtle errors.
16
New cards
Self-critique prompting
Having the model evaluate its own output for flaws or gaps.
17
New cards
Self-refinement loop
A cycle of answer → critique → revise to improve output quality.
18
New cards
Alternative-consideration prompting
Asking the model what other interpretations or solutions it considered.
19
New cards
Confidence scoring
Requiring the model to report uncertainty to reduce fabricated answers.
20
New cards
Constraints
Rules that limit length
21
New cards
Output determinism
Using structure plus low temperature to ensure consistency.
22
New cards
Format enforcement
Requiring JSON
23
New cards
Dual placement of constraints
Putting rules at start and end to increase adherence.
24
New cards
Prompt compression
Expressing instructions in fewer tokens without losing structure.
25
New cards
Evaluation via examples
Testing prompts on example sets to ensure correctness and robustness.
26
New cards
Debugging prompts
Testing each requirement separately to isolate failures.
27
New cards
Asking for reasoning explanation
Reveals misunderstandings behind incorrect answers.
28
New cards
Hallucination trigger
Any task requiring explanation without grounding.
29
New cards
Hallucination prevention
Forcing model to cite provided text or source locations.
30
New cards
Constraint failure cause
Constraints placed only in the middle or conflicting instructions.
31
New cards
Fixing structural drift
Provide explicit templates and require exact replication.
32
New cards
Ambiguity resolution
Add minimal few-shot examples to clarify vague tasks.
33
New cards
Retrieval-augmented prompting
Providing documents or data that the model must use to answer accurately.
34
New cards
Prompt chaining
Solving a task as multiple sequential prompts that refine one another.
35
New cards
Constitutional principles
Rules guiding model behavior for accuracy
36
New cards
Agentic planning
Instructing the model to outline a step-by-step plan before acting.
37
New cards
Tool-aware prompting
Designing prompts assuming the model can call functions or APIs.
38
New cards
Ensemble prompting
Generating multiple answers and merging
39
New cards
Schema-based prompting
Using predefined templates or structures filled programmatically for consistent outputs.