RATIONAL SEARCH ALGORITHM FOR SEARCHING FOR A LEGAL POSITION IN A SET OF JUDICIAL DECISIONS OF THE JUDICIARY OF UKRAINE USING LARGE LANGUAGE MODELS
DOI:
https://doi.org/10.20535/kpisn.2025.2.331288Abstract
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).
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Павло Маслянко, Сергій Мірко

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under CC BY 4.0 that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work