dotsnangles / backend-api-for-chatbot-with-Poly-Encoder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

backend-api-for-chatbot-with-Poly-Encoder

Desclaimer

This is a post work of my retrieval-based-chatbot-with-Poly-Encoder project.
All the modules needed for the DB connection and backend api are organized.

It runs ok on my labtop with cpu(AMD 5500U).

I hope that someone finds this repo useful.
Send me a message if anyone has to ask about the project.

Related repositories

Poly-Encoder
retrieval-based-chatbot-with-Poly-Encoder

Download the files for demo

python download.py

Set DB

Ubuntu 20.04.4 LTS on WSL

sudo apt install mysql-server
sudo service mysql start
sudo service mysql status
sudo mysql -u root -p
mysql> CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';
mysql> GRANT ALL ON *.* TO 'user'@'localhost' WITH GRANT OPTION;
mysql> CREATE DATABASE chatbot;

Run

python api.py

Test with Postman

headers api_test

On Colab

Link

About


Languages

Language:Python 76.7%Language:Jupyter Notebook 23.3%