Interface: TextGenerationPromptTemplate<SOURCE_PROMPT, TARGET_PROMPT>
Prompt templates format a source prompt as a target prompt.
Type parameters
Name |
---|
SOURCE_PROMPT |
TARGET_PROMPT |
Hierarchy
-
PromptTemplate
<SOURCE_PROMPT
,TARGET_PROMPT
>↳
TextGenerationPromptTemplate
Methods
format
▸ format(sourcePrompt
): TARGET_PROMPT
Formats the source prompt as a target prompt.
Parameters
Name | Type |
---|---|
sourcePrompt | SOURCE_PROMPT |
Returns
TARGET_PROMPT
Inherited from
Defined in
packages/modelfusion/src/model-function/PromptTemplate.ts:8
Properties
stopSequences
• stopSequences: string
[]
The texts that should be used as default stop sequences. This is e.g. important for chat formats.
Defined in
packages/modelfusion/src/model-function/generate-text/TextGenerationPromptTemplate.ts:12