Coder Social home page Coder Social logo

legal-documents-ai's Introduction

legal-documents-ai

Demo of SuperDuperDB as a tool and platform for performing legal documents AI, RAG and comprehension

Installation

  • pip install -r requirements.txt
  • python3 -m spacy download en

Specific format file dependencies

doc/docx If we want to process files in doc/docx format, we need to install the following dependencies

Linux:

sudo apt update
sudo apt install libreoffice

MacOs:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install --cask libreoffice

Initilization

Start Mongodb service

docker run -itd --name mongo -p 27017:27017 mongo

Create PDF File System Service

  1. Create new window and goto root run python -m http.server 8000

Setup DB And Start streamlit App Service

  1. Set OpenAI Key: export OPENAI_API_KEY=sk-....
  2. Set export PDF_FILE_SERVICE_HOST=localhost
  3. Set the pdf directory of the initialization data, if necessary: export DOCUMENTS_FOLDER=documents, default load the ./documents
  4. streamlit run app.py, if you want to reset rebuild the database, you can add reset: streamlit run app.py -- --reset

legal-documents-ai's People

Contributors

jieguangzhou avatar blythed avatar

Watchers

 avatar  avatar

Forkers

jieguangzhou

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.