{"id":1307,"date":"2021-12-05T06:41:40","date_gmt":"2021-12-05T06:41:40","guid":{"rendered":"https:\/\/salarydistribution.com\/machine-learning\/2021\/12\/05\/create-a-machine-learning-powered-web-app-to-answer-questions\/"},"modified":"2021-12-05T06:41:40","modified_gmt":"2021-12-05T06:41:40","slug":"create-a-machine-learning-powered-web-app-to-answer-questions","status":"publish","type":"post","link":"https:\/\/salarydistribution.com\/machine-learning\/2021\/12\/05\/create-a-machine-learning-powered-web-app-to-answer-questions\/","title":{"rendered":"Create a machine learning powered web app to answer questions"},"content":{"rendered":"<div id=\"\">\n            <!-- begin main body content --><\/p>\n<h2 id=\"summary\">Summary<\/h2>\n<p>In this code pattern, learn how to build a chatbot that answers a user\u2019s questions by finding the answer in a college biology textbook.<\/p>\n<h2 id=\"description\">Description<\/h2>\n<p>Ever found yourself wondering what mitochondria are? Perhaps you are curious about how neurons communicate with each other? A Google search works well to answer your questions, but what about something still digestible, but more precise? This code pattern shows you how to build a chatbot that answers a user\u2019s questions by finding the answer in a college biology textbook. In the pattern, the textbook used is <a href=\"https:\/\/opentextbc.ca\/biology2eopenstax\/\">Biology 2e<\/a> by Mary Ann Clark, Matthew Douglas, and Jung Choi.<\/p>\n<p>The web app uses the Model Asset eXchange (MAX) <a href=\"https:\/\/ml-exchange.org\/models\/max-question-answering\">Question Answering Model<\/a> (hosted on the <a href=\"https:\/\/ml-exchange.org\/models\">Machine Learning eXchange<\/a>) to answer questions that are typed in by the user. The web application provides a chat-like interface that lets users type in questions, which are then sent to a Flask Python server. The back end sends the question and related body of text from the textbook to a REST endpoint exposed by the MAX model, which returns an answer to the question, displayed as a response from the chatbot. The model\u2019s REST endpoint is set up using the Docker image provided on MAX.<\/p>\n<p>When you have completed this code pattern, you understand how to:<\/p>\n<ul>\n<li>Build a Docker image of the Question Answering model<\/li>\n<li>Deploy a deep learning model with a REST endpoint<\/li>\n<li>Generate answers to questions using the model\u2019s REST API<\/li>\n<li>Run a web application that using the model\u2019s REST API<\/li>\n<\/ul>\n<h2 id=\"flow\">Flow<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/developer.ibm.com\/developer\/default\/patterns\/create-a-machine-learning-powered-web-app-to-answer-questions-from-a-book\/images\/flow-machine-learning-powered-app.png\" alt=\"Machine learning application flow diagram\"><\/p>\n<h2 id=\"instructions\">Instructions<\/h2>\n<p>Find the detailed steps for this pattern in the <a href=\"https:\/\/github.com\/IBM\/MAX-Question-Answering-Web-App\/blob\/master\/README.md\">README<\/a> file. The steps show you how to:<\/p>\n<ol>\n<li>Deploy the model.<\/li>\n<li>Build the web app.<\/li>\n<li>Clone the repository.<\/li>\n<li>Install the dependencies.<\/li>\n<li>Start the server.<\/li>\n<\/ol><\/div>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/developer.ibm.com\/patterns\/create-a-machine-learning-powered-web-app-to-answer-questions-from-a-book\/<\/p>\n","protected":false},"author":0,"featured_media":1308,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/posts\/1307"}],"collection":[{"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/comments?post=1307"}],"version-history":[{"count":0,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/posts\/1307\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/media\/1308"}],"wp:attachment":[{"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/media?parent=1307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/categories?post=1307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/tags?post=1307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}