The Knowledge Anchor: Architecting Hallucination-Resistant RAG Pipelines with Knowledge Graphs and Python