Skip to content

Docs: Remove unnecessary OutputAdapter from code snippets #10569

@bilgeyucel

Description

@bilgeyucel

As of Haystack 2.24, there are improvements to Pipelines that remove the need for OutputAdapter in some cases. e.g.:

  • Pipelines support connection and automatic conversion between ChatMessage and str types. No need for an OutputAdapter
  • Pipelines now support list wrapping: a component returning type T can be connected to a component expecting type list[T]. Pipeline automatically converts a list[ChatMessage] produced by the LLM into a str expected by the retriever, which previously required an OutputAdapter component.

After these changes, some code examples across all the docs pages need to be updated.

Metadata

Metadata

Assignees

Labels

P1High priority, add to the next sprinttype:documentationImprovements on the docs

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions