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>
This commit is contained in:
agnieszka-m 2022-03-08 12:29:49 +01:00 committed by GitHub
parent 4b46f2047b
commit 255226f9fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 1 deletions

View File

@ -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.
<a id="join_answers"></a>
# Module join\_answers
<a id="join_answers.JoinAnswers"></a>
## JoinAnswers
```python
class JoinAnswers(BaseComponent)
```
A node to join `Answer`s produced by multiple `Reader` nodes.
<a id="route_documents"></a>
# Module route\_documents
<a id="route_documents.RouteDocuments"></a>
## 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.

View File

@ -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