learn / Term explained
EN

Data and AI · Terminology explained

Retrieval-augmented generation

Retrieval-augmented generation

Common writing methods: RAG, knowledge base search

What it means

A system design that first retrieves external information relevant to a question, then passes it to a generative model as context for producing an answer.

Web scraping can feed RAG, but the complete process also involves content cleansing, segmentation, indexing, retrieval, and answer generation. The search method is not only vector search, but also keyword or mixed search.

Source, update time, and search coverage affect response quality. RAG does not automatically eliminate model errors, nor does it turn outdated, missing, or irrelevant search results into reliable answers.

In a scraping task

Ask support assistants to reference product documentation

The system collects and organizes help documents and establishes a searchable content index. When users ask questions, they first find relevant passages, then ask the model to answer based on these materials, and retain references that can lead back to the original text.

Common misconceptions

  • RAG is not the same as cramming all web pages directly into one prompt, nor is it the same as fine-tuning the model.
  • The use of search steps does not mean that every answer has sufficient evidence; the search results and citation correspondence must still be checked.

References

Organized by Northleaf Studio. The source link retains the original address to facilitate continued reading.

Back to glossary