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.
As of Haystack 2.24, there are improvements to Pipelines that remove the need for
OutputAdapterin some cases. e.g.:ChatMessageandstrtypes. No need for anOutputAdapterTcan be connected to a component expecting typelist[T]. Pipeline automatically converts alist[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.