Giter VIP home page Giter VIP logo

shamspias / langchain-telegram-gpt-chatbot Goto Github PK

View Code? Open in Web Editor NEW
60.0 4.0 11.0 29 KB

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

Home Page: https://t.me/deadlyaibot

License: MIT License

Python 100.00%
ai artificial-intelligence chatbot chatbot-telegram faiss gpt-3 gpt-3-5-turbo gpt-35-turbo gpt-4 langchain

langchain-telegram-gpt-chatbot's Introduction

Langchain Telegram GPT Chatbot | Make your own AI Telegram Chatbot with the document you have

This repository contains a Telegram chatbot powered by OpenAI's GPT-3.5-turbo and FAISS for document similarity search. The chatbot can understand text and voice messages, providing intelligent responses based on the user's input. In addition to its conversational capabilities, the chatbot also integrates with a document similarity search engine, allowing users to find relevant information in a collection of documents.

Demo

DeadlyAI

Features

  • Text and voice message support
  • Conversational AI using OpenAI's GPT-3.5-turbo
  • Document similarity search with FAISS
  • Conversation history tracking
  • Google Text-to-Speech integration

Technologies

  • Python
  • OpenAI API
  • FAISS
  • Telebot
  • Google Text-to-Speech
  • SpeechRecognition
  • Pydub

Future Scope

  • Support for additional languages(한국어, 日本語, বাংলা etc.)
  • Integration with other messaging platforms
  • More advanced conversational features (e.g., context-aware responses)
  • Improved performance and scalability
  • Utilizing newer versions of OpenAI's models

Installation and Usage

Prerequisites

  • Python 3.7+
  • OpenAI API key
  • FAISS
  • Telegram bot token

Installation

  1. Go to Langchain Chat and create a model based on your document.
  2. Clone the repository
git clone https://github.com/shamspias/langchain-chat.git
cd langchain-chat
  1. Copy the Model into models/ directory
  2. Create the virtual environment and active it Install the dependencies
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
  1. Copy the example.env file and rename it to .env and give the values of the variables
  2. Run the application
python chatbot.py
  1. Start chatting with your bot!

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit issues or pull requests to improve the chatbot's functionality, performance, or documentation.

Acknowledgements

  • OpenAI for providing the GPT-3.5-turbo model
  • Facebook AI for developing the FAISS library
  • The developers of the various libraries and tools used in this project

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.