Skip to content

batuguel/gpt-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Chatbot Application

This project is a simple chatbot application featuring a Next.js frontend and a Flask backend. It allows users to inquire about sushi restaurants or parking garages near Marienplatz, Munich, and get detailed information through a conversational interface.

Getting Started

Below are the instructions to set up the frontend and backend locally on your machine.

Backend Setup

The backend is developed with Flask. To get it up and running, follow these steps:

  1. Navigate to the backend directory:
    cd chatbot-backend
  1. Activate your virtual environment
  • for Windows:
   .\venv\Scripts\activate
  • for macOS/Linux:
    source venv/bin/activate
  1. Install necessary packages
    pip install -r requirements.txt
  1. Create .env file with your OpenAI API key and name it OPENAI_API_KEY

  2. Start the Flask application

    flask run

Frontend Setup

The frontend is built with Next.js and styled using Tailwind CSS. To start the frontend, execute the following:

  1. Navigate to the frontend directory:
    cd chatbot-frontend
  1. Install the necessary packages:
    npm install
  1. Run the Next.js development server:
    npm run dev

Now, your frontend should be accessible at http://localhost:3000, and your backend should be running on http://localhost:5000.

Experiments

The experiments directory contains notebooks to test new approaches or code snippets and functions before implementing.

To run embeddings.ipynb, another .env file needs to be created with OPEN_API_KEY. You can also copy your .env file from the chatbot-backend directory and paste it in here.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published