# What is retrieval-augmented generation, and what does it do for generative AI?

DevFeed: [What is retrieval-augmented generation, and what does it do for generative AI?](<https://devfeed.tech/articles/what-is-retrieval-augmented-generation-and-what-does-it-do-for-generative-ai-67710.md>)

Original publisher: [Read original article](<https://github.blog/ai-and-ml/generative-ai/what-is-retrieval-augmented-generation-and-what-does-it-do-for-generative-ai/>)

Author: Nicole Choi

Published: 2024-04-04T16:00:07Z

Content type: article

Language: en

Sources: [GitHub Blog](<https://devfeed.tech/sources/github-engineering.md>)

Topics: [Retrieval Augmented Generation (RAG)](<https://devfeed.tech/topics/retrieval-augmented-generation-rag.md>), [AI-driven information retrieval](<https://devfeed.tech/topics/ai-driven-information-retrieval.md>), [Vectors & LLMs](<https://devfeed.tech/topics/vectors-llms.md>), [search-engines](<https://devfeed.tech/topics/search-engines.md>), [knowledge cutoff](<https://devfeed.tech/topics/knowledge-cutoff.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-insights](<https://devfeed.tech/tags/ai-insights.md>), [ai-ml](<https://devfeed.tech/tags/ai-ml.md>), [generative-ai](<https://devfeed.tech/tags/generative-ai.md>), [github-copilot-enterprise](<https://devfeed.tech/tags/github-copilot-enterprise.md>), [knowledge](<https://devfeed.tech/tags/knowledge.md>), [models](<https://devfeed.tech/tags/models.md>), [retrieval](<https://devfeed.tech/tags/retrieval.md>), [retrieval-augmented-generation](<https://devfeed.tech/tags/retrieval-augmented-generation.md>)

## AI overview

Retrieval-augmented generation (RAG) supplements an AI model's prompt with relevant information retrieved from sources such as indexed repositories, documentation, databases, and search engines. The article explains how semantic search and embeddings can help tools such as GitHub Copilot find code and documentation context, while noting that RAG does not require vector databases or embeddings.

## Source excerpt

Here's how retrieval-augmented generation, or RAG, uses a variety of data sources to keep AI models fresh with up-to-date information and organizational knowledge.