Git Product home page Git Product logo

customer-support-qa-gpt's Introduction

Customer Support Question & Answer GPT

Overview

This project utilizes the GPT-3 model from OpenAI to create a customer support chatbot that can answer user's questions. It uses the text-embedding-ada-002 model for embedding and the gpt-3.5-turbo model for question answering. The text is indexed using FAISS for efficient retrieval.

Dataset

Dataset The dataset used for training the customer support chatbot is the Customer Support on Twitter dataset. It provides a collection of customer support interactions on Twitter.

Prerequisites

OpenAI API key: You will need an OpenAI API key to access the GPT-3 model and make API calls.

Arguments

  • company: The customer support ID on Twitter. You can find a list of customer support IDs in the data/companies.csv file.
  • gpt_model: The name of the GPT model to use. Refer to the OpenAI model documentation for available options. The default
  • is gpt-3.5-turbo.
  • embedding_model: The name of the embedding model to use. The default is text-embedding-ada-002.
  • data_path: The path to the data directory.
  • index_path: The path to the pickle file that stores the FAISS index.
  • openai_api_key: Your OpenAI API key.

Usage

  1. Install packages
pip install requiremetns.txt
  1. Export your OpenAI API key
export OPENAI_API_KEY='sk-...'
  1. Run GPT
python main.py --company AppleSupport --openai-api-key [OPENAI_API_KEY]
  1. Type your question in terminal
What do you want to ask the customer support? (Type 'stop' to quit)
Question: [Your question]

customer-support-qa-gpt's People

Contributors

jsmlau avatar

Watchers

 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.