Here is a simple implementation of a chat bot using intents and naive bias to figure out the most relevant response to a prompt
Client: vue, typescript, TailwindCSS
Server: Python- FastAPI
Model Python - sklearn | numpy
Clone the project
git clone git@github.com:shadmeoli/bot.gitGo to the project directory
cd botNavigate to backend folder
cd backendInstall dependencies
pip3 install -r requirements.txtStart the server
using uvicorn
python3 main.pyusing Gunicorn and uvicorn workers
gunicorn main:app --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:80If you don't have an API client you can test and view all the URLs by opening the provided server URL from the logs and open swagger using
https://0.0.0.0:8000/docsor alternatively you can use redoc to view the documentation of the API by substituting docs with redoc
To run the client you can open a new terminal sessiona in the same bot folder and navigate to the fronten folder
cd frontendYou have to install the dependencies for node
yarn
yarnNo run the client server powerd by vite
yarn devif you are using any other package manger you can check on how to install dependencies and initiate the dev server.
For support, email shadcodes@duck.com
Python : 3.8^
vue: 3.0^
Node: LTS 16^
POST {API_URL}/api/v1/chat| Parameter | Type |
|---|---|
message |
string |