メインコンテンツまでスキップ

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/llamaindex/src/Prompt.ts:10