Unlocking the power of AI for legal applications

AI & Law

Unlocking the power of AI for legal applications

The OpenJustice initiative is aiming to provide the legal sector with accessible and reliable artificial intelligence support.

By Catarina Chagas, Manager, Strategic Communications and Outreach

July 24, 2025

Share

Three students standing in front of a server rack

Dr. Sam Dahan (centre) with OpenJustice co-founders Xiaodan Zhu (right), Smith Engineering, and David Liang (left), Law鈥21, Smith School of Business.

From medical imaging to education, artificial intelligence (AI) is at the core of a technological revolution across sectors. But in some areas, AI potential is still limited by the lack of trustable models, capable of discerning technical and sensitive issues that should inform decision making. Law is one of these areas.

Systems like ChatGPT, known as large language models (LLMs), are trained to understand and generate language, like a human would. They learn from available data, such as online content, and from their interactions with users. But, by counting on data containing biased or false information, LLMs can generate flawed content and present it as true.

Current legal AI models can experience hallucination rates (when AI generates false information and presents it as real) as high as 66%, and a tendency toward 鈥渟ycophancy,鈥 parroting back what models think users want to hear rather than offering critical analysis. They also lack the customizable workflows, domain-specific language, and legal reasoning practitioners need. 

Solving these challenges is the goal of , a no-code AI platform tailored for legal applications created by 皇冠体育鈥檚 Conflict Analytics Lab (CAL) in 2023. The project is receiving over $1.3 million in support, including $462,160 from the Natural Sciences and Engineering Research Council (NSERC) Alliance Advantage and Mitacs Accelerate grants 鈥 which aims to foster university collaborations with private, public-sector, and not-for-profit organizations 鈥 and $400,000 from the Social Sciences and Humanities Research Council (SSHRC) Insight Grant program, plus contributions of project partners. Led by Samuel Dahan (Law), the team will use the funding to advance legal AI models, making them more reliable, customizable and accessible. 

OpenJustice was specifically trained on different legal systems from Canada, the U.S., and France, which improves reliability. To create a community of users, CAL has established partnerships with law schools, courthouse libraries, and self-help centers such as Pro Bono Canada. Each organization brings new users to OpenJustice. While users benefit from the open access to legal information, they also provide high quality feedback on how to improve the platform.

But what can bring OpenJustice to the next level, according to Dr. Dahan, is to get lawyers to instill their practice, knowledge, and experience into the framework, helping to build the AI model from scratch. In February, during a Legal AI Hackathon hosted by CAL and the Stanford Center for Legal Informatics, OpenJustice officially became open source, meaning users can now revise and change the code to make it suitable for their needs. Over 40 custom models have been developed by OpenJustice users since then.

鈥淚t鈥檚 one thing to develop AI models to support basic productivity tasks such as redrafting or creating summaries, but it is much more challenging to develop models that can address the essential components of being a lawyer: digging deep into the state of the law, understanding what courts say about a problem, investigating whether there is divergence of interpretation 鈥 this is not the type of data you can get from a textbook. This unique co-creation functionality of OpenJustice will allow experts to build guardrails to ensure that AI models are reliable in terms of technical, ethical and legal boundaries.鈥

鈥 Dr. Samuel Dahan

Because most lawyers are not coders, Dr. Dahan and team 鈥 including text analytics and machine learning expert Xiaodan Zhu (Electrical and Computer Engineering) 鈥 have put a lot effort into building a user-friendly creator interface that enables lawyers to contribute to the AI models and feed them with documents, instructions, and examples. The team has now partnered with law firms and tech companies to test the new framework in real life settings, both in practitioners and legal aid contexts.

Working with the Scotiabank Centre in the Smith School of Business, collaborator Anton Ovchinnikov will advance applications across the financial industry.  The project team will also engage academic partners at Stanford and McGill universities.

Dr. Dahan is excited about the potential of OpenJustice to make high-quality AI assistance available for small practices and pro-bono lawyers in Canada and internationally that would not otherwise be able to afford the development of customized models. 鈥, billions of people around the world do not have access to adequate legal support. This innovation will not only enhance legal service offerings but also have a positive impact on access to justice by ultimately increasing the percentage of adequately represented litigants, driving down legal fees and lowering the cost of legal research,鈥 he says.

Law, Governance, and Public Policy
Social Sciences
Technology and Innovation
Law
Smith Business
Smith Engineering
Peace, Justice and Strong Institutions