mirror of
				https://github.com/deepset-ai/haystack.git
				synced 2025-11-04 03:39:31 +00:00 
			
		
		
		
	* remove manual torch install on colab * update elasticsearch version everywhere to 7.9.2 * fix FAQPipeline * update tutorials with new pipelines * Add latest docstring and tutorial changes * revert faqpipeline change. fix field names in tutorial 4 * Add latest docstring and tutorial changes Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
		
			
				
	
	
		
			16 lines
		
	
	
		
			782 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			782 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/env sh
 | 
						|
# Run Haystack API(on GPU) and Elasticsearch using Docker.
 | 
						|
#
 | 
						|
# docker-compose doesn't support GPUs in the current version. As a workaround,
 | 
						|
# this script runs haystack-api and Elasticsearch Docker Images separately.
 | 
						|
#
 | 
						|
# To use GPU with Docker, ensure nvidia-docker(https://github.com/NVIDIA/nvidia-docker) is installed.
 | 
						|
 | 
						|
docker run -d -p 9200:9200 -e "discovery.type=single-node" elasticsearch:7.9.2
 | 
						|
# alternative: for a demo you can also use this elasticsearch image with already indexed GoT articles
 | 
						|
#docker run -d -p 9200:9200 -e "discovery.type=single-node" deepset/elasticsearch-game-of-thrones
 | 
						|
 | 
						|
# wait for Elasticsearch server to start
 | 
						|
sleep 30
 | 
						|
docker run --net=host --gpus all -e READER_MODEL_PATH=deepset/roberta-base-squad2 -d deepset/haystack-gpu:latest
 |