Uppsats
Designing Swedish-Only Prompting Pipeline for Internal Documentation Tool with Local LLM : A multi-step prompt design with XHTML-safe editing and automated evaluation with LLM judge scoring
Kandidat-uppsats
KTH/Skolan för elektroteknik och datavetenskap (EECS)
Publicerad: 2026
Språk: Engelska
Sammanfattning
This thesis investigates how prompt engineering and lightweight guardrails can adapt a general-purpose LLM (Llama 4 Scout) to assist with Swedish documentation inside Arbetsförmedlingen’s Confluence workflow. The work focuses on three requirements: Swedish-only text improvement, lossless stripping and re-tagging of Confluence Storage Format XHTML and automatic evaluation using an LLM judge. A prototype system was implemented with an end-to-end pipeline consisting of plain text improvement, XHTML re-tagging, and automatic scoring using an LLM judge. Five system prompt configurations were evaluated on a small set of curated examples, with automatic scoring used to compare performance. The results show that structured prompts with explicit numbered instructions perform best for this editing task and that XHTML preservation is feasible when editing and formatting are separated. While the evaluation is limited and offline, the prototype demonstrates a practical pattern for integrating LLMs into a constrained public-sector documentation workflow and identifies a clear path for future deployment and human evaluation.
Information
- Författare
- Norberg, Rasmus
- Lärosäte / institution
- KTH/Skolan för elektroteknik och datavetenskap (EECS)
- Publiceringsdatum
- 2026
- Uppsatstyp
- Kandidat-uppsats
- Språk
- Engelska
Utforska vidare
Liknande uppsatser
Uppsatser med liknande ämnen och nyckelord.
Kandidat-uppsats, KTH/Hälsoinformatik och logistik
Abdulnoor, Tia, Bygde, Thea
Publicerad: 2026
Kandidat-uppsats, Örebro universitet/Institutionen för humaniora, utbildnings- och samhällsvetenskap
Blomdahl, Melissa, Gustafsson, Alice
Publicerad: 2026
Kandidat-uppsats, Malmö universitet/Institutionen för datavetenskap och medieteknik (DVMT)
Lukac, Bojana, Blücher Suneson, Ronja
Publicerad: 2026
Kandidat-uppsats, Jönköping University/Högskolan för lärande och kommunikation
Strand, Albin, Asela, Rebecka
Publicerad: 2026
Kandidat-uppsats, Högskolan i Gävle/Företagsekonomi
Cucarano Averstad, Elliott, Hoc, Izabella
Publicerad: 2026
Kandidat-uppsats, Lunds universitet/Institutionen för strategisk kommunikation
Spjut, Ellinor, Andersson, Elin
Publicerad: 2026