AI engineering glossary · Prompt context engineering
What is prompt template?
Prompt template: A reusable prompt text with named blanks that are filled in with real values at run time. It keeps the fixed instructions consistent and lets code insert the changing parts. Templates are the base unit for versioning and testing prompts.
Prompt template: an example
'Translate the following {source_lang} text to {target_lang}: {text}' is filled with Hindi, English and a customer message.
Related terms
More Prompt context engineering terms
- Prompt versioning
- Pydantic validation of LLM output
- Quote-first prompting
- ReAct prompting
- Reasoning effort
- Recency bias in prompts
- Refine summarisation
- Reflexion
Where you learn it
Prompt template is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.