Skip to content
/ SAHEB Public
forked from padfoot18/SAHEB

Somaiya Admission Help and Enquiry Bot. A context based question answering chatbot to answer admission related queries.

Notifications You must be signed in to change notification settings

nehark99/SAHEB

Repository files navigation

Chatbot API

Installation steps:

Note: Currently we support Linux and Windows platforms and Python 3.6.

Note: Windows platform requires Git for Windows (for example, git), Visual Studio 2015/2017 with C++ build tools installed.

Warning: Python 3.5 is not supported!.

  1. Create a virtual environment with Python 3.6: virtualenv env

  2. Activate the environment:

    • Linux source: ./env/bin/activate
    • Windows: .\env\Scripts\activate.bat
  3. Install the following packages inside this virtual environment:

    1. Tensorflow (version -- 1.10.0) pip install tensorflow==1.10.0
    2. DeepPavlov pip install deeppavlov

Dummy API for chatting

dummy api hosted at http://13.233.158.98:8888/chat/

usage:
send a post request to http://13.233.158.98:8888/chat/ containing data as
question="user query"

sample usage using ajax in js

sample usage using ajax in jquery

Dummy API for paragraph

hosted at http://13.233.158.98:8888/para/

send a GET request to get the paragraph from the database
Response ⇒ "paragraph_text"

To update the paragraph, send a POST request with data as:
"paragraph=paragraph_text" Response ⇒ "updated_paragraph_text"

Dummy API hosted for Key, Value CRUD operations

  1. Insert key-value = http://13.233.158.98:8888/values/insert/
    Request ⇒ “key=”+key+”&value=”+value
    Response ⇒ [ {‘key’:’abc’, ‘value’:100000 } , {‘key’: ‘def’, ‘value’: 100 } ]

  2. Update key-value = http://13.233.158.98:8888/values/update/
    KEY WILL NOT BE UPDATED
    Request ⇒ “key=”+key+”&value=”+value
    Response ⇒ [ {‘key’:’abc’, ‘value’:100000 } , {‘key’: ‘def’, ‘value’: 100 } ]

  3. Delete key = http://13.233.158.98:8888/values/delete/
    Request ⇒ “key=”+key
    Response ⇒ [ {‘key’:’abc’, ‘value’:100000 } , {‘key’: ‘def’, ‘value’: 100 } ]

  4. Read table = http://13.233.158.98:8888/values/read/
    Request ⇒ None
    Response ⇒ [ {‘key’:’abc’, ‘value’:100000 } , {‘key’: ‘def’, ‘value’: 100 } ]

sample usage using ajax

About

Somaiya Admission Help and Enquiry Bot. A context based question answering chatbot to answer admission related queries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 36.0%
  • HTML 31.0%
  • JavaScript 17.2%
  • CSS 15.8%