Start here. This is the direct spoken answer to practice first.
Overview
RAG is a search-and-context pattern, not a replacement for authoritative application queries.
I use RAG when the user asks an open-ended question over unstructured or semi-structured knowledge such as manuals, policies, or incident notes. I use a database query or tool when the answer depends on exact current state, a calculation, or an operation such as an account balance or order cancellation. The deciding factor is the source and precision the task requires, not whether an LLM is available.