I'm trying to deploy a haystack model for Question Answering for my application as a REST API /API. I want to query and get my answers directly and I need to do it soon so I'm finding a way to do it on Algorithmia. Any suggestions, tutorials, examples or any help is appreciated. Thanks!!
For reference, this could be an example model.
Not sure about Alorithmia, but here's a simple option to deploy a Haystack service incl. a REST API on any standard machine (e.g. AWS EC2 instance):
This basically spins up:
If you want to customize the pipeline being deployed in the API (e.g. change a model):
pipelines.yaml
in your cloned repo (inhaystack/rest_api/pipeline/
)If you want to deploy on a GPU machine, just execute instead:
For more details, see the official documentation of the REST API here.