In this paper, we propose a novel approach to utilize LLM for adverse drug reaction detection and analysis, despite the __T2606__ of large-scale language models (LLMs). To address the problems of traditional LLMs, such as black-box learning data dependency, hallucination phenomenon, and lack of domain-specific knowledge, we propose two architectures, RAG and GraphRAG, that integrate comprehensive adverse drug reaction knowledge into the Llama 3 8B language model. Experimental results using a dataset of 19,520 adverse drug reaction associations show that GraphRAG achieves near-perfect accuracy in adverse drug reaction detection. This provides an accurate and scalable solution, which represents a significant advancement in the application of LLMs in the field of pharmacovigilance.