Ana gezinime geç Aramaya geç Ana içeriğe geç

Systematic Evaluation of Similarity Metrics for Retrieval, Reranking, and Completion in Retrieval Augmented Generation Systems

  • Harun Elkiran*
  • , Jawad Rasheed
  • *Bu çalışma için yazışmadan sorumlu yazar
  • Istanbul Sabahattin Zaim University

Araştırma çıktısı: Kitap/Rapor/Konferans Bildirisinde BölümKonferans katkısıHakem

Özet

Two of the major problems with large language models (LLMs) are hallucinations and out-of-context responses. To deal with these problems, Retrieval Augmented Generation (RAG) has emerged as a promising approach. It grounds the output of LLMs in external knowledge. The effectiveness of RAG pipelines depends on several factors, including the choice of similarity metric. This paper presents a systematic evaluation of a comprehensive RAG pipeline that utilizes the Milvus vector database with HNSW indexing techniques in conjunction with OpenAI's embedding models and GPT-based completion. We conducted a comparative analysis of three widely used similarity metrics - Cosine, Inner Product, and L2 - under identical conditions. Based on the results, it was observed that retrieval and reranking performance are highly sensitive to the similarity metrics. Cosine and Inner Product consistently achieve substantially higher recall (R@10 = 0.9092-0.925), Mean Reciprocal Rank (MRR = 0.7806-0.7930), and nDCG (nDCG@10 = 0.8121-0.8252) than L2. In contrast, completion stage metrics such as token usage, cost, and latency remain largely unaffected by the choice of metric. These results underscore the crucial role of retrieval similarity functions in determining RAG effectiveness.

Orijinal dilİngilizce
Ana bilgisayar yayını başlığı2025 IEEE International Conference on Emerging Trends in Engineering and Computing, ETECOM 2025
YayınlayanInstitute of Electrical and Electronics Engineers Inc.
ISBN (Elektronik)9798331566166
DOI'lar
Yayın durumuYayınlandı - 2025
Harici olarak yayınlandıEvet
Etkinlik2025 IEEE International Conference on Emerging Trends in Engineering and Computing, ETECOM 2025 - Riffa, Bahrain
Süre: 29 Eki 202530 Eki 2025

Yayın serisi

Adı2025 IEEE International Conference on Emerging Trends in Engineering and Computing, ETECOM 2025

???event.eventtypes.event.conference???

???event.eventtypes.event.conference???2025 IEEE International Conference on Emerging Trends in Engineering and Computing, ETECOM 2025
Ülke/BölgeBahrain
ŞehirRiffa
Periyot29/10/2530/10/25

Bibliyografik not

Publisher Copyright:
© 2025 IEEE.

Parmak izi

Systematic Evaluation of Similarity Metrics for Retrieval, Reranking, and Completion in Retrieval Augmented Generation Systems' araştırma başlıklarına git. Birlikte benzersiz bir parmak izi oluştururlar.

Alıntı Yap