The TryHackMe Prompt Engineering Room is a free room from TryHackMe and is part of the AI Security Learning path. It focuses on how LLM’s process text inputs and how you can create prompts. The room is available at: https://tryhackme.com/room/promptengineeringaisec
1.1 What is the term for the smallest units that an LLM breaks text into in order to process it?
Answer: Tokens
1.2 What parameter would you set to 0.0 to make an LLM behave as close to deterministic as possible?
Answer: Temperature
1.3 What parameter restricts which tokens the model considers by limiting selection to a cumulative probability mass?
Answer: Top-p
1.4 What term describes the maximum working memory of an LLM, measured in tokens?
Answer: Context Window
2.1 Which pillar instructs the model on how the answer should be structured, such as bullet points or a JSON object?
Answer: Output Format
2.2 Which pillar specifies rules or limits imposed on the model’s response, such as enforcing a tone or forbidding certain topics?
Answer: Constraints
2.3 Which pillar provides the AI with relevant background information or scenario so it understands the situation?
Answer: Context
2.4 Which pillar of prompt engineering defines the core command or action you want the AI to perform?
Answer: Instruction
3.1 What type of prompt is developer-defined, persistent, and remains constant across all sessions?
Answer: System prompt
3.2 What is the term for the intended order of priority between system and user instructions in an LLM application?
Answer: Instruction hierarchy
4.1 What is the term for the prompting technique introduced by Google researchers in 2022 that asks models to break tasks into intermediate reasoning steps?
Answer: Chain-of-Thought
4.2 What prompting technique involves providing no examples and relying entirely on the model’s pre-trained knowledge?
Answer: Zero-shot
4.3 What prompting technique involves saving and reusing a standardised prompt structure for recurring tasks?
Answer: Prompt Templates
4.4 What simple phrase can be added to a prompt to trigger Zero-shot Chain-of-Thought reasoning?
Answer: Let’s think step by step
5.1 What’s the flag?
Answer: THM{Pr0mpt_3ng1neer}