EUVIMEDOpdag EUVIMED
Open access

Context-Aware Retrieval-Augmented Generation for Artificial Intelligence in Urology

Aadhitya Sriram, Maheswaran N, Bose Sundan, Sriram Krishnamoorthy

Cureus · 2025-07-17

DOI: 10.7759/cureus.88167 ↗

At a glance

Journal article in Cureus, published on 2025-07-17. Written by Aadhitya Sriram and 3 co-authors. Institution: Department of Computer Science and Engineering, College of Engineering, Guindy, Anna University, Chennai, IND. Cited 7 times so far (Crossref); 19 references. The full text is freely available in PubMed Central.

AbstractSubjectsBibliografiske oplysningerCiteRelated studies

Abstract (original language)

Background

Artificial intelligence (AI) is increasingly being used in healthcare, particularly for interpreting complex medical queries. However, conventional AI models often generate inaccurate or irrelevant responses that are commonly termed hallucinations, which may compromise patient safety. To address this, our study introduces a modified retrieval-augmented generation (RAG) framework tailored for the urology domain to enhance contextual relevance and accuracy in AI-generated responses. Methodology We developed a context-aware RAG system integrating PubMedBERT embeddings for encoding and retrieving urological literature stored in a Pinecone vector database. The system uses named entity recognition for domain-specific query filtering and incorporates dynamic memory to retain contextual flow during interactions. Response generation is powered by the LLaMA3-8B model via LangChain. A custom dataset of urology-related queries was used for evaluation, with a large language model-based scoring using the Deepseek-R1 model.

Results

The proposed framework demonstrated a significant reduction in hallucinations, with responses being more contextually relevant and evidence-based. Compared to baseline models, our system achieved an 89% performance improvement in generating medically appropriate answers. Integration of memory modules and named entity filtering further improved precision and reliability.

Conclusions

Our RAG-enhanced system shows strong potential for clinical use by producing trustworthy, context-aware responses in urology. It addresses key challenges in medical AI, including hallucination mitigation and domain relevance. Future work will focus on reducing inference latency and improving automated validation without manual oversight.

Subjects

Author keywords

artificial intelligencecontext awarenesshallucinations in aimedical airetrieval-augmented generationurology

Authors and institutions

  • Department of Computer Science and Engineering, College of Engineering, Guindy, Anna University, Chennai, IND.
  • Department of Computing Technologies, SRM Institute of Science and Technology, Chennai, IND.
  • Department of Urology, Sri Ramachandra Institute of Higher Education and Research, Chennai, IND.

Cite

APA

Sriram, A., N, M., Sundan, B., & Krishnamoorthy, S. (2025). Context-Aware Retrieval-Augmented Generation for Artificial Intelligence in Urology. Cureus. https://doi.org/10.7759/cureus.88167

Vancouver

Sriram A, N M, Sundan B, Krishnamoorthy S. Context-Aware Retrieval-Augmented Generation for Artificial Intelligence in Urology. Cureus. 2025. doi:10.7759/cureus.88167

BibTeX
@article{Sriram2025,
  author = {Sriram, Aadhitya and N, Maheswaran and Sundan, Bose and Krishnamoorthy, Sriram},
  title = {Context-Aware Retrieval-Augmented Generation for Artificial Intelligence in Urology},
  journal = {Cureus},
  year = {2025},
  doi = {10.7759/cureus.88167}
}
Start for free →