Publication: RAG-based architectures for drug side effect retrieval using compact LLMs
| dc.contributor.coauthor | Nygren, S | |
| dc.contributor.coauthor | Avcı, P | |
| dc.contributor.coauthor | Daniels, A | |
| dc.contributor.coauthor | Rassool, R | |
| dc.contributor.coauthor | Beheshti, A | |
| dc.contributor.coauthor | Galeano, D. | |
| dc.contributor.department | Graduate School of Sciences and Engineering | |
| dc.contributor.department | KUIS AI (Koç University & İş Bank Artificial Intelligence Center) | |
| dc.contributor.kuauthor | Erdoğan, Ömer | |
| dc.contributor.schoolcollegeinstitute | GRADUATE SCHOOL OF SCIENCES AND ENGINEERING | |
| dc.contributor.schoolcollegeinstitute | Research Center | |
| dc.date.accessioned | 2026-07-02T07:31:17Z | |
| dc.date.issued | 2026 | |
| dc.description.abstract | Drug 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.fulltext | No | |
| dc.description.harvestedfrom | Manual | |
| dc.description.indexedby | WOS | |
| dc.description.indexedby | Scopus | |
| dc.description.indexedby | PubMed | |
| dc.description.publisherscope | International | |
| dc.description.readpublish | N/A | |
| dc.description.sponsoredbyTubitakEu | N/A | |
| dc.description.sponsorship | This 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.version | Published Version | |
| dc.identifier.WoSQuartile | Q1 | |
| dc.identifier.doi | 10.1038/s41598-026-41495-2 | |
| dc.identifier.embargo | No | |
| dc.identifier.issn | 2045-2322 | |
| dc.identifier.issue | 1 | |
| dc.identifier.pubmed | 41803240 | |
| dc.identifier.scopus | 2-s2.0-105036290815 | |
| dc.identifier.uri | https://doi.org/10.1038/s41598-026-41495-2 | |
| dc.identifier.uri | https://hdl.handle.net/20.500.14288/33102 | |
| dc.identifier.volume | 16 | |
| dc.identifier.wos | 001745171500002 | |
| dc.keywords | Drug side effects | |
| dc.keywords | Large language models | |
| dc.keywords | Retrieval-augmented generation | |
| dc.keywords | GraphRAG | |
| dc.keywords | Knowledge graph | |
| dc.language | eng | |
| dc.publisher | Nature Research | |
| dc.relation.affiliation | Koç University | |
| dc.relation.collection | Koç University Institutional Repository | |
| dc.relation.ispartof | Scientific Reports | |
| dc.relation.openaccess | N/A | |
| dc.rights | N/A | |
| dc.rights.uri | N/A | |
| dc.subject | Computer engineering | |
| dc.title | RAG-based architectures for drug side effect retrieval using compact LLMs | |
| dc.type | Journal Article | |
| dspace.entity.type | Publication | |
| relation.isOrgUnitOfPublication | 3fc31c89-e803-4eb1-af6b-6258bc42c3d8 | |
| relation.isOrgUnitOfPublication | 77d67233-829b-4c3a-a28f-bd97ab5c12c7 | |
| relation.isOrgUnitOfPublication.latestForDiscovery | 3fc31c89-e803-4eb1-af6b-6258bc42c3d8 | |
| relation.isParentOrgUnitOfPublication | 434c9663-2b11-4e66-9399-c863e2ebae43 | |
| relation.isParentOrgUnitOfPublication | d437580f-9309-4ecb-864a-4af58309d287 | |
| relation.isParentOrgUnitOfPublication.latestForDiscovery | 434c9663-2b11-4e66-9399-c863e2ebae43 |
