Haystack 0.2.1 debuts ElasticsearchDocumentStore, embedding-based retrieval, FAQ-style QA, and a FastAPI-based modular REST API.
$ git clone --branch 0.2.1 https://github.com/deepset-ai/haystack.git # already have the repo? check out this version: $ git checkout 0.2.1
- ›Adds
ElasticsearchRetrieversupporting Elasticsearch native BM25 scoring and custom queries (e.g. boosting and filters). - ›Adds
EmbeddingRetrieverthat encodes texts into dense vectors (e.g. via Sentence-BERT) and retrieves via cosine similarity. - ›Adds FARMReader.train() method to fine-tune a reader on custom domain data.
- ›Adds
no_answeroption to reader results, surfacing confidence that no answer exists in the passage. - ›Adds
document_idanddocument_namefields to answer objects returned by both FARMReader andTransformersReader.
+8 moreshow less
- ›Adds
TransformersReaderas an alternative inference backend alongside the existing FARM-based reader. - ›Introduces
ElasticsearchDocumentStoreas the recommended production document store, with BM25 indexing and optional filter support. - ›Adds an in-memory document store for lightweight prototyping without an external database.
- ›Adds FAQ-style QA: index existing question-answer pairs and match incoming user questions against them to return pre-written answers.
- ›Migrates the REST API from Flask to FastAPI with modular endpoints for extractive QA, FAQ-style QA, user feedback collection/export, and APM-based request monitoring.
- ›Adds a Feedback export API endpoint for collecting and exporting user feedback on answers to build domain-specific training data.
- ›Adds Docker images (CPU and GPU variants) using Gunicorn for production deployment of the REST API.
- ›Adds optional Elastic APM integration for logging and monitoring API responses.