prompt template
A prompt with placeholders that code fills in for each request, such as the user's question or retrieved passages.
In more detail
Keep templates in the repository with a version, fence each inserted part in a named section, and escape inserted text so it cannot close a section early. Rendering in one function keeps every request consistent and testable.
Related terms
- prompt — The text and other content you send a model to get a reply: instructions, context, examples and the request itself.
- prompt delimiter — A marker, such as an XML-style tag or a fenced block, that separates the parts of a prompt so the model can tell instructions from data.
- prompt versioning — Treating prompts as code: kept in the repository, given a version that travels with each request, reviewed and tested before release.
Taught in
- Anatomy Of A Prompt — AI Engineering: LLM Apps, RAG & Agents
- What MCP Is — AI Engineering: LLM Apps, RAG & Agents