Coder Social home page Coder Social logo

pranav-m-r / chatgpt-law Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pathway-labs/dropbox-ai-chat

0.0 0.0 0.0 21.36 MB

A chatbot to help read and understand bills passed by the Indian govt.

Home Page: https://github.com/pathwaycom/llm-app

License: MIT License

Python 91.28% Dockerfile 8.72%
llm pathway

chatgpt-law's Introduction

Law Chatbot

The project uses the dropbox chatbot template to train the gpt model on important bills passed by the Indian government after the training cutoff of OpenAI's GPT 3.5 model. Law documents are important documents for any citizen of the country, but also are the most difficult to read and comprehend for a civilian. So this tool can serve as a useful resource for anyone who wants to learn about the new laws passed and how it impacts them.

Demo

See how the tool works:

Dropbox AI search tool demo

As you can see the LLM App enables AI-powered search from multiple unstructured documents like tax information from different countries, and indexes input data in real-time just after you upload files to the cloud storage.

Run with Docker

  1. Create .env file in the root directory of the project, copy and paste the below config. Replace the OPENAI_API_TOKEN configuration value with your key {OPENAI_API_KEY} and replace DROPBOX_LOCAL_FOLDER_PATH with a path where Dropbox folder is located {REPLACE_WITH_DROPBOX_FOLDER_PATH}. For example, if the current project folder is DROPBOX-SEARCH-TOOL, you navigate to the Dropbox path in the home directory: ../Dropbox/documents. Other properties are optional to change and be default.
OPENAI_API_TOKEN={OPENAI_API_KEY}
EMBEDDER_LOCATOR=text-embedding-ada-002
EMBEDDING_DIMENSION=1536
MODEL_LOCATOR=gpt-3.5-turbo
MAX_TOKENS=500
TEMPERATURE=0.0
DROPBOX_LOCAL_FOLDER_PATH={REPLACE_WITH_DROPBOX_RELATIVE_PATH}
  1. From the project root folder, open your terminal and run docker compose up.
  2. Navigate to localhost:8501 on your browser when docker installion is successful.

chatgpt-law's People

Contributors

boburmirzo avatar avriiil avatar berkecanrizai avatar arjun-ms avatar pranav-m-r avatar zxqfd555-pw avatar szymondudycz avatar

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.