Year: 2025
Type: dissertation
Abstract: Retrieval Augmented Generation (RAG) systems are the backbone of grounding responses from large language models in external knowledge, but ensuring accuracy and efficiency in certain specialized domains remains an ongoing challenge. This research proposes a comparative framework for evaluating the three main RAG approaches those being BM25, vector based and hybrid (BM25 + vector). A custom dataset was prepared from the Irish Statutory Instruments (2020-2025) by extracting the text from the PDFs, applying section-based chunking and encoding the chunks using BAAI/bge-large-en-v1.5. A gold standard evaluation set of 240 question-answer pairs was used for benchmarking. Weaviate database was utilized in the implementation of BM25, vector and hybrid retrievals. Evaluation was primarily focused on the following metrics, Mean Average Precision, recall, Average Entailment Score, Average Contradiction Score, Average Obligation Coverage Score and Average Final Composite Score. Results indicate that the Weaviate based hybrid system with re ranking had a performance increase in retrieval precision of more than 20% over the baseline simple hybrid system. Overall hybrid re rank performed best with 0.702 recall and highest final composite score of 0.35. This research aims to contribute to the practical guidelines for the designing and development of reliable and efficient RAG systems in the legal domain benefitting legal practitioners and policy makers with trustworthy AI tools.
Source: NORMA
Author: Hassan, Ozair
Institution: National College of Ireland
Language: English
Topic: Topic Modeling
Subfield: Artificial Intelligence
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7208802789
