Uppsats
Retrieval Augmented Generation with Fine-Tuned Google Gemini 3 4-Billion Parameter mode : Design and Implementation
Kandidat-uppsats
KTH/Skolan för elektroteknik och datavetenskap (EECS)
Publicerad: 2025
Språk: Engelska
Nyckelord
klicka för att sökaSammanfattning
Artificial Intelligence (AI), specifically the Large language models (LLM) are powerful tools that are rapidly spreading to many domains in industry, enabling increased productivity and efficiency in the workplace. However, due to pre-training on general data as well as its probabilistic nature , limitations arise due to lack of knowledge on specific domains as well as hallucinations, and false interpretation of input queries. This thesis investigates the performance and application of an LLM in the Swedish legal system, by fine tuning the LLM, Gemma 3-4B and implementing a Retrieval Augmented Generation (RAG) system which is then subjected through qualitative and quantitative evaluations in collaboration with law students , law professors and legal experts. The quantitative results gathered demonstrates the limitation of the model due to its shortcomings in terms of specific section location and understanding of more complex legal queries and legal calculations. F1 scores where this was the case were observed to go to a low of 0,03. It is however performing significantly better when dealing with legal term based query where it scores a high of 0,56. The qualitative results point towards a great improvement and potential in the LLMs query results with RAG implementation. It is also highly praised for its reasoning capabilities and transparency in terms of the steps it took to gather the final answer, although the model still presented limitations, presenting room for further improving the models performance and accuracy.
Information
- Författare
- Asghari, Yas, Arkhang, Dawa
- Lärosäte / institution
- KTH/Skolan för elektroteknik och datavetenskap (EECS)
- Publiceringsdatum
- 2025
- Uppsatstyp
- Kandidat-uppsats
- Språk
- Engelska
- Nyckelord
- ⌕Artificial Intelligence⌕Machine Learning⌕Retrieval-Augmented Generation⌕Artificiell intelligens⌕Maskininlärning⌕Large language model⌕Natural Language Processing⌕Reinforcement Learning⌕supervised learning⌕Unsupervised Learning⌕Förstärkningsinlärning⌕domain adaptation⌕Chain-of-Thought Reasoning⌕Task-based Finetuning⌕Swedish Legal System⌕Legal System⌕GRPO⌕Sökförstärkt generering⌕Naturlig språkbehandling⌕Uppgiftsbaserad finjustering⌕Domänanpassning⌕Stor språk-modell⌕Svenskt rättssystem⌕Rättssystem⌕Tankekedjeresonemang⌕övervakad inlärning⌕Oövervakad inlärning
Utforska vidare
Liknande uppsatser
Uppsatser med liknande ämnen och nyckelord.
Yrkesexamen på avancerad nivå, Uppsala universitet/Avdelningen för systemteknik
Vigholm, Albin
Publicerad: 2026
Kandidat-uppsats, Högskolan i Halmstad/Akademin för informationsteknologi
Fawal, Raghad
Publicerad: 2026
Kandidat-uppsats, Mälardalens universitet/Akademin för ekonomi, samhälle och teknik
Sauleskalne, Patricija, Tigerbacke, Fideli
Publicerad: 2026
Yrkesexamen på avancerad nivå, Luleå tekniska universitet/Institutionen för ekonomi, teknik, konst och samhälle
Åström, Tuva, Nilsson, Matilda
Publicerad: 2026
Yrkesexamen på avancerad nivå, Luleå tekniska universitet/Institutionen för ekonomi, teknik, konst och samhälle
Nordlander, Jonas
Publicerad: 2026
M1-uppsats, Jönköping University/JTH, Avdelningen för datateknik och informatik
Seyhani Porshekoh, Artin
Publicerad: 2026