Skip to content

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

License

Notifications You must be signed in to change notification settings

shamspias/langchain-telegram-gpt-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages