RATIONAL SEARCH ALGORITHM FOR SEARCHING FOR A LEGAL POSITION IN A SET OF JUDICIAL DECISIONS OF THE JUDICIARY OF UKRAINE USING LARGE LANGUAGE MODELS

Authors

DOI:

https://doi.org/10.20535/kpisn.2025.2.331288

Abstract

Background. The need to develop a reasoning search algorithm that is capable of automating the search and generation of context-based legal positions and an algorithm for generating legal positions of judicial decisions from existing judicial decisions in the judicial system of Ukraine, as a preparatory stage for a reasoning search algorithm.

Objective. Development of the concept of a reasoning search algorithm that is capable of automating the search and generation of context-based legal positions. Development and implementation of an algorithm for generating legal positions of judicial decisions available in the judicial system of Ukraine.

Methods. Development of the concept of a model of a reasoning search algorithm with three main components: search, formation of alternatives and generation of an answer. Development and implementation of an algorithm for generating legal positions of court decisions that searches for used legal norms, decomposes court decisions into a sequence of actions and generates legal positions.

Results. Mathematical model of the algorithm for generating legal positions of court decisions, which ensures automatic formation of a database of structured legal positions. Validation of the algorithm for generating legal positions of court decisions by comparing the results of the algorithm analysis and existing legal positions in the Database of Legal Positions of the Supreme Court.

Conclusions. The need for automating the search and generation of context-based legal positions is substantiated. The concept of a reasoning search algorithm is proposed, which is capable of automating the search and generation of context-based legal positions. An algorithm for generating legal positions using large language models and Data Science methods has been implemented, the validation of which has shown that the results correspond to the existing positions of the Supreme Court

References

Jan Bernaziuk “Shtuchnyi intelekt ta systema pravosuddia Ukrainy: rezultaty spivpratsi u rotsi, shcho mynuv”, Portal suchasnoho prava Supreme Observer. https://so.supreme.court.gov.ua/authors/934/shtuchnyi-intelekt-ta-systema-pravosuddia-ukrainy-rezultaty-spivpratsi-u-rotsi-sh%D1%81ho-mynuv.

P.P Maslianko, S.S. Mirko. “Kontseptualna model NLP-systemy poshuku relevantnoi pravovoi pozytsii na mnozhyni sudovykh rishen sudochynstva Ukrainy”. Наукові вісті КПІ, No 1–4, с. 71–85, 2023. https://doi.org/10.20535/kpisn.2023.1-4.310302

Kurbanova A.R. “Pidstavy Vidstupu Verkhovnoho Sudu Vid Isnuiuchoi Pravovoi Pozytsii: Praktychni Pidkhody”. Juridical scientific and electronic journal. 2024. No. 3. P. 508–512. URL: https://doi.org/10.32782/2524-0374/2024-3/123 (date of access: 11.03.2025).

Published

2025-07-21