LLM Prompt Template
Jump to navigation
Jump to search
An LLM Prompt Template is a template for an LLM prompt.
- Context:
- a Few-Shot Prompt Template.
- ...
- Example(s):
- a LangChain Prompt Template (LangChain).
- ...
- See: openai.ChatCompletion.
References
2023
- https://python.langchain.com/en/latest/modules/prompts/prompt_templates/getting_started.html
- A prompt template refers to a reproducible way to generate a prompt. It contains a text string (“the template”), that can take in a set of parameters from the end user and generate a prompt.
The prompt template may contain:
- instructions to the language model,
- a set of few shot examples to help the language model generate a better response,
- a question to the language model.
- A prompt template refers to a reproducible way to generate a prompt. It contains a text string (“the template”), that can take in a set of parameters from the end user and generate a prompt.