Artificial Intelligence RAG Beyond the Basics: Turning Codebases into Queryable Knowledge Graphs with Agentic Retrieval