PrepCity

RAG: answer from your documents

Open the lab

By the last page, this is the design you will have built. Drag it, or Show all, to see every part.

Lesson · 8 pages · about 5 min

RAG: answer from your documents

Retrieval-augmented generation: look up the right passages for this user, give them to the model as evidence, and release only answers whose citations check out.

Words you’ll learn

  • RAG
  • Permission
  • Vector index
  • Prompt injection
  • Citation

Page by page