Haystack v1.9.0 adds a health-check endpoint, layout-based PDF extraction, MultipleNegativesRankingLoss for retriever training, and a unified Docker image.
$ git clone --branch v1.9.0 https://github.com/deepset-ai/haystack.git # already have the repo? check out this version: $ git checkout v1.9.0
retriever.train(
data_dir="training_data/",
train_filename="train.json",
loss_function="MultipleNegativesRankingLoss"
) - ›Adds a health check endpoint to the REST API, enabling liveness probes and load-balancer integration.
- ›Adds
MultipleNegativesRankingLossas a training loss option forEmbeddingRetrieverwhen using sentence-transformers. - ›Adds public layout-based text extraction support to
PDFToTextConverter, enabling structure-aware PDF parsing. - ›Adds exponential backoff with exponentially decreasing batch size for OpenSearch and Elasticsearch clients under load.
- ›Publishes a new unified
deepset/haystackDocker image with support for multiple flavors and versions via Docker tags.
+3 moreshow less
- ›Standardizes the
devicesparameter and device initialization across pipeline components. - ›Adds
PineconeDocumentStorewarnings when indexing metadata would cause filters to return no documents. - ›Updates
languageparameter documentation and types forPreProcessor, clarifying supported language values.
- !Pre-Haystack-1.0 import paths are removed and no longer supported.