Digitala Vetenskapliga Arkivet

Planned maintenance
A system upgrade is planned for 17/11-2026, at 12:00-13:00. During this time DiVA will be unavailable.
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Towards Efficient LLM Deployment in Customer Service: An Exploratory Evaluation of  a Quantized LLM
Linköping University, Department of Computer and Information Science.
Linköping University, Department of Computer and Information Science.
2025 (English)Independent thesis Basic level (degree of Bachelor), 10,5 credits / 16 HE creditsStudent thesis
Abstract [en]

The improved performance of Large Language Models (LLMs) presents opportunities for automating customer support. However, the substantial capital and operational costs associated with state-of-the-art (SOTA) LLMs, whether accessed via API or self-hosted, create a significant barrier to entry, particularly for Small and Medium-sized Enterprises (SMEs). This thesis explores the viability of a more cost-effective approach: deploying a smaller, quantized, open-source LLM locally for first-line customer support tasks.

A customer support pipeline was developed using LangChain and LangGraph, integrating a 4-bit quantized Qwen2.5 14B model. This system, featuring Retrieval-Augmented Generation (RAG) capabilities drawing from company-specific data (FAQs, documentation, support history), was evaluated against a SOTA benchmark (GPT-4.1 via API) in a simulated first-line customer support scenario within the same pipeline. Response quality was assessed through human evaluation (factual correctness, helpfulness, clarity, tone) and automated metrics (BERTScore), alongside a blind A/B preference test conducted with customer support professionals. The study also aimed to identify key technical and system-level factors influencing the observed response quality of the self-hosted solution (RQ2).

Results indicate that the quantized, self-hosted LLM, when supported by the well-designed pipeline, can match and even outperform the SOTA benchmark in aspects such as factual correctness and helpfulness for the low-complexity, single-turn queries typical of first-line support. Key factors identified (RQ2) as critical for this performance, beyond model size and quantization, include the efficacy of the RAG pipeline, the "LLM-readiness" of the knowledge base, and the degree of control over system-level prompting.

In conclusion, this study indicates that a smaller, quantized, self-hosted LLM, when integrated into a RAG pipeline, can achieve comparable, and in specific aspects such as factual correctness and helpfulness, even superior response quality to a SOTA benchmark for low-complexity, first-line support tasks. The research further highlights that the efficacy of the surrounding system architecture, notably the RAG implementation and knowledge base quality are critical factors, beyond intrinsic model properties influencing this observed performance. These findings suggest a viable path for SMEs, though results are context-specific.

Place, publisher, year, edition, pages
2025. , p. 10
Keywords [en]
Large Language Models (LLMs), Customer Support, Automation, Retrieval-Augmented Generation (RAG), Cost-Effectiveness
National Category
Artificial Intelligence
Identifiers
URN: urn:nbn:se:liu:diva-214862ISRN: LIU-IDA/LITH-EX-G--25/056--SEOAI: oai:DiVA.org:liu-214862DiVA, id: diva2:1970376
External cooperation
BRP Systems
Subject / course
Computer Programming
Presentation
2025-06-10, R18, Linköping, 13:15 (Swedish)
Supervisors
Examiners
Available from: 2025-06-27 Created: 2025-06-16 Last updated: 2025-06-27Bibliographically approved

Open Access in DiVA

fulltext(303 kB)255 downloads
File information
File name FULLTEXT01.pdfFile size 303 kBChecksum SHA-512
ffb53b25e73f69c53252f61b6edb692355ad636b8bd677896db5f7f3b50fb5d9899cdc31759f054eb0c83b731dea8318660a827607e5a5298c74fff980117736
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Henriksson, SimonGrattan, Marcus
By organisation
Department of Computer and Information Science
Artificial Intelligence

Search outside of DiVA

GoogleGoogle Scholar
Total: 257 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 587 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf