While traditional retrieval methods, such as the BM25 algorithm (Hancock-Beaulieu et al., 1996), focus on term frequency and presence for document ranking, they often overlook the semantic information of queries. Current strategies leverage pre-trained LMs like BERT (Devlin et al., 2019), which capture the semantic essence of queries more effectively. These models improve search accuracy by considering synonyms and the structure of phrases, thereby refining document ranking through the detection of semantic similarities. This is typically achieved by measuring vector distances between documents and queries, combining traditional retrieval metrics with semantic understanding to yield search results that are both relevant and aligned with user intent.