fix: Add new rankers to nodes __init__.py (#6219)

* Add new rankers to nodes __init__.py

* Add release note
This commit is contained in:
Vladimir Blagojevic 2023-11-02 10:56:52 +01:00 committed by GitHub
parent 712888ce40
commit f2db68ef0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View File

@ -26,7 +26,14 @@ from haystack.nodes.prompt import PromptNode, PromptTemplate, PromptModel, BaseO
from haystack.nodes.prompt.invocation_layer import PromptModelInvocationLayer
from haystack.nodes.query_classifier import TransformersQueryClassifier
from haystack.nodes.question_generator import QuestionGenerator
from haystack.nodes.ranker import BaseRanker, SentenceTransformersRanker, CohereRanker
from haystack.nodes.ranker import (
BaseRanker,
SentenceTransformersRanker,
CohereRanker,
LostInTheMiddleRanker,
DiversityRanker,
RecentnessRanker,
)
from haystack.nodes.reader import BaseReader, FARMReader, TransformersReader, TableReader, RCIReader
from haystack.nodes.retriever import (
BaseRetriever,

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Adds LostInTheMiddleRanker, DiversityRanker, and RecentnessRanker to `haystack/nodes/__init__.py` and thus
ensures that they are included in JSON schema generation.