Two different problems wearing similar clothes. Here's how to tell them apart in thirty seconds, with working code for both.
I see this confusion in almost every project kickoff: "We need RAG" when the actual requirement is agentic, or "we need an agent" when RAG would be simpler, cheaper, and faster to ship.
Let's fix that with a decision tree you can actually use, plus working code for each path.
The Decision Tree
Does your system need to ANSWER QUESTIONS from documents?






