Challenge Project

Legal Reasoning AI

The mission of this project is to develop an AI agent capable of performing legal reasoning within the Swiss private law ecosystem. Imagine an interface where legal experts can pose questions and, in return, receive step-by-step explanations of the process leading to a legally correct answer. The first step will highlight relevant legal sources identified by a semantic search algorithm that sifts through curated law articles, while the following process will involve LLM queries that synthesize these sources into a concise response. The advantage of such a system lies in its ability to automate legal reasoning, offering legal professionals full transparency to verify the legal basis of the answers. To achieve this, we utilize the existing RAG (Retrieval-Augmented Generation) solution from the Law Bot open-source software project, which provides a robust technical foundation that can be further developed. Contributors to the Law Bot project will provide guidance on enhancing this existing solution. This challenge represents an opportunity to blend AI with legal expertise, ensuring both accuracy and transparency in resolving use cases in the area of Swiss private law. We invite you to join us in pushing the boundaries of legal technology, making legal reasoning both automated and verifiable.

⛶  Fullscreen ↓  Download 📂 Demo

Law Bot


The Backend is based on Python / FastAPI and described in more detail in the backend folder.


The Frontend is based on Next.js and described in more detail in the frontend folder.


Test data can be found inside the data folder.

This content is a preview from an external site.
👋 Aneta Králová, David Roeigers
🌐 Open 📂 Demo 💻 Source

Event finished

Edited (version 17)

25.03.2024 13:51 ~ LucaGrand


Install bun.js by Follow the instructions on https://bun.sh

24.03.2024 17:30 ~ simonweigold

Joined the team

24.03.2024 12:26 ~ simonweigold

Event started

Edited (version 14)

20.03.2024 00:18 ~ droegier

Edited (version 13)

20.03.2024 00:17 ~ droegier

Edited (version 12)

19.03.2024 21:37 ~ droegier

Edited (version 11)

19.03.2024 21:28 ~ Aneta

Edited (version 10)

19.03.2024 21:16 ~ Aneta

Joined the team

19.03.2024 21:04 ~ Aneta

Edited (version 8)

19.03.2024 09:21 ~ droegier

Edited (version 6)

19.03.2024 09:17 ~ droegier

Edited (version 4)

19.03.2024 09:15 ~ droegier

Edited (version 3)

19.03.2024 09:12 ~ gaston_wey

Joined the team

19.03.2024 09:08 ~ droegier

Repository updated

19.03.2024 09:00 ~ droegier

First post View challenge

19.03.2024 09:00 ~ droegier


Contributed 2 months ago by droegier for Open Legal Lab 2024
Alle Teilnehmer*innen, Sponsor, Partner, Freiwilligen und Mitarbeiter*innen unseres Hackathons sind verpflichtet, dem Hack Code of Conduct zuzustimmen. Die Organisatoren werden diesen Kodex während der gesamten Veranstaltung durchsetzen. Wir erwarten die Zusammenarbeit aller Teilnehmer*innen, um eine sichere Umgebung für alle zu gewährleisten. Weitere Einzelheiten zum Ablauf der Veranstaltung finden Sie unter Richtlinien auf unsere Webseite.

Creative Commons LicenceDie Inhalte dieser Website stehen, sofern nicht anders angegeben, unter einer Creative Commons Attribution 4.0 International.