Files
deepset-ai--haystack/releasenotes/notes/remove-transformers-components-c9ef77c1a3e372ec.yaml
wehub-resource-sync c56bef871b
CodeQL / Analyze (python) (push) Has been cancelled
Update Platform Components Table / update (push) Has been cancelled
Docker image release / Build base image (push) Has been cancelled
Sync docs with Docusaurus / sync (push) Has been cancelled
Tests / Check if changed (push) Has been cancelled
Tests / format (push) Has been cancelled
Tests / check-imports (push) Has been cancelled
Tests / Unit / macos-latest (push) Has been cancelled
Tests / Unit / ubuntu-latest (push) Has been cancelled
Tests / Unit / windows-latest (push) Has been cancelled
Tests / mypy (push) Has been cancelled
Tests / Integration / ubuntu-latest (push) Has been cancelled
Tests / Integration / macos-latest (push) Has been cancelled
Tests / Integration / windows-latest (push) Has been cancelled
Tests / notify-slack-on-failure (push) Has been cancelled
Tests / Mark tests as completed (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:22:28 +08:00

49 lines
1.8 KiB
YAML

---
upgrade:
- |
``HuggingFaceLocalChatGenerator``, ``ExtractiveReader``, ``TransformersZeroShotDocumentClassifier``,
``TransformersTextRouter``, and ``TransformersZeroShotTextRouter``
have been moved out of Haystack into the ``transformers-haystack`` integration package.
Install the new package with ``pip install transformers-haystack`` and update your imports.
Before:
.. code:: python
from haystack.components.classifiers import TransformersZeroShotDocumentClassifier
from haystack.components.generators.chat import HuggingFaceLocalChatGenerator
from haystack.components.readers import ExtractiveReader
from haystack.components.routers import TransformersTextRouter, TransformersZeroShotTextRouter
After:
.. code:: python
from haystack_integrations.components.classifiers.transformers import TransformersZeroShotDocumentClassifier
from haystack_integrations.components.generators.transformers import TransformersChatGenerator
from haystack_integrations.components.readers.transformers import TransformersExtractiveReader
from haystack_integrations.components.routers.transformers import (
TransformersTextRouter,
TransformersZeroShotTextRouter,
)
- |
The legacy ``TransformersSimilarityRanker`` component has been removed.
Use ``SentenceTransformersSimilarityRanker`` instead, which provides the same functionality
along with async support.
Before:
.. code:: python
from haystack.components.rankers import TransformersSimilarityRanker
ranker = TransformersSimilarityRanker(model="cross-encoder/ms-marco-MiniLM-L-6-v2")
After:
.. code:: python
from haystack.components.rankers import SentenceTransformersSimilarityRanker
ranker = SentenceTransformersSimilarityRanker(model="cross-encoder/ms-marco-MiniLM-L-6-v2")