Publication:
RAG-based architectures for drug side effect retrieval using compact LLMs

dc.contributor.coauthorNygren, S
dc.contributor.coauthorAvcı, P
dc.contributor.coauthorDaniels, A
dc.contributor.coauthorRassool, R
dc.contributor.coauthorBeheshti, A
dc.contributor.coauthorGaleano, D.
dc.contributor.departmentGraduate School of Sciences and Engineering
dc.contributor.departmentKUIS AI (Koç University & İş Bank Artificial Intelligence Center)
dc.contributor.kuauthorErdoğan, Ömer
dc.contributor.schoolcollegeinstituteGRADUATE SCHOOL OF SCIENCES AND ENGINEERING
dc.contributor.schoolcollegeinstituteResearch Center
dc.date.accessioned2026-07-02T07:31:17Z
dc.date.issued2026
dc.description.abstractDrug side effects are a major public health concern, yet off-the-shelf large language models (LLMs) struggle to reliably answer questions about drug side effects due to limited training data and domain gaps. Here, we evaluate two open-book architectures that inject curated knowledge from the Side Effect Resource (SIDER 4.1) into LLM workflows: a text-based retrieval-augmented generation (RAG) pipeline and a graph-based variant (GraphRAG) implemented over a Neo4j knowledge graph. On a balanced forward benchmark of 19,520 drug–side-effect pairs, GraphRAG achieved near-perfect accuracy (99.95% for Qwen-2.5-7B-Instruct and 99.96% for Llama-3.1-8B-Instruct). On reverse queries (side effect to drug set), it returned the exact drug sets with precision, recall and F1 all equal to 100% at markedly lower latency (~ 0.09 s), compared with a text-RAG baseline (F1 99.18%, 82.63 s). We further show that a compact LLM-based normalization step can robustly correct common misspellings and variants of drug names without modifying downstream logic. Taken together, these results indicate that integrating structured side-effect knowledge with compact LLMs provides a practical path to interactive, evidence-grounded querying of catalogued drug side effect associations in larger language models.
dc.description.fulltextNo
dc.description.harvestedfromManual
dc.description.indexedbyWOS
dc.description.indexedbyScopus
dc.description.indexedbyPubMed
dc.description.publisherscopeInternational
dc.description.readpublishN/A
dc.description.sponsoredbyTubitakEuN/A
dc.description.sponsorshipThis project was supported by Virtual Hipster Corporation and KUIS AI Lab. Computational resources (4 & times; NVIDIA A40 GPUs) were provided by KUIS AI Lab
dc.description.versionPublished Version
dc.identifier.WoSQuartileQ1
dc.identifier.doi10.1038/s41598-026-41495-2
dc.identifier.embargoNo
dc.identifier.issn2045-2322
dc.identifier.issue1
dc.identifier.pubmed41803240
dc.identifier.scopus2-s2.0-105036290815
dc.identifier.urihttps://doi.org/10.1038/s41598-026-41495-2
dc.identifier.urihttps://hdl.handle.net/20.500.14288/33102
dc.identifier.volume16
dc.identifier.wos001745171500002
dc.keywordsDrug side effects
dc.keywordsLarge language models
dc.keywordsRetrieval-augmented generation
dc.keywordsGraphRAG
dc.keywordsKnowledge graph
dc.languageeng
dc.publisherNature Research
dc.relation.affiliationKoç University
dc.relation.collectionKoç University Institutional Repository
dc.relation.ispartofScientific Reports
dc.relation.openaccessN/A
dc.rightsN/A
dc.rights.uriN/A
dc.subjectComputer engineering
dc.titleRAG-based architectures for drug side effect retrieval using compact LLMs
dc.typeJournal Article
dspace.entity.typePublication
relation.isOrgUnitOfPublication3fc31c89-e803-4eb1-af6b-6258bc42c3d8
relation.isOrgUnitOfPublication77d67233-829b-4c3a-a28f-bd97ab5c12c7
relation.isOrgUnitOfPublication.latestForDiscovery3fc31c89-e803-4eb1-af6b-6258bc42c3d8
relation.isParentOrgUnitOfPublication434c9663-2b11-4e66-9399-c863e2ebae43
relation.isParentOrgUnitOfPublicationd437580f-9309-4ecb-864a-4af58309d287
relation.isParentOrgUnitOfPublication.latestForDiscovery434c9663-2b11-4e66-9399-c863e2ebae43

Files