Skip to content

RAG

Retrieval-Augmented Generation: a technique that combines document retrieval with text generation.

Definition

RAG lets an LLM answer with external information without retraining. Flow: (1) convert documents to embeddings, (2) retrieve the most relevant fragments for a query, (3) pass fragments to the model as context, (4) generate the answer. It's the basis of assistants with proprietary knowledge.

Connections

Etymology

Origin: acronym

Retrieval-Augmented Generation — generación aumentada por recuperación

  • R (init): Retrieval
  • A (init): Augmented
  • G (init): Generation
Cognates
  • es: recuperación, generación

Semantic network

RAGLLMembeddingLLMGEO

● broader ● narrower ● related

Broader

Related

Used in the garden

Sources

  • Lewis et al. (2020). Retrieval-Augmented Generation. arXiv:2005.11401.

  • Vaswani et al. (2017). Attention Is All You Need. arXiv:1706.03762.

  • Berners-Lee, T. et al. (2001). The Semantic Web. Scientific American.

  • Wikidata (2026). Wikidata:Introduction. https://www.wikidata.org/