data_components#
Helper components for data transformation such as embeddings and document splitting.
Functions
|
The retrieved documents from one or multiple queries. |
Classes
|
Wrap on functional F.retriever_output_to_context_str |
|
It transforms a Sequence of Chunks or Documents to a List of Embeddings. |
- class ToEmbeddings(embedder: Embedder, batch_size: int = 50)[source]#
Bases:
Component
It transforms a Sequence of Chunks or Documents to a List of Embeddings.
It operates on a copy of the input data, and does not modify the input data.