Skip to main content
A PromptTemplate class is used to create and organize the messages (prompts) that are sent to a language model. It allows you to define a basic structure for the prompt, making it easy to manage and reuse across different situations. This helps maintain consistency and simplifies prompt formatting when interacting with the model.

Parameters