GithubHelp home page GithubHelp logo

daheer / tldr-the-tnc Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 29 KB

TLDR the T&C uses an LLM to understand the contents of Terms and Conditions documents and provides a user-friendly chatbot interface for users to ask questions and receive answers.

License: MIT License

Python 44.70% Jupyter Notebook 55.30%
gradio langchain llms nlp openai terms-and-conditions

tldr-the-tnc's Introduction

TLDR-the-T&C

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.

Built Using

  • Python
  • Langchain
  • OpenAI GPT-3.5 Turbo
  • Gradio

Usage

git clone https://github.com/Daheer/TLDR-the-TnC.git 
pip install -r requirements.txt
python app.py --key sk-XXXXXXXXXXXXX

Demo

TLDR-the-TnC.mp4

live demo available at this HuggingFace Space

live deployment available at Render.com

Reference

Langchain

Contact

tldr-the-tnc's People

Contributors

daheer avatar zakkg3 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

zakkg3

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.