GithubHelp home page GithubHelp logo

gizrak / orderbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nicoladisabato/orderbot

0.0 0.0 0.0 33 KB

GPT-based Chatbot for Food Ordering 🍽️ using data from MySQL DB and OpenAI Function Calling.

License: GNU Affero General Public License v3.0

Python 100.00%

orderbot's Introduction

OrderBot 🍕🍽️

A GPT-based Chatbot for Food Ordering 🍽️ using data from MySQL DB and OpenAI Function Calling, through natural language.

orderbot_image

Overview

OrderBot is an intelligent virtual server that can take input questions related to a mysql database and uses the power of artificial intelligence to understand users' prompts and propose suitable items to order, totally simulating the tasks of a server. Through an intuitive interface it is possible to ask for advice on products based on and to know any information relating to the menu.

Main features

  • Allows customers to order products using a LLM directly with their mysql database.
  • Interact with the chatbot using natural language to order products and better understand the best product to order, based on your own data.
  • AI-powered interaction: OrderBot uses advanced AI algorithms to take the correct data and generate a precise response.

Architecture

Database: MySQL
Backend: Python + OpenAI Function Calling
Frontend: Chainlit

Getting started

  1. Install all the dependencies using the command:
pip install -r requirements.txt
  1. Clone the Orderbot repository to your local machine.
  2. Run the script.sql in MySQL workbench
  3. Specify the local db credentials inside the file db_helper.py
db = mysql.connector.connect(
        host="localhost",
        user="-> insert here the username <-",
        password="-> insert here the password <-",
        database="-> insert here your locale db name <-"
    )
  1. Add your OpenAI API key inside the file my_openai_key.py
openai_api_key = "--> insert API key <--"
  1. Open the terminal and launch the following command:
chainlit run main.py -w

Todo list

  • Specify the functions that create the order instance and insert it into the Orders table
  • Improve existing functions and their descriptions
  • Improve the initial prompt

orderbot's People

Contributors

nicoladisabato 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.