hardikjp7 / Customer-Support-Chatbot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Customer Support Chatbot

This project implements a Customer Support Chatbot using Selenium for data extraction and language models. It efficiently processes and segments content, performs similarity searches using FAISS, and deploys a question-answering model from Hugging Face.

Installation

pip install unstructured selenium

Dependencies

Setup

  1. Define OpenAI API Key:

    os.environ["OPENAI_API_KEY"] = "YOUR_API_KEY"
  2. Define URLs for Required Articles:

    urls = ['URL1', 'URL2', ...]
  3. Run the provided Python script to perform data extraction and question-answering.

Usage

  1. Install the required dependencies.
  2. Follow the setup instructions.
  3. Run the script to fetch data and obtain answers.

Example

result = answer_question("What Happens When You Delete Your Spotify Account")
print(result)

Output

When you permanently delete your Spotify account, all of your data will be erased forever, including playlists, liked songs, and followers.

LinkedIn

Connect with me on LinkedIn: LinkedIn

Apache License 2.0

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

About

License:Apache License 2.0


Languages

Language:Jupyter Notebook 100.0%