• Stars
    star
    331
  • Rank 123,026 (Top 3 %)
  • Language
    Python
  • Created over 1 year ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A dynamic, scalable AI chatbot built with Django REST framework, supporting custom training from PDFs, documents, websites, and YouTube videos. Leveraging OpenAI's GPT-3.5, Pinecone, FAISS, and Celery for seamless integration and performance.

Dynamic AI Chatbot with Custom Training Sources

Customizable-gpt-chatbot

This project is a dynamic AI chatbot that can be trained from various sources, such as PDFs, documents, websites, and YouTube videos. It uses a user system with social authentication through Google, and the Django REST framework for its backend. The chatbot leverages OpenAI's GPT-3.5 language model to conduct conversations and is designed for scalability and ease of use.

Features

  • Train chatbot from multiple sources (PDFs, documents, websites, YouTube videos)
  • User system with social authentication through Google
  • Connect with OpenAI GPT-3.5 language model for conversation
  • Use Pinecone and FAISS for vector indexing
  • Employ OpenAI's text-embedding-ada-002 for text embedding
  • Python Langchain library for file processing and text conversion
  • Scalable architecture with separate settings for local, staging, and production environments
  • Dynamic site settings for title and prompt updates
  • Multilingual support
  • PostgreSQL database support
  • Celery task scheduler with Redis and AWS SQS options
  • AWS S3 bucket support for scalable hosting
  • Easy deployment on Heroku or AWS

Technologies

  • Language: Python
  • Framework: Django REST Framework
  • Database: PostgreSQL

Major Libraries:

  • Celery
  • Langchain
  • OpenAI
  • Pinecone
  • FAISS

Requirements

  • Python 3.8 or above
  • Django 4.1 or above
  • Pinecone API Key
  • API key from OpenAI
  • Redis or AWS SQS
  • PostgreSQL database

Future Scope

  • Integration with more third-party services for authentication
  • Support for additional file formats and media types for chatbot training
  • Improved context-awareness in conversations
  • Enhanced multilingual support with automatic language detection
  • Integration with popular messaging platforms and chat applications

How to run

  • Clone the repository. git clone https://github.com/shamspias/customizable-gpt-chatbot
  • Install the required packages by running pip install -r requirements.txt
  • Run celery celery -A config worker --loglevel=info
  • Run the command python manage.py runserver
  • Open http://127.0.0.1:8000/ in your browser

In linux and mac need to install 'sudo apt install python3-dev -y`

  1. Make sure that you have the development libraries for libcurl installed on your system. You can install them by running the following command: sudo apt-get install libcurl4-openssl-dev gcc libssl-dev -y
  2. Make sure that you have the latest version of pip and setuptools installed by running the following command: pip install --upgrade pip setuptools
  3. pip install pycurl

Deployment

The chatbot can be deployed on Heroku or AWS by following the standard procedures for Django deployment on these platforms.

Issues

  • If you don't use AWS SQS then no need to install pycurl and boto3 packages.
  • If you don't use AWS S3 then no need to install django-storages package.

Note

Make sure that you have API key from OpenAI before running the project.

This is just a basic implementation of the project, you can always add more features and customization according to your requirement.

Enjoy!

More Repositories

1

langchain-chat

langchain-chat is an AI-driven Q&A system that leverages OpenAI's GPT-4 model and FAISS for efficient document indexing. It loads and splits documents from websites or PDFs, remembers conversations, and provides accurate, context-aware answers based on the indexed data. Easy to set up and extend.
Python
80
star
2

langchain-telegram-gpt-chatbot

An AI-powered chatbot integrated with Telegram, using OpenAI GPT-3.5 Turbo, language embeddings, and FAISS for similarity search to provide more contextually relevant responses to user queries
Python
56
star
3

chatgpt-voice-chatbot-telegram

ChatGPT Voice Chatbot Telegram is a Python and Flask-based GitHub repository that enables users to communicate with an AI chatbot using voice-to-text and text-to-voice technologies powered by OpenAI. The repository provides a flexible and customizable solution for building advanced voice-enabled chatbots using natural language processing.
Python
51
star
4

gpt-powered-ai-document-chatbot-creator

GPT-Powered-AI-Document-Chatbot-Creator is a web app leveraging GPT-3.5-turbo and Text-Embedding-ADA-002 to process user-uploaded documents and generate intelligent chatbot responses to questions. Efficiently extract knowledge from documents and get accurate answers using AI-driven techniques.
Python
39
star
5

gpt-document-trained-chatbot-builder

GPT-Document-Trained-Chatbot-Builder is a powerful, user-friendly tool that lets you create AI chatbots trained on your uploaded documents. Extract text from various file formats, train a GPT-3.5 or 4 based chatbot, and enjoy seamless interactions with efficient Pinecone storage.
25
star
6

langchain-gemini-api

An innovative AI conversation API leveraging Google's Gemini for multimodal understanding. Combines FastAPI, Langchain, and Redis for robust, scalable, and privacy-conscious text and image-based interactions
Python
24
star
7

chat-gpt-celery-flask

A sample implementation of a chatbot using Flask, Celery, and GPT-3. It demonstrates how to create a simple chatbot that uses GPT-3 as the language generation model and Celery for handling asynchronous tasks.
Python
22
star
8

openai-assistent-python

Use of OpenAI new assistant system, make chatbot and use for other scenario.
Python
21
star
9

The-Rasa-Answer-Machine-GPT3

"The-Rasa-Answer-Machine-GPT3" is an advanced chatbot equipped to answer questions and offer useful info. Constructed with Rasa & GPT-3, it delivers accurate & insightful answers to a wide range of questions. Get help with a task or learn about a topic with ease. Try it today and experience AI-powered conversation!
Python
20
star
10

whatsapp-voice-gpt

SonicAI is a WhatsApp Chatbot designed to provide users with a convenient and engaging way to interact with an AI assistant. Powered by OpenAI's GPT-3.5-turbo, SonicAI offers a responsive and dynamic chat experience that can help users with a variety of tasks and inquiries.
Python
19
star
11

google-reviews-chatbot

The Google Reviews Chatbot fetches reviews via the Google My Business API, analyzes sentiments using GPT-3, and generates tailored responses. Deployed on AWS, it uses Elastic Beanstalk, EC2, and ElastiCache for Redis to run tasks on a schedule, ensuring seamless and efficient chatbot functionality.
Python
18
star
12

chatwithDB

ChatWithDB: Transforming databases into conversational partners using LLMs and Django Rest Framework API. Accepts user input, finds similar database entries, and crafts human-like responses from LLMs. Supports multiple databases.
Python
10
star
13

whatsapp-gpt-dalle-bot

A WhatsApp bot powered by GPT-3 and DALL-E. Allows for natural language conversational interaction and can assist with tasks such as answering questions, providing information, and completing tasks.
Python
10
star
14

twilio-studio-gpt3-assistant

This repository provides a Flask app that processes voice messages recorded through Twilio or Twilio Studio, transcribes them using OpenAI's Whisper ASR, generates responses with GPT-3.5, and sends the replies as SMS using Twilio.
Python
9
star
15

db-gpt-chatbot

Chat with database information
Python
8
star
16

pommis

More than 50+ comments for use as an advanced music bot for discord with unlimited playlist features.
Python
8
star
17

gpt3-data-preprocessing

This repository containing code for preprocessing text data from PDF and DOCX files for use with GPT-3. It includes steps such as tokenization, removal of stop words and punctuation, and formatting for GPT-3 input.
Python
6
star
18

my-graphDB-learning-lab

Explore the realms of graph databases with Neo4j, dive into Cypher queries, and integrate LLMs for dynamic data insights with Langchain. A personal journey to master graph data.
Python
6
star
19

lcel-tutorial

The "lcel-tutorial" repo is designed for mastering LangChain Expression Language (LCEL), offering exercises to build stateful, multi-actor LLM applications. It's a hands-on guide to leveraging LCEL for complex workflows and agent-like behaviors. Perfect for enthusiasts eager to explore LLM's potential.
Python
5
star
20

google-meet-translator-extension

Google Meet Transcript Translator is a Chrome extension that translates live transcriptions during a Google Meet call into your chosen language. Enhance your global communication.
JavaScript
5
star
21

Raspberry-Web-UI

Python 3 Flask Application for controlling the GPIO pins on a Raspberry Pi
Python
3
star
22

AgriAid

AgriAid is an AI-powered tool for farmers & agricultural agents in Bangladesh, offering plant disease forecasting & identification. Using machine learning, deep learning & Python, it helps increase crop yield & food security.
Python
3
star
23

automation-tools

Some automated script like auto blog writer or proofreader with django rest framework using gpt3 and other library
Python
3
star
24

Transformers-and-Large-Language-Models-From-Basics-to-Frontier-Research

Dive into the transformative world of NLP with this guide on Transformers. Journey from the roots of NLP to advanced Transformer variants like BERT and GPT. Discover their architecture, practical applications, ethical considerations, and future prospects. A comprehensive resource for AI enthusiasts and experts alike.
3
star
25

django-rest-framework-boilerplate

Boilerplate for Django & Django rest framework.
Python
2
star
26

myproblemsandsolves

My Problem and solutions list
2
star
27

drf-gpt3-boilerplate

Boilerplate for Integrated GPT-3 with DRF faster.
Python
2
star
28

ai-question-answer-gen-server

Automatic question and answer generation tools using openai gpt3
Python
2
star
29

ai-finance-pencil

A versatile personal finance management tool, ai-finance-pencil combines Django Rest Framework and Next.js to provide an intuitive UI for tracking income and expenses. Enhanced with OpenAI's GPT-3 for interactive insights, budgeting tips, and chat support.
Python
2
star
30

deadlyAIchatbot

This repository contains a WhatsApp chatbot built with Flask and powered by OpenAI's GPT-3 and DALL-E-2 language models. The chatbot is able to understand and respond to natural language queries and provide helpful information. The chatbot can help in many area like customer service, providing news and answering frequently asked questions.
Python
2
star
31

gemini-telegram-bot

A versatile Telegram bot designed to handle text and photo messages, featuring API integration, Markdown formatting, and asynchronous processing.
Python
2
star
32

basic_nlu_chatbot

Python
1
star
33

gpt-discord-chatbot

A simple Python-based Discord chatbot that uses GPT-3 for NLP and text generation, custom commands, automated tasks, and integration with external APIs.
Python
1
star
34

ai-email-replay

With help of Open AI GPT-3 it will generate suggestion for replay an email.
Python
1
star
35

jongli-fashion-server

Fashion Based E-commerce API for Jongli Fashion E-commerce
Python
1
star
36

translatoo

Python
1
star
37

pombrain

Using GPT-3 with gpt-neox model generate fully discord bot to do variolous NLP task.
Python
1
star
38

solid-principal-python

Examples of each of the SOLID principles in Python
Python
1
star
39

noor-chatbot-user-server

a chatbot backend system that tracks conversation history and user data, including subscriber information and media uploads. It offers the ability to send media files to specific users via WhatsApp or Telegram, and utilizes GPT-3 for answering basic religious questions.
Python
1
star
40

-Real-Estate-App

Real Estate based web app to management and distribution real estate business . Django with react.
Python
1
star
41

toram_online_scripts

Basic functions with automation
Python
1
star
42

harmoni-graph

A Knowledge Graph for Enhancing Songwriting with Machine Learning
1
star
43

google-review-chatbot-dashboard

Python
1
star
44

hotel-reservation-fastapi

Basic hotel reservation with fastapi to learn basic fastapi
Python
1
star
45

Doctors-Assistant-Api

A solution for doctors to research and analyse and keep all their patient's information.
Python
1
star
46

chat-gpt-react-client

A React-based chatbot client that uses GPT-3 for natural language processing and text generation. Customizable UI, integration with external APIs and easy deployment.
JavaScript
1
star