Generation
CompletionGeneration
A CompletionGeneration
contains all of the data that has been sent to a completion-based LLM (like Llama2) as well as the response from the LLM.
It is designed to be passed to a Step to enable the Prompt Playground.
Attributes
The template of the prompt.
The formatted version of the template.
The completion of the prompt.
The format of the template, defaults to “f-string”.
The inputs (variables) to the prompt, represented as a dictionary.
The provider of the LLM, such as “openai”.
The settings the LLM provider was called with.
Example
A completion generation displayed in the Prompt Playground
Was this page helpful?