Haystack v0.9.0 adds LFQA generative QA, a Ranker node, WeaviateDocumentStore, QueryClassifier, and ONNXRuntime support.
$ git clone --branch v0.9.0 https://github.com/deepset-ai/haystack.git # already have the repo? check out this version: $ git checkout v0.9.0
from haystack.document_store import WeaviateDocumentStore document_store = WeaviateDocumentStore() document_store.write_documents(documents, duplicate_documents="overwrite")
- ›Adds
WeaviateDocumentStoreclass (fromhaystack.document_store) for combined vector search and scalar filtering, using Weaviate 1.4.0. - ›Adds FARMRanker node for document re-ranking via semantic similarity, composable with any retriever in a Pipeline.
- ›Adds
Seq2SeqGeneratorandRetriBERT-basedretriever for Long-Form Question Answering (LFQA), generating multi-document synthesized answers. - ›Adds
QueryClassifiernode to route keyword queries vs. natural-language questions to different pipeline branches. - ›Adds
use_ampparameter to the DPR retriever train() method to enable mixed-precision training.
+9 moreshow less
- ›Adds ONNXRuntime inference support for the Reader node.
- ›Adds options for handling duplicate documents on ingest: skip, fail, or overwrite.
- ›Adds L2 distance support for FAISS HNSW index.
- ›Adds
OpenDistrodocument store initialisation support. - ›Adds AWS Elasticsearch IAM connection support.
- ›Adds Pipeline YAML config export capability.
- ›Adds evaluation nodes for Pipelines.
- ›Adds file upload functionality and evaluation mode to the Streamlit UI.
- ›Adds a web crawler connector to ingest text directly from websites.
- !Python 3.6 is no longer supported; Python 3.7+ is required.
- !REST APIs have been refactored to use Pipelines, which may require changes to existing API integrations.
- !FARM bumped to 0.8.0, PyTorch to 1.8.1, and Transformers to 4.6.1 — existing environments must be updated.
- !All document stores' delete_all_documents() method has been renamed to delete_documents().