This study investigates integrating knowledge graphs (KGs) and large language models (LLMs) to create advanced question-answering (QA) systems for educational purposes, enhancing contextual learning and personalized education. The proposed retrieval-augmented generation (RAG) framework allows accurate response generation by embedding structured knowledge, addressing limitations like hallucinations and domain-specific knowledge challenges. The findings pave the way for more reliable educational AI assistants while highlighting the importance of critical synthesis to prevent over-reliance on AI outputs.