Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 2.73 KB

README.md

File metadata and controls

60 lines (42 loc) · 2.73 KB

Question and Answer Ruby Sinatra Starter Application

The IBM Watson Question and Answer service interprets and answers user questions directly based on primary data sources (brochures, web pages, manuals, records, etc.) that have been selected and gathered into a body of data or 'corpus'. The service returns candidate responses with associated confidence levels and links to supporting evidence. The current corpora that are available in Bluemix focus on the Travel and Healthcare industries. Cognitive services learn and improve through training. This beta-level service has no training but shows representative (if not always highly accurate) output. The service is shared to demonstrate how it works. Training the models can improve the results through machine learning.

Give it a try! Click the button below to fork into IBM DevOps Services and deploy your own copy of this application on Bluemix.

Deploy to Bluemix

Getting Started

  1. Create a Bluemix Account

Sign up in Bluemix, or use an existing account. Watson Services in Beta are free to use.

  1. Download and install the Cloud-foundry CLI tool

  2. Edit the manifest.yml file and change the <application-name> to something unique.

applications:
- services:
  - qa-service
  name: <application-name>
  path: .
  memory: 256M

The name you use will determinate your application url initially, e.g. <application-name>.mybluemix.net.

  1. Connect to Bluemix in the command line tool
$ cf api https://api.ng.bluemix.net
$ cf login -u <your user ID>
  1. Create the Question and Answer service in Bluemix
$ cf create-service question_and_answer question_and_answer_free_plan qa-service
  1. Push it live!
$ cf push <application-name>

See the full Getting Started documentation for more details, including code snippets and references.

License

This sample code is licensed under Apache 2.0. Full license text is available in LICENSE.

Contributing

See CONTRIBUTING.

Open Source @ IBM

Find more open source projects on the IBM Github Page