RAG for natural language processing