Intent-Aware Retrieval-Augmented Generation for EU Legislation: A Multi-Source Framework for Summarizing Laws, Debates, and News

dc.contributor.authorNabawagga, Ritah
dc.contributor.facultyfi=Tekniikan ja innovaatiojohtamisen yksikkö|en=School of Technology and Innovations|
dc.contributor.organizationfi=Vaasan yliopisto|en=University of Vaasa|
dc.date.accessioned2026-08-21T12:02:54Z
dc.date.issued2026-06-11
dc.description.abstractRetrieval-augmented generation (RAG) pipelines typically employ uniform retrieval strategies across queries, disregarding document-type imbalance in heterogeneous corpora. This thesis investigates whether intent-aware agentic retrieval with source-type weighting improves query-guided summarization over a multi-source EU legislative corpus compared to a standard RAG pipeline. The system classifies each query into one of four intent types (factual, temporal, stance, comparative) and uses this classification to condition source-type retrieval weighting, query decomposition, and summarization prompt selection. These mechanisms are combined with hybrid BM25-dense retrieval using reciprocal rank fusion. A six-level ablation study over 40 benchmark queries evaluates each retrieval component incrementally. The full system achieves attribution of 0.642, outperforming the standard RAG baseline by 15.5%, with modest trade-offs in alignment (−0.025) and key term coverage (−0.028). Hybrid retrieval achieves perfect alignment (1.000) across all 40 queries, making it the strongest single component. The agentic loop increases attribution further (+0.054) but introduces alignment costs on query types where single-pass retrieval is sufficient. An unexpected interaction between hierarchical chunking and inverse-frequency weighting inverts the document-level class distribution at the chunk level. Human evaluation with three raters confirms that automated metrics capture structural summary properties but not substantive adequacy. The findings demonstrate that hybrid retrieval should be the default for multi-source legislative corpora and that component interactions are intent dependent.
dc.description.notificationfi=Opinnäytetyö kokotekstinä PDF-muodossa.|en=Thesis fulltext in PDF format.|sv=Lärdomsprov tillgängligt som fulltext i PDF-format|
dc.format.contentfi=kokoteksti|en=fulltext|
dc.format.extent87
dc.identifier.urihttps://osuva.uwasa.fi/handle/11111/21200
dc.identifier.urnURN:NBN:fi-fe2026061167530
dc.language.isoeng
dc.rightsCC BY-NC-ND 4.0
dc.subject.degreeprogrammeMaster’s Programme in Smart Energy
dc.subject.disciplinefi=Tietotekniikka|en=Computer Science|
dc.subject.ysofull-text databases
dc.titleIntent-Aware Retrieval-Augmented Generation for EU Legislation: A Multi-Source Framework for Summarizing Laws, Debates, and News
dc.type.ontasotfi=Pro gradu -tutkielma|en=Master's thesis|sv=Pro gradu -avhandling|

Tiedostot

Näytetään 1 - 1 / 1
Ladataan...
Name:
Uwasa_2026_Nabawagga_Ritah.pdf
Size:
2.72 MB
Format:
Adobe Portable Document Format