How to create your own Question and Answering API(Flask+Docker +BERT) using haystack framework

Introduction

Note from the author: In this article, we will learn how to create your own Question and Answering(QA) API using python, flask, and haystack framework with docker. The haystack framework will provide the complete QA features which are highly scalable and customizable. In this article Medium Rules, the text will be used as the target document and fine-tuning the model as well.

Basic Knowledge Required: Elasticsearch & Docker

This article contains the working code which can be directly build using docker.

Content of the article

  1. DocumentStores set up — Installation of Elasticsearch
  2. API Code Explanation
  3. Build the Flask API in docker
  4. Load data from the API
  5. Demonstration of the API
  6. Fine-tuning a model
  7. Code tuning (Trained/Pre-Trained)
  8. Summarize Result

 

1. DocumentStores set up

Haystack raises queries to the document which is available at DocumentStore. There are various DocumentStore included in haystack which

 

 

 

To finish reading, please visit source site

Leave a Reply