Manuscript Offprint

arXiv:2609.37749

Towards Semi-Automatically Comparing Keyword-Based and Semantic Search Accuracy

Mohamed Ben Salha, Fiete Lüer, Maik Betka, Stefan Wagner

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Mohamed Ben Salha

Technical University of Munich

Heilbronn, Germany

mohamed.bensalha@tum.de

Maik Betka

University of Stuttgart

Stuttgart, Germany

maik.betka@iste.uni-stuttgart.de

Fiete Lüer

Gofore GmbH

Munich, Germany

fiete.lueer@gofore.com

Stefan Wagner

Technical University of Munich

Heilbronn, Germany

stefan.wagner@tum.de

ABSTRACT

The increasing importance of Information Retrieval (IR) in managing large datasets has highlighted significant limitations in traditional keyword-based search systems. Context-aware chat-based search methods, such as Retrieval Augmented Generation (RAG), have recently emerged, but their evaluation compared to keyword-based systems often relies on subjective user feedback. A rigorous, quantitative comparison between these paradigms remains lacking. This work introduces a novel, preliminary framework to quantitatively assess IR accuracy of search systems that produce different output formats, such as lists and messages. It focuses on two key aspects: the ranking accuracy for keyword-based systems and the completeness of retrieved information for semantic chat-based systems. Our approach enables semi-automatic comparisons of semantic and keyword-based methods using interchangeable equivalence classes tailored to domain-specific contexts (e.g., companies or problems). We validate the framework through an industrial case study, demonstrating statistically significant improvements in context-aware search over keyword-based methods, supported by analyses including the Mann-Whitney U-Test. With its adaptable design, the proposed framework provides a strong foundation for objectively assessing keyword-based and semantic chat-based search methods.

Keywords Information Retrieval, Keyword-based Search, Conversational Search, Semantic Search, Context-Aware Search, Search Accuracy, Retrieval-Augmented Generation (RAG)

1 Introduction

In today's data-driven world, organizations and individuals rely heavily on vast repositories of documents and wikis to store and access information. However, the growth in size and complexity of these collections makes efficient Information Retrieval (IR) challenging. Traditional keyword-based search methods often fall short in understanding context and handling typographical errors Rahman [2013]. In recent years, advancements in Natural Language Processing (NLP) have paved the way for more sophisticated IR methods. One of the most important developments is the emergence of RAG Lewis et al. [2020], which harnesses Large Language Models' (LLMs) text understanding and generation capabilities by incorporating an external retrieval mechanism. It provides the answer-generating LLM with retrieved context, mostly not part of the training corpus of that LLM, enabling more context-aware and accurate responses to user queries and reducing the likelihood of hallucinations.

While RAG is meant to offer better retrieval performance compared to traditional keyword-based search, a direct quantitative comparison of both methods is still required and missing for a more complete evaluation. This work addresses this gap by investigating how the correctness and completeness of information can be used to quantitatively measure the accuracy of a context-aware search compared to a keyword-based one. We propose a preliminary framework to semi-automatically evaluate different IR methods using interchangeable equivalence classes, allowing the fine-tuning of the actual performance to problem and company-specific results. This is validated in an industrial case study, where the IR accuracy of the search engine of Confluence 1^{1}, a widely used keyword-based wiki, is compared with RAG. We provide supplementary materials, including source code and resources, to facilitate the reproduction of our results 2^{2}.

References (21)