Skip to content

SebasEliens/wetsy

Repository files navigation

banner

Pak de klimaatboeven

Wetsy is an idea for a "Legal Search" application aiming to help the prosecusion of climate criminals in the Netherlands.

STATUS: This a proof of concept!

Motivation

While many oportunities exist to prosecute climate related and environmental offences, the legal basis is often a combination of laws which is not always obvious without extensive expertise. With the use of natural language processing, a specialized search engine can help support the work of constructing the legal case.

Approach

We use the same data as the website wetten.nl. It can be downloaded using the python package wetsuite. The data is preprocessed and ingested into a Chroma DB instance, using the embedding model robbert-2022-dutch-sentence-transformers (developed by the Netherlands Forensic Institute). Via simple UI and supporting backend api, a description of the criminal activity is matched to the relevant laws by semantic search.

Setup

Run with docker

docker compose up

and check http://localhost:8000.

Development

brew install uv just
uv sync
just test
just run

Upload the data to chroma DB

uv run python data/upload.py

This requires Chroma DB to be reachable on the url in the environment variable WETSY_CHROMA_HOST.

(Currently, only Het wetboek van strafrecht is ingested).

About

Pak de klimaatboeven

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors