Builders
Builders are components that convert the data they receive into proper objects.
There are two builder components:
- AnswerBuilder: Uses the replies from the Generator to construct the
GeneratedAnswer
object. It can also receive documents and include them in the generated answer. - DeepsetAnswerBuilder: Uses the replies from a Generator instructed to create answer references to construct
GeneratedAnswer
objects with references you can display in deepset Cloud. - PromptBuilder: Renders the prompt template into a proper prompt, filling in all the variables.
Updated about 2 months ago