Skip to main content

Overview

To improve the results of LLM inference you can provide examples of the expected output. This will help LLM to understand the context and the expected structure of the output. It is typically useful in the OutputMode::Json and OutputMode::MdJson modes, where the output is expected to be a JSON object. This run prints the demonstrations, the new input, and the result so you can see the pattern being provided to the model. It does not print HTTP transport events; use a wiretap when you need to inspect the rendered request.

Example