From RAG to Agentic AI