DocumentsBuilder
#5700
Labels
2.x
Related to Haystack v2.0
P3
Low priority, leave it in the backlog
type:feature
New feature or request
See the proposal: #5540 and see AnswersBuilder
LLMs clients output strings, but many components expect other object types, and LLMs may produce output in a parsable format that can be directly converted into objects. Output parsers transform these strings into objects of the user’s choosing.
DocumentsBuilder
. It takes the string replies and metadata output of an LLM and producesDocument
objects.For example, a PromptNode could be used to summarize a longer doc and the user would like to have the result output as a Document object. This document object could then be shown to the end-user or it could be used in another PromptNode to answer a question for example.
Draft I/O for
DocumentsBuilder
:The text was updated successfully, but these errors were encountered: