Skip to content
Conference Open access

UGM-Legal-AI: Question and Answer System for Turkish Customs Legislation

Sep 2026 · 2026 11th International Conference on Computer Science and Engineering (UBMK) · pp. 167-172 · 0 citations

TL;DR

The UGM-Legal-AI system, developed for the application environment of Turkish customs law, offers a reusable pattern for domain-specific legal AI where hallucination control and decision traceability are primary requirements.

Abstract

The application of LLM models to the legal field has not been successful in generating fluent natural language, source-based, time-valid, and verifiable responses. Traditional RAG pipelines accept fetched texts as direct evidence for response; however, legal accuracy depends not on the text itself but on the legislation in force. This paper aims to present the UGM-Legal-AI system, developed for the application environment of Turkish customs law. The system distinguishes itself from classical RAG by separating the layers of incremental access, distinct legal decision, and supervised LLM generation. The Question Understanding Contract (QUC) combines the parser output, Turkish language compiler, and on-demand semantic enrichment into a single, immutable contract. Sub-layers use only this contract. The agent-based dual-channel pipeline accesses official legislation and corpus in parallel. It implements a critic cycle. It mandates source-based responses only through multi-stage gates, including HS code support contracts. Principles for indexing clauses and paragraphs specific to Turkish legal texts, eight skilled work-time contracts, and a cohort-based production evaluation framework have been defined. Observations on the Silver baseline (v116) show that the canonical sections are consistently retrieved (confidence value 0.7916) and the question understanding path after initial warm-up is reduced to less than 1 second, while access latency is revealed to be the dominant bottleneck. The architecture offers a reusable pattern for domain-specific legal AI where hallucination control and decision traceability are primary requirements.

Read PDF

Similar papers

Conference Open access Sep 2026

TurkLegalRAG: A Novel Dataset and Hybrid Retrieval Pipeline for Turkish Law

A RAG system is built on TurkLegalRAG, a Turkish legal dataset built from scratch for retrieval-augmented question answering, with a hybrid BM25 and BGE-M3 retriever fused by reciprocal rank fusion, article-level deduplication and source capping for context diversity, cross-encoder reranking, and an abstain mechanism t...

Alperen Berke Çetinkaya, Cevdet Alp Özgün, Salih Barkın Akkaya et al. · 0 citations
Open access 2026

Verifiable Legal Contract Question Answering Using Natural Language Inference Grounding and Knowledge Graphs

Legal contract analysis is a critical yet labor-intensive process in the legal and business domains where precise interpretation of complex contractual language is required. Existing approaches to automated legal question answering (QA) suffer from hallucination, lack of verifiability, and inability to provide traceabl...

Ganesh Gautam, Prabin Adhikari, Nirajan Sah et al. · 0 citations
Preprint Oct 2026

IndicIPR-QA: A Benchmark for Extractive Question Answering on Indian IPR Laws

IndicIPR-QA1 is presented, an extractive QA benchmark for Indian IPR laws, which contains 4,462 QA pairs from 1,116 statutory contexts across seven Acts and shows that simple word matching is not enough to answer these legal questions.

M. Islam, M. Abulaish · 0 citations
Open access Oct 2026

Legal AI: An Intelligent Legal Document Simplification Using NLP

Legal documents such as rental agreements, employment contracts, service agreements, and policy documents often contain complex legal terminology, lengthy clauses, and technical language that make them difficult for non-legal users to understand. Identifying important conditions related to notice periods, penalties, an...

K. N. Dhanya, A. R, L. S. Bhoomika et al. · 0 citations
Open access Oct 2026

My Attorney: An AI- Based Legal Assistance for Indian Citizens

Legal information is often challenging for normal people to understand because legal documents or files contain complex terminology, lengthy clauses, and recommendations to different laws and regulations. Traditional legal consultation may also be time consuming and costly and may require professional assistance. To ad...

Omesh Wadhwani, Ritika Kawale, Tiya Ghosh et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.