OpenJustice Challenge
Open Source Legal AI für die Schweiz
🅰️ℹ️ Translated and analyzed with Qwen2.5-72B
OpenJustice is an open-source initiative by Queen’s University in collaboration with the University of Lausanne, aimed at making legal AI more transparent, fair, and accessible. The goal is to make legal information and legal assistance easily available to everyone. The challenge focuses on further developing OpenJustice specifically for Switzerland and contributing to a public good in the legal tech sector.
The key tasks for the challenge include:
-
Data Selection for OpenJustice:
- Decide which data sources will be used for a Switzerland-specific Retrieval-Augmented Generation (RAG) solution.
-
Case Structure Development for Swiss Legal Cases:
- Identify specific legal cases that are particularly relevant for individuals seeking legal help in Switzerland.
- Analyze the typical legal decision-making logics (individual elements of the case) for these cases.
- Translate these logics into structured dialog flows (modular prompt components for the OpenJustice platform).
- Test and evaluate the developed case structures using real or fictional cases to ensure accuracy.
Evaluation
- Data Selection: This task is feasible within a 2-day hackathon if the team has a clear understanding of the available data sources and can quickly agree on the most relevant ones. Key data sources might include Swiss legal databases, court decisions, and legal statutes.
- Case Structure Development: Developing and testing case structures is a more complex task but can be managed within the time frame if the team is well-organized and has a mix of legal and technical expertise. The process involves identifying relevant cases, analyzing legal logics, and creating dialog flows, which can be time-consuming but is achievable with focused effort.
Risks and Constraints:
- Data Availability: Access to comprehensive and up-to-date legal data is crucial. The team may face challenges if the data is not readily available or is not in a format that is easy to process.
- Legal Accuracy: Ensuring that the case structures and dialog flows are legally accurate and compliant is essential. This will require close collaboration with legal experts to validate the content.
- Testing and Evaluation: Rigorously testing the developed case structures with real or fictional cases is necessary to ensure accuracy and usability. The team will need to manage this process efficiently to fit within the hackathon timeline.
Benefits:
- Accessibility: Making legal information and assistance more accessible to the general public aligns with the mission of OpenJustice and can have a significant positive impact.
- Transparency and Fairness: By developing a transparent and fair AI solution, the project can help build trust in legal technology and ensure that it serves the public interest.
- Innovation: This project can set a new standard for legal tech in Switzerland and serve as a model for similar initiatives in other regions.
Additional Considerations:
- User Feedback: Gathering feedback from potential users (e.g., legal professionals, individuals seeking legal help) can provide valuable insights and improve the final product.
- Scalability: Ensuring that the developed structures and dialog flows are scalable and can be easily adapted to new cases and legal contexts will enhance the long-term value of the project.
Conclusion
This challenge is realistic and has the potential to make a significant impact on the accessibility and transparency of legal information in Switzerland. The success of the project will depend on the team's ability to manage data selection, ensure legal accuracy, and efficiently develop and test case structures. Collaboration with legal experts and a well-organized approach will be crucial. Contributing to a public good in the legal tech sector is a valuable and meaningful endeavor.
Getting Started
- Pull down the
master
branch from this repo. - Ask the developer of this repo for an
.env
file. Add this file in the root directory. - Run
yarn
andyarn dev
. This should spin up the app in http://localhost:3000.
Running the project
This is a Next.js project bootstrapped with create-next-app
.
Prerequisites
Install yarn
a package manager similar to npm
.
npm install --global yarn
Getting Started
First, run the development server:
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the home page by modifying app/page.tsx
. The page auto-updates as you edit the file.
This project uses next/font
to automatically optimize and load Roboto, a custom Google Font.
Learn More
Next.js has server and client code. Files marked with "use client";
at the top will always run on the browser. Features like useState
only work in the browser because they require user input. Other files can be rendered in the server and allow for faster load times. Most importantly, we can run API endpoints in Next.js' server without having to run multiple projects at the same time. This simplifies our infrastructure and makes it easier to test changes locally.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
Ngrok
- For Windows, download the
ngrok.exe
file from https://ngrok.com/download and click to open that file. This should open up an ngrok window. - In the ngrok window, run
ngrok config add-authtoken <token>
andngrok http --domain=chat.openjustice.ai 3000
. You may need to ask the developer for the token as well. - The app should be running at https://chat.openjustice.ai ! (Might take a couple minutes to spin up the app)
Developer Contributing Guidelines
- Make only small changes to each commits
- Create a new branch for every new request/ticket
- Use git rebase for cherry picking, avoid using git commit reset --hard if possible
Previous
Open Legal Lab
Next project