Prompts
Prompt Templates
This page will tell you how to use prompt templates with Flush. Prompt templates are pre-defined recipes for generating prompts for language models.
Prompt Template
We use Python’s f-string as the template format for prompt templates.
To get the formatted output from a PromptTemplate
, simply do the following:
This can then be passed as model input with chains as shown here.