Core idea
The design of a Dust App is the process of defining prompts and chains of large language model calls or external service calls to expose a structured API with predictable behavior. Dust Apps are composed of Blocks executed sequentially. Each block produces outputs and can reference the outputs of previously executed blocks.Example apps
Translation (Easy)
Translation can be encoded using a few-shot prompt. A Dust App for translation consists of:- An
inputblock to receive the text to translate - A
datablock that returns few-shot examples from a dataset - An
llmblock that parametrizes the call to the model - A
codeblock to process the model output