RAG-based Architectures for Drug Side Effect Retrieval in LLMs

Shad Nygren, Pinar Avci, Andre Daniels, Reza Rassol, Afshin Beheshti +1 more
7/18/2025
cs.IRcs.AIcs.CL

No official code found. Best implementation: ShadNygren/RAG-based_Architectures_for_Drug_Side_Effect_Retrieval_in_LLMs (0 stars, AGPL-3.0, last commit 2025-08-12).

Abstract

Drug side effects are a major global health concern, necessitating advanced methods for their accurate detection and analysis. While Large Language Models (LLMs) offer promising conversational interfaces, their inherent limitations, including reliance on black-box training data, susceptibility to hallucinations, and lack of domain-specific knowledge, hinder their reliability in specialized fields like pharmacovigilance. To address this gap, we propose two architectures: Retrieval-Augmented Generation (RAG) and GraphRAG, which integrate comprehensive drug side effect knowledge into a Llama 3 8B language model. Through extensive evaluations on 19,520 drug side effect associations (covering 976 drugs and 3,851 side effect terms), our results demonstrate that GraphRAG achieves near-perfect accuracy in drug side effect retrieval. This framework offers a highly accurate and scalable solution, signifying a significant advancement in leveraging LLMs for critical pharmacovigilance applications.

View on arXivView PDF

Code Implementations(1)

AGPL-3.0
00Jupyter NotebookAug 12, 20251 years agoAGPL-3.0

Similar Papers

Cite this paper

@article{nygren2025ragbased,
  title  = {RAG-based Architectures for Drug Side Effect Retrieval in LLMs},
  author = {Shad Nygren and Pinar Avci and Andre Daniels and Reza Rassol and Afshin Beheshti and Diego Galeano},
  year   = {2025},
  eprint = {2507.13822},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.13822v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.13822.svg)](https://codeofpaper.com/paper/2507.13822)

Discussion