JsonLawgic is an open source greenfield prototype aiming to express the law as coding logic using LLMs to convert legal text into a computational format.
I believe that by translating legal text into JsonLogic (a logic-based DSL for encoding rules), it will be possible to build apps that can answer legal questions for users and provide better Access to Justice than what the legal system currently offers.
The LLM pipeline is capable of translating laws to code en masse using LangChain in Python. The Next.js app allows users to search on the translated laws, edit their code and evaluate them.
Technologies
Next.js React app in Typescript using Tailwind and Shadcn. Python with Langchain for LLM pipeline. Crawlee & node for web scraping. Minisearch to handle law search.
Like this project
0
Posted Dec 6, 2024
Expressing the law as coding logic using LLMs to convert legal text into a computational format. Search on laws, run their LLM-translated rules as code