2021-10-26 16:04:58 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< p  align = "center" > 
							 
						 
					
						
							
								
									
										
										
										
											2022-04-12 16:19:03 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								  < a  href = "https://www.deepset.ai/haystack/" > < img  src = "https://raw.githubusercontent.com/deepset-ai/haystack/master/docs/img/haystack_logo_colored.png"  alt = "Haystack" > < / a > 
							 
						 
					
						
							
								
									
										
										
										
											2021-10-26 16:04:58 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< / p > 
							 
						 
					
						
							
								
									
										
										
										
											2020-12-27 12:58:48 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								< p > 
							 
						 
					
						
							
								
									
										
										
										
											2022-06-15 09:53:36 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < a  href = "https://github.com/deepset-ai/haystack/actions/workflows/tests.yml" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < img  alt = "Tests"  src = "https://github.com/deepset-ai/haystack/workflows/Tests/badge.svg?branch=master" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < / a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < a  href = "https://github.com/deepset-ai/haystack/actions/workflows/tutorials_nightly.yml" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < img  alt = "Tutorials"  src = "https://github.com/deepset-ai/haystack/actions/workflows/tutorials_nightly.yml/badge.svg" > 
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								    < / a > 
							 
						 
					
						
							
								
									
										
										
										
											2021-08-30 14:59:40 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < a  href = "https://haystack.deepset.ai/overview/intro" > 
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								        < img  alt = "Documentation"  src = "https://img.shields.io/website/http/haystack.deepset.ai/docs/intromd.svg?down_color=red&down_message=offline&up_message=online" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < / a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < a  href = "https://github.com/deepset-ai/haystack/releases" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < img  alt = "Release"  src = "https://img.shields.io/github/release/deepset-ai/haystack" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < / a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < a  href = "https://github.com/deepset-ai/haystack/commits/master" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < img  alt = "Last commit"  src = "https://img.shields.io/github/last-commit/deepset-ai/haystack" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < / a > 
							 
						 
					
						
							
								
									
										
										
										
											2021-01-10 06:26:17 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < a  href = "https://pepy.tech/project/farm-haystack" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < img  alt = "Downloa d s"  src = "https://pepy.tech/badge/farm-haystack/month" > 
							 
						 
					
						
							
								
									
										
										
										
											2020-12-27 12:58:48 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < / a > 
							 
						 
					
						
							
								
									
										
										
										
											2021-10-21 12:10:18 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    < a  href = "https://www.deepset.ai/jobs" > 
							 
						 
					
						
							
								
									
										
										
										
											2021-06-03 14:47:08 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								        < img  alt = "Jobs"  src = "https://img.shields.io/badge/Jobs-We're%20hiring-blue" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < / a > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < a  href = "https://twitter.com/intent/follow?screen_name=deepset_ai" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								        < img  alt = "Twitter"  src = "https://img.shields.io/twitter/follow/deepset_ai?style=social" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    < / a >     
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								< / p > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Haystack is an end-to-end framework that enables you to build powerful and production-ready pipelines for different search use cases.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Whether you want to perform Question Answering or semantic document search, you can use the State-of-the-Art NLP models in Haystack to provide unique search experiences and allow your users to query in natural language.
							 
						 
					
						
							
								
									
										
										
										
											2021-03-16 11:00:57 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Haystack is built in a modular fashion so that you can combine the best technology from other open-source projects like Huggingface's Transformers, Elasticsearch, or Milvus.
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-04-12 16:19:03 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< p  align = "center" > < img  src = "https://raw.githubusercontent.com/deepset-ai/haystack/master/docs/img/main_example.gif" > < / p > 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								## What to build with Haystack
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-03-16 11:00:57 -04:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  **Ask questions in natural language** and find granular answers in your documents.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  Perform **semantic search**  and retrieve documents according to meaning, not keywords
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  Use **off-the-shelf models**  or **fine-tune**  them to your domain.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  Use **user feedback**  to evaluate, benchmark, and continuously improve your live models.
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  Leverage existing **knowledge bases**  and better handle the long tail of queries that **chatbots**  receive.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  **Automate processes** by automatically applying a list of questions to new documents and using the extracted answers.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								## Core Features
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-10-27 15:55:34 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  **Latest models**: Utilize all latest transformer-based models (e.g., BERT, RoBERTa, MiniLM) for extractive QA, generative QA, and document retrieval.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  **Modular**: Multiple choices to fit your tech stack and use case. Pick your favorite database, file converter, or modeling framework.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  **Pipelines**: The Node and Pipeline design of Haystack allows for custom routing of queries to only the relevant components.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  **Open**: 100% compatible with HuggingFace's model hub. Tight interfaces to other frameworks (e.g., Transformers, FARM, sentence-transformers)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  **Scalable**: Scale to millions of docs via retrievers, production-ready backends like Elasticsearch / FAISS, and a fastAPI REST API
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  **End-to-End**: All tooling in one place: file conversion, cleaning, splitting, training, eval, inference, labeling, etc.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  **Developer friendly**: Easy to debug, extend and modify.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  **Customizable**: Fine-tune models to your domain or implement your custom DocumentStore.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  **Continuous Learning**: Collect new training data via user feedback in production &  improve your models continuously
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								|  |  |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								|-|-|
							 
						 
					
						
							
								
									
										
										
										
											2021-10-27 15:55:34 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								| :ledger: [Docs ](https://haystack.deepset.ai/overview/intro ) | Overview, Components, Guides, API documentation|
							 
						 
					
						
							
								
									
										
										
										
											2021-10-29 18:19:21 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								| :floppy_disk: [Installation ](https://github.com/deepset-ai/haystack#floppy_disk-installation ) | How to install Haystack |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								| :mortar_board: [Tutorials ](https://github.com/deepset-ai/haystack#mortar_board-tutorials ) | See what Haystack can do with our Notebooks &  Scripts |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								| :beginner: [Quick Demo ](https://github.com/deepset-ai/haystack#beginner-quick-demo ) | Deploy a Haystack application with Docker Compose and a REST API |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								| :vulcan_salute: [Community ](https://github.com/deepset-ai/haystack#vulcan_salute-community ) | [Slack ](https://haystack.deepset.ai/community/join ), [Twitter ](https://twitter.com/deepset_ai ), [Stack Overflow ](https://stackoverflow.com/questions/tagged/haystack ), [GitHub Discussions ](https://github.com/deepset-ai/haystack/discussions ) |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								| :heart: [Contributing ](https://github.com/deepset-ai/haystack#heart-contributing ) | We welcome all contributions! |
							 
						 
					
						
							
								
									
										
										
										
											2021-10-27 15:55:34 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								| :bar_chart: [Benchmarks ](https://haystack.deepset.ai/benchmarks/latest ) | Speed &  Accuracy of Retriever, Readers and DocumentStores |
							 
						 
					
						
							
								
									
										
										
										
											2021-08-30 14:59:40 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								| :telescope: [Roadmap ](https://haystack.deepset.ai/overview/roadmap ) | Public roadmap of Haystack |
							 
						 
					
						
							
								
									
										
										
										
											2021-01-19 13:30:26 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								| :newspaper: [Blog ](https://medium.com/deepset-ai ) | Read our articles on Medium |
							 
						 
					
						
							
								
									
										
										
										
											2021-10-27 15:55:34 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								| :phone: [Jobs ](https://www.deepset.ai/jobs ) | We're hiring! Have a look at our open positions |
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-10-29 16:39:58 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								## :floppy_disk: Installation
 
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-10 11:54:06 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								**1. Basic Installation**
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-10 11:54:06 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								You can install a basic version of Haystack's latest release by using [pip ](https://github.com/pypa/pip ).
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    pip3 install farm-haystack
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-10 11:54:06 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								This command will install everything needed for basic Pipelines that use an Elasticsearch Document Store.
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-10 11:54:06 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								**2. Full Installation**
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-10 11:54:06 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								If you plan to be using more advanced features like Milvus, FAISS, Weaviate, OCR or Ray,
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								you will need to install a full version of Haystack.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								The following command will install the latest version of Haystack from the master branch.
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2022-02-10 11:54:06 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								git clone https://github.com/deepset-ai/haystack.git
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								cd haystack
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								pip install --upgrade pip
							 
						 
					
						
							
								
									
										
										
										
											2022-03-08 16:29:08 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								pip install -e '.[all]' ## or 'all-gpu' for the GPU-enabled dependencies
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-10 11:54:06 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								If you cannot upgrade `pip`  to version 21.3 or higher, you will need to replace:
							 
						 
					
						
							
								
									
										
										
										
											2022-03-08 16:29:08 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  `'.[all]'`  with `'.[sql,only-faiss,only-milvus1,weaviate,graphdb,crawler,preprocessing,ocr,onnx,ray,dev]'` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  `'.[all-gpu]'`  with `'.[sql,only-faiss-gpu,only-milvus1,weaviate,graphdb,crawler,preprocessing,ocr,onnx-gpu,ray,dev]'` 
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-10 11:54:06 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								For an complete list of the dependency groups available, have a look at the `haystack/setup.cfg`  file.
							 
						 
					
						
							
								
									
										
										
										
											2022-01-27 11:22:14 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-10 15:00:09 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								To install the REST API and UI, run the following from the root directory of the Haystack repo
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								pip install rest_api/
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								pip install ui/
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-10 11:54:06 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								**3. Installing on Windows**
							 
						 
					
						
							
								
									
										
										
										
											2022-01-27 11:22:14 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2022-02-10 11:54:06 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								pip install farm-haystack -f https://download.pytorch.org/whl/torch_stable.html
							 
						 
					
						
							
								
									
										
										
										
											2022-01-27 11:22:14 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-10 11:54:06 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								**4. Installing on Apple Silicon (M1)**
							 
						 
					
						
							
								
									
										
										
										
											2022-01-27 11:22:14 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-10 11:54:06 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								M1 Macbooks require some extra depencies in order to install Haystack.
							 
						 
					
						
							
								
									
										
										
										
											2022-01-27 11:22:14 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-10 11:54:06 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# some additional dependencies needed on m1 mac
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								brew install postgresql
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								brew install cmake
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								brew install rust
							 
						 
					
						
							
								
									
										
										
										
											2022-01-27 11:22:14 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-10 11:54:06 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								# haystack installation
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								GRPC_PYTHON_BUILD_SYSTEM_ZLIB=true pip install git+https://github.com/deepset-ai/haystack.git
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-10 11:54:06 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								**5. Learn More**
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-02-10 11:54:06 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								See our [installation guide ](https://haystack.deepset.ai/overview/get-started ) for more options. 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								You can find out more about our PyPi package on our [PyPi page ](https://pypi.org/project/farm-haystack/ ). 
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-10-29 16:39:58 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								## :mortar_board: Tutorials
 
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-04-12 16:19:03 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-10-27 15:55:34 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Follow our [introductory tutorial ](https://haystack.deepset.ai/tutorials/first-qa-system ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								to setup a question answering system using Python and start performing queries! 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Explore the rest of our tutorials to learn how to tweak pipelines, train models and perform evaluation.
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-10-29 11:07:13 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  Tutorial 1 - Basic QA Pipeline: [Jupyter notebook ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial1_Basic_QA_Pipeline.ipynb )
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								    [Colab ](https://colab.research.google.com/github/deepset-ai/haystack/blob/master/tutorials/Tutorial1_Basic_QA_Pipeline.ipynb )
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Python ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial1_Basic_QA_Pipeline.py )
							 
						 
					
						
							
								
									
										
										
										
											2021-10-29 11:07:13 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  Tutorial 2 - Fine-tuning a model on own data: [Jupyter notebook ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial2_Finetune_a_model_on_your_data.ipynb )
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								    [Colab ](https://colab.research.google.com/github/deepset-ai/haystack/blob/master/tutorials/Tutorial2_Finetune_a_model_on_your_data.ipynb )
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Python ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial2_Finetune_a_model_on_your_data.py )
							 
						 
					
						
							
								
									
										
										
										
											2021-10-29 11:07:13 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  Tutorial 3 - Basic QA Pipeline without Elasticsearch: [Jupyter notebook ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial3_Basic_QA_Pipeline_without_Elasticsearch.ipynb )
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								    [Colab ](https://colab.research.google.com/github/deepset-ai/haystack/blob/master/tutorials/Tutorial3_Basic_QA_Pipeline_without_Elasticsearch.ipynb )
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Python ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial3_Basic_QA_Pipeline_without_Elasticsearch.py )
							 
						 
					
						
							
								
									
										
										
										
											2021-10-29 11:07:13 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  Tutorial 4 - FAQ-style QA: [Jupyter notebook ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial4_FAQ_style_QA.ipynb )
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								    [Colab ](https://colab.research.google.com/github/deepset-ai/haystack/blob/master/tutorials/Tutorial4_FAQ_style_QA.ipynb )
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Python ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial4_FAQ_style_QA.py )
							 
						 
					
						
							
								
									
										
										
										
											2021-10-29 11:07:13 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  Tutorial 5 - Evaluation of the whole QA-Pipeline: [Jupyter noteboook ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial5_Evaluation.ipynb )
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								    [Colab ](https://colab.research.google.com/github/deepset-ai/haystack/blob/master/tutorials/Tutorial5_Evaluation.ipynb )
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Python ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial5_Evaluation.py )
							 
						 
					
						
							
								
									
										
										
										
											2021-10-29 11:07:13 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  Tutorial 6 - Better Retrievers via "Dense Passage Retrieval":
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								    [Jupyter noteboook ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial6_Better_Retrieval_via_DPR.ipynb )
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								    [Colab ](https://colab.research.google.com/github/deepset-ai/haystack/blob/master/tutorials/Tutorial6_Better_Retrieval_via_DPR.ipynb )
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Python ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial6_Better_Retrieval_via_DPR.py )
							 
						 
					
						
							
								
									
										
										
										
											2021-10-29 11:07:13 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  Tutorial 7 - Generative QA via "Retrieval-Augmented Generation":
							 
						 
					
						
							
								
									
										
										
										
											2020-11-19 14:58:27 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    [Jupyter noteboook ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial7_RAG_Generator.ipynb )
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
									
										
										
										
											2020-11-19 14:58:27 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    [Colab ](https://colab.research.google.com/github/deepset-ai/haystack/blob/master/tutorials/Tutorial7_RAG_Generator.ipynb )
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Python ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial7_RAG_Generator.py )
							 
						 
					
						
							
								
									
										
										
										
											2021-10-29 11:07:13 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  Tutorial 8 - Preprocessing:
							 
						 
					
						
							
								
									
										
										
										
											2021-01-13 10:33:55 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    [Jupyter noteboook ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial8_Preprocessing.ipynb )
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
									
										
										
										
											2021-01-13 10:33:55 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    [Colab ](https://colab.research.google.com/github/deepset-ai/haystack/blob/master/tutorials/Tutorial8_Preprocessing.ipynb )
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Python ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial8_Preprocessing.py )
							 
						 
					
						
							
								
									
										
										
										
											2021-10-29 11:07:13 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  Tutorial 9 - DPR Training:
							 
						 
					
						
							
								
									
										
										
										
											2021-01-13 10:33:55 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    [Jupyter noteboook ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial9_DPR_training.ipynb )
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
									
										
										
										
											2021-01-13 10:33:55 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    [Colab ](https://colab.research.google.com/github/deepset-ai/haystack/blob/master/tutorials/Tutorial9_DPR_training.ipynb )
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Python ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial9_DPR_training.py )
							 
						 
					
						
							
								
									
										
										
										
											2021-10-29 11:07:13 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  Tutorial 10 - Knowledge Graph:
							 
						 
					
						
							
								
									
										
										
										
											2021-04-12 15:26:02 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    [Jupyter noteboook ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial10_Knowledge_Graph.ipynb )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Colab ](https://colab.research.google.com/github/deepset-ai/haystack/blob/master/tutorials/Tutorial10_Knowledge_Graph.ipynb )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Python ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial10_Knowledge_Graph.py )
							 
						 
					
						
							
								
									
										
										
										
											2021-10-29 11:07:13 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  Tutorial 11 - Pipelines:
							 
						 
					
						
							
								
									
										
										
										
											2021-05-05 15:35:21 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    [Jupyter noteboook ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial11_Pipelines.ipynb )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Colab ](https://colab.research.google.com/github/deepset-ai/haystack/blob/master/tutorials/Tutorial11_Pipelines.ipynb )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Python ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial11_Pipelines.py )
							 
						 
					
						
							
								
									
										
										
										
											2021-10-29 11:07:13 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  Tutorial 12 - Long-Form Question Answering:
							 
						 
					
						
							
								
									
										
										
										
											2021-07-13 11:23:10 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    [Jupyter noteboook ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial12_LFQA.ipynb )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Colab ](https://colab.research.google.com/github/deepset-ai/haystack/blob/master/tutorials/Tutorial12_LFQA.ipynb )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Python ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial12_LFQA.py )
							 
						 
					
						
							
								
									
										
										
										
											2021-10-29 11:07:13 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  Tutorial 13 - Question Generation:
							 
						 
					
						
							
								
									
										
										
										
											2021-08-09 10:44:42 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    [Jupyter noteboook ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial13_Question_generation.ipynb )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
									
										
										
										
											2021-08-09 11:22:19 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    [Colab ](https://colab.research.google.com/github/deepset-ai/haystack/blob/master/tutorials/Tutorial13_Question_generation.ipynb )
							 
						 
					
						
							
								
									
										
										
										
											2021-08-09 10:44:42 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Python ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial13_Question_generation.py )
							 
						 
					
						
							
								
									
										
										
										
											2021-10-29 11:07:13 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  Tutorial 14 - Query Classifier:
							 
						 
					
						
							
								
									
										
										
										
											2021-08-09 10:44:42 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    [Jupyter noteboook ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial14_Query_Classifier.ipynb )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
									
										
										
										
											2021-08-09 11:22:19 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    [Colab ](https://colab.research.google.com/github/deepset-ai/haystack/blob/master/tutorials/Tutorial14_Query_Classifier.ipynb )
							 
						 
					
						
							
								
									
										
										
										
											2021-08-09 10:44:42 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Python ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial14_Query_Classifier.py )
							 
						 
					
						
							
								
									
										
										
										
											2021-10-29 11:07:13 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  Tutorial 15 - TableQA:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Jupyter noteboook ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial15_TableQA.ipynb )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Colab ](https://colab.research.google.com/github/deepset-ai/haystack/blob/master/tutorials/Tutorial15_TableQA.ipynb )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Python ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial15_TableQA.py )
							 
						 
					
						
							
								
									
										
										
										
											2022-07-05 12:04:58 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								-  Tutorial 16 - Document Classification at Indexing Time:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Jupyter noteboook ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial16_Document_Classifier_at_Index_Time.ipynb )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Colab ](https://colab.research.google.com/github/deepset-ai/haystack/blob/master/tutorials/Tutorial16_Document_Classifier_at_Index_Time.ipynb )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Python ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial16_Document_Classifier_at_Index_Time.py )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  Tutorial 17 - Answers &  Documents to Speech:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Jupyter noteboook ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial17_Audio.ipynb )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Colab ](https://colab.research.google.com/github/deepset-ai/haystack/blob/master/tutorials/Tutorial17_Audio.ipynb )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Python ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial17_Audio.py )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  Tutorial 18 - Generative Pseudo Labeling:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Jupyter noteboook ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial18_GPL.ipynb )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Colab ](https://colab.research.google.com/github/deepset-ai/haystack/blob/master/tutorials/Tutorial18_GPL.ipynb )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    |
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    [Python ](https://github.com/deepset-ai/haystack/blob/master/tutorials/Tutorial18_GPL.py )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-05-05 15:35:21 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-10-29 16:39:58 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								## :beginner: Quick Demo
 
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-12-03 13:34:19 +00:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								**Hosted**
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Try out our hosted [Explore The World ](https://haystack-demo.deepset.ai/ ) live demo here!
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Ask any question on countries or capital cities and let Haystack return the answers to you. 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								**Local**
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-10-29 16:39:58 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Start up a Haystack service via [Docker Compose ](https://docs.docker.com/compose/ ).
							 
						 
					
						
							
								
									
										
										
										
											2021-10-27 15:55:34 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								With this you can begin calling it directly via the REST API or even interact with it using the included Streamlit UI.
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-10-29 16:39:58 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< details > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  < summary > Click here for a step-by-step guide< / summary > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-10-27 15:55:34 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								**1. Update/install Docker and Docker Compose, then launch Docker**
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2021-10-27 15:55:34 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    apt-get update & &  apt-get install docker & &  apt-get install docker-compose
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    service docker start
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-10-27 15:55:34 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								**2. Clone Haystack repository**
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2021-10-27 15:55:34 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    git clone https://github.com/deepset-ai/haystack.git
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-10-27 15:55:34 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								**3. Pull images &  launch demo app**
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2021-10-27 15:55:34 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								    cd haystack
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    docker-compose pull
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    docker-compose up
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								    # Or on a GPU machine: docker-compose -f docker-compose-gpu.yml up
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2020-12-22 13:34:28 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-10-27 15:55:34 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								You should be able to see the following in your terminal window as part of the log output:
							 
						 
					
						
							
								
									
										
										
										
											2020-12-22 13:34:28 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2021-10-27 15:55:34 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								..
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								ui_1             |   You can now view your Streamlit app in your browser.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								..
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								ui_1             |   External URL: http://192.168.108.218:8501
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								..
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								haystack-api_1   | [2021-01-01 10:21:58 +0000] [17] [INFO] Application startup complete.
							 
						 
					
						
							
								
									
										
										
										
											2020-12-22 13:34:28 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-10-27 15:55:34 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								**4. Open the Streamlit UI for Haystack by pointing your browser to the "External URL" from above.**
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-10-27 15:55:34 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								You should see the following:
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2022-04-12 16:19:03 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-10-27 15:55:34 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								You can then try different queries against a pre-defined set of indexed articles related to Game of Thrones.
							 
						 
					
						
							
								
									
										
										
										
											2021-02-16 15:32:43 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-10-27 15:55:34 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								**Note**: The following containers are started as a part of this demo:
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-10-27 15:55:34 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								*  Haystack API: listens on port 8000
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								*  DocumentStore (Elasticsearch): listens on port 9200
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								*  Streamlit UI: listens on port 8501
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-10-27 15:55:34 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Please note that the demo will [publish ](https://docs.docker.com/config/containers/container-networking/ ) the container ports to the outside world. *We suggest that you review the firewall settings depending on your system setup and the security guidelines.* 
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-10-29 16:39:58 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< / details > 
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-10-27 15:55:34 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								## :vulcan_salute: Community
 
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-10-27 15:55:34 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								There is a very vibrant and active community around Haystack which we are regularly interacting with!
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								If you have a feature request or a bug report, feel free to open an [issue in Github ](https://github.com/deepset-ai/haystack/issues ).
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								We regularly check these and you can expect a quick response.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								If you'd like to discuss a topic, or get more general advice on how to make Haystack work for your project, 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								you can start a thread in [Github Discussions ](https://github.com/deepset-ai/haystack/discussions ) or our [Slack channel ](https://haystack.deepset.ai/community/join ).
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								We also check [Twitter ](https://twitter.com/deepset_ai ) and [Stack Overflow ](https://stackoverflow.com/questions/tagged/haystack ).
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								## :heart: Contributing
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-10-27 15:55:34 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								We are very open to the community's contributions - be it a quick fix of a typo, or a completely new feature! 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								You don't need to be a Haystack expert to provide meaningful improvements. 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								To learn how to get started, check out our [Contributor Guidelines ](https://github.com/deepset-ai/haystack/blob/master/CONTRIBUTING.md ) first.
							 
						 
					
						
							
								
									
										
										
										
											2021-09-27 10:52:07 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								You can also find instructions to run the tests locally there.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-10-27 15:55:34 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Thanks so much to all those who have contributed to our project!
							 
						 
					
						
							
								
									
										
										
										
											2020-11-02 20:03:22 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2021-10-27 15:55:34 +02:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								< a  href = "https://github.com/deepset-ai/haystack/graphs/contributors" > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  < img  src = "https://contrib.rocks/image?repo=deepset-ai/haystack"  / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								< / a > 
							 
						 
					
						
							
								
									
										
										
										
											2022-02-14 16:21:41 +01:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								## Who uses Haystack
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Here's a list of organizations who use Haystack. Don't hesitate to send a PR to let the world know that you use Haystack. Join our growing community!
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  [Airbus ](https://www.airbus.com/en )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  [Alcatel-Lucent ](https://www.al-enterprise.com/ )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  [BetterUp ](https://www.betterup.com/ )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  [Deepset ](https://deepset.ai/ )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  [Etalab ](https://www.etalab.gouv.fr/ )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  [Infineon ](https://www.infineon.com/ )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								-  [Sooth.ai ](https://sooth.ai/ )
							 
						 
					
						
							
								
									
										
										
										
											2022-05-06 16:00:08 +02:00