Bo-Zhi Yao

Author directory

2026

The used car market suffers from significant information asymmetry, which frequently results in contractual disputes. Although large language models (LLMs) provide substantial potential for automated legal assistance, their application in legal domains remains challenging due to hallucination risks and difficulties in generating legally grounded responses. This study proposes a dual-layer Knowledge Graph Retrieval-Augmented Generation (KG-RAG) framework tailored specifically for Taiwanese used car disputes. We construct a structured legal knowledge graph integrating abstract statutory knowledge with historical judicial records collected between 2000 and 2020, thereby forming a litigation experience layer that complements the statutory knowledge layer. To prevent temporal data leakage, judicial records are chronologically partitioned, with cases from 2000 to 2020 used for knowledge graph construction and cases from 2021 to 2025 reserved for evaluation. To address the semantic gap between colloquial user queries and formal legal representations, as well as the limitations of general-purpose semantic rerankers, our framework incorporates few-shot query enrichment, multi-hop graph expansion, and a weighted variant of the Reciprocal Rank Fusion (wRRF) strategy. Furthermore, we introduce a domain-specific "Soft Evaluation" framework based on a co-occurrence-based Legal Equivalence Mapping to complement strict exact-match evaluation. Comprehensive experiments show that the full KG-RAG configuration achieves a Hit@8 score of 62.81% under statute-level exact-match evaluation and 63.22% under soft-match evaluation. End-to-end generation evaluation further shows that the Qwen2.5-14B-based KG-RAG configuration achieves a generation hit rate of 55.79%, compared with 19.01% for the Qwen2.5-14B-only baseline and 43.80% for traditional vector-based RAG. The corresponding LTTR is 0.41%, compared with 11.16% for the Qwen2.5-14B-only baseline. These results show that the proposed framework improves legal retrieval and generation performance while substantially reducing high-risk recommendations relative to LLM-only generation.
Search
Co-authors
Venues