Skip to content

lawsy-jp/lawsy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lawsy - Making Law Easy

Lawsy is a hackathon-born Legal Search tool for Japanese statutes and regulations. This open-source repository reflects the prototype developed during the hackathon and is not a production-ready implementation. It integrates semantic search, statute databases, and authoritative web sources to generate clear, referenced reports, showing how legal research can be made more accessible and transparent.

Requirements

Run

1. Install dependencies

Install Python packages

make install

2. Create .env file

Create .env file and put it in the repository root directory.

OPENAI_API_KEY=sk-...  # OpenAI API KEY
LAWSY_WEB_SEARCH_ENGINE=DuckDuckGo
LAWSY_LM=openai/gpt-4o-mini

3. Download Preprocessed Data

make lawsy-download-preprocessed-data

Run App

make lawsy-run-app

Development

Format & Lint

format:

make format

lint:

make lint

References