From the source
Perplexity's explainer describes retrieval-augmented generation, the method by which LLM-based tools pull in external information that is not contained in a model's training parameters and add it to the input context used for answer generation.- A typical RAG pipeline has two paths: an ingestion path that converts data into a searchable format, and a retrieval path that builds a request from the user's prompt and queries the information source.
- Many systems are built around vector databases, where an orchestrator generates a vector embedding, queries a database of vectors representing the ingested data, and adds the retrieved information to the LLM's context with instructions on how to use it.
- RAG is not limited to dense vector search: knowledge graph traversal, semantic search and traditional database lookups also qualify.
- The explainer says RAG addresses two core problems of LLM-only generation, hallucinations and the lack of access to information outside training materials, by grounding answers in trusted third-party sources and connecting to current sources such as news via a web search API or internal databases.
- It also lets enterprises connect AI infrastructure to sensitive, proprietary and domain-specific data, and notes that tools such as Perplexity offer the option to upload confidential data and build private knowledge bases.
- The piece traces the term to a 2020 paper, Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks, and lists architectures including basic, hybrid, corrective, self-RAG, agentic, multimodal, GraphRAG, branched RAG and HyDE, with use cases spanning web search, personal and coding assistants, customer support and enterprise knowledge management.
