Skip to content

sunithalv/Icecream-Store-Chatbot

Repository files navigation

Icecream Store Chatbot

Overview

This is a custom chatbot that answers ice-cream-related questions and fetches information from a fictional ice-cream store's API. Using LangChain and OpenAI's text model, alongside a Flask web service, the chatbot can provide users with details on flavors, toppings, and store offers. Everything is put together with Chainlit for easy web application integration.

Screenshot_IcecreamChatbot

Getting Started

Prerequisites

  • Python 3.8 or later
  • An OpenAI API key

Installation

  1. Clone the Repository
    git clone https://github.com/sunithalv/Icecream-Store-Chatbot.git
    
  2. Set Up a Conda Environment (Recommended)
  • Create a new Conda environment:
    conda create -p venv python=3.10 -y
  • Activate the environment:
    conda activate venv/
    
  1. Install Dependencies
  • Install the required packages using the requirements.txt file:
    pip install -r requirements.txt
    
  1. Set Up Your OpenAI API Key
  • Create a .env file in the root directory of the project.
  • Add your OpenAI API key to the .env file:
    OPENAI_API_KEY='Your-OpenAI-API-Key-Here'
    

Usage

To run the fictional store's API, execute the following command:

python ice_cream_store_app.py

The fictional store's API will be accessible at http://localhost:5000/{endpoint_name}

Run the fictional store's application before running the chatbot. To run app, simply execute the chatbot.py script:

chainlit run chatbot.py -w --port 8000

To run the chatbot application, navigate to http://localhost:8000

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages