From 255226f9fa346dcb41bbd611b5e28ff796c33db8 Mon Sep 17 00:00:00 2001 From: agnieszka-m <97166305+agnieszka-m@users.noreply.github.com> Date: Tue, 8 Mar 2022 12:29:49 +0100 Subject: [PATCH] Update other.yml with new node names (#2286) * 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> --- docs/_src/api/api/other.md | 29 +++++++++++++++++++++++++++++ docs/_src/api/pydoc/other.yml | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/docs/_src/api/api/other.md b/docs/_src/api/api/other.md index e45bd9527..c3daca5e1 100644 --- a/docs/_src/api/api/other.md +++ b/docs/_src/api/api/other.md @@ -34,3 +34,32 @@ The node allows multiple join modes: `weight` & a `top_k` limit 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 + +```python +class JoinAnswers(BaseComponent) +``` + +A node to join `Answer`s produced by multiple `Reader` nodes. + + + +# Module route\_documents + + + +## RouteDocuments + +```python +class RouteDocuments(BaseComponent) +``` + +A node to split a list of `Document`s by `content_type` or by the values of a metadata field and route them to +different nodes. + diff --git a/docs/_src/api/pydoc/other.yml b/docs/_src/api/pydoc/other.yml index 31703fc31..f0e2e0049 100644 --- a/docs/_src/api/pydoc/other.yml +++ b/docs/_src/api/pydoc/other.yml @@ -1,7 +1,7 @@ loaders: - type: python search_path: [../../../../haystack/nodes/other] - modules: ['docs2answers', 'join_docs'] + modules: ['docs2answers', 'join_docs', 'join_answers', 'route_documents'] ignore_when_discovered: ['__init__'] processors: - type: filter