Skip to main content

Type alias: SimplePrompt()

SimplePrompt: (input) => string

A SimplePrompt is a function that takes a dictionary of inputs and returns a string. NOTE this is a different interface compared to LlamaIndex Python NOTE 2: we default to empty string to make it easy to calculate prompt sizes

Parameters

input: Record<string, string | undefined>

Returns

string

Source

packages/core/src/Prompt.ts:10