โ† Generative AI & Prompt Engineering learning path
Generative AI & Prompt Engineering ยท Module 8 of 10

RAG and AI agents

Ground answers in data and let AI use tools.

๐Ÿ“– Key ideas

  1. RAG (Retrieval-Augmented Generation) fetches relevant documents and adds them to the prompt.
  2. Embeddings and vector databases power retrieval.
  3. Tool use lets models call functions (search, calculator, database).
  4. Agents loop: plan โ†’ act โ†’ observe until a goal is met.
  5. Keep humans in the loop for risky actions.
๐Ÿ’ก Real-life example: RAG is an open-book exam; agents are interns who can use office tools under supervision.
RAGRetrieval-Augmented Generation
EmbeddingVector representing meaning
Tool useModel calling external functions
AgentLLM looping with tools toward a goal