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.
- 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
- Python
- OpenAI API
- FAISS
- Telebot
- Google Text-to-Speech
- SpeechRecognition
- Pydub
- 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
- Python 3.7+
- OpenAI API key
- FAISS
- Telegram bot token
- Go to Langchain Chat and create a model based on your document.
- Clone the repository
git clone https://github.com/shamspias/langchain-chat.git
cd langchain-chat
- Copy the Model into
models/
directory - Create the virtual environment and active it Install the dependencies
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
- Copy the example.env file and rename it to .env and give the values of the variables
- Run the application
python chatbot.py
- Start chatting with your bot!
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please feel free to submit issues or pull requests to improve the chatbot's functionality, performance, or documentation.
- 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