mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-12-26 14:38:36 +00:00
* Update other.yml with new node names * Update Documentation & Code Style Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1.5 KiB
1.5 KiB
Module docs2answers
Docs2Answers
class Docs2Answers(BaseComponent)
This Node is used to convert retrieved documents into predicted answers format. It is useful for situations where you are calling a Retriever only pipeline via REST API. This ensures that your output is in a compatible format.
Module join_docs
JoinDocuments
class JoinDocuments(BaseComponent)
A node to join documents outputted by multiple retriever nodes.
The node allows multiple join modes:
- concatenate: combine the documents from multiple nodes. Any duplicate documents are discarded.
- merge: merge scores of documents from multiple nodes. Optionally, each input score can be given a different
weight& atop_klimit can be set. This mode can also be used for "reranking" retrieved documents. - reciprocal_rank_fusion: combines the documents based on their rank in multiple nodes.
Module join_answers
JoinAnswers
class JoinAnswers(BaseComponent)
A node to join Answers produced by multiple Reader nodes.
Module route_documents
RouteDocuments
class RouteDocuments(BaseComponent)
A node to split a list of Documents by content_type or by the values of a metadata field and route them to
different nodes.