Giter VIP home page Giter VIP logo

chatbot's Introduction

Python conversational/goal oriented Chatbot

Goal-oriented chatbot that extracts software-related query from casual conversation and replies with a relevant link to stackoverflow. Original bot was deployed on AWS EC2. The bot supports a casual conversation, as well as a range of questions related to programming. The conversation may look something like this

Featuretools

Finding relevant stackoverflow threads is reasonably accurate, however there is a room for improvement in conversational part of the bot.

Running the bot

The simplest way to run the bot is via Docker-Compose, simply docker-compose up in command line (use docker-compose down --rmi all --remove-orphans to clean everything up).
To run the program using Docker the following commands should be executed in the project folder
docker build -t fastapi_conda .
docker run -p 5000:5000 -v $PWD/files:/home -t fastapi_conda

The bot is available in browser at 0.0.0.0:5000.

The bot will download pre-trained files from Dropbox (moved from AWS S3), which may take some time, depending on the speed of internet connection. The total size of the files is 930 Mb.

Under the Hood and room for improvements

Under the hood the bot uses chatterbot with embedding obtained using Starspace. Chatterbot a good starting point, but is quite constrained by a lack of context. Hence, a conversation follows follows a Markov model, where a reply generated by the bot is based on the maximum similarity between the last input by the user to a pre-recorded inputs in from the database. Although it is possible to enable bot to learn from the conversations with users (by updating the database), the feature is disabled by default.
Future work will focused on keeping track of the context with the help of RNN. This will significantly enhance the conversational part of experience.

chatbot's People

Contributors

milddrizzly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.