Interface FewShotPromptTemplateInput

Input common to all prompt templates.

Hierarchy

Implemented by

Properties

examplePrompt: PromptTemplate<any, any>

An PromptTemplate used to format a single example.

inputVariables: string[]

A list of variable names the prompt template expects

exampleSelector?: BaseExampleSelector

An BaseExampleSelector Examples to format into the prompt. Exactly one of this or examples must be provided.

exampleSeparator?: string

String separator used to join the prefix, the examples, and suffix.

examples?: Example[]

Examples to format into the prompt. Exactly one of this or exampleSelector must be provided.

outputParser?: BaseOutputParser<unknown>

How to parse the output of calling an LLM on this formatted prompt

partialVariables?: PartialValues<any>

Partial variables

prefix?: string

A prompt template string to put before the examples.

Default Value

""

suffix?: string

A prompt template string to put after the examples.

templateFormat?: "f-string"

The format of the prompt template. Options are: 'f-string'

validateTemplate?: boolean

Whether or not to try validating the template on initialization.

Generated using TypeDoc