TLDR the T&C is a Gradio-based chatbot that provides a user-friendly interface for users to ask questions about the contents of Terms and Conditions (T&C) documents. The chatbot uses an LLM (Language Model Machine) and the OpenAI API to understand the T&C documents and provide summarized answers to users' queries.
The code is designed to process both PDF and TXT files and includes functionality for splitting large documents into smaller chunks for more efficient processing. The OpenAI API is used for text embeddings and retrieval QA, which allows the chatbot to provide more accurate and relevant responses to users' questions.
Overall, TLDR-the-T&C provides a powerful and user-friendly way for users to quickly and easily understand the contents of T&C documents, without having to read through lengthy and often complicated legal documents themselves.
- Python
- Langchain
- OpenAI GPT-3.5 Turbo
- Gradio
git clone https://github.com/Daheer/TLDR-the-TnC.git
pip install -r requirements.txt
python app.py --key sk-XXXXXXXXXXXXX
TLDR-the-TnC.mp4
live
demo available at this HuggingFace Space
live
deployment available at Render.com