RAG-as-a-Service
RAG-as-a-Service is a managed offering that handles document ingestion, chunking, embedding generation, vector storage, retrieval, and LLM grounding behind a single API — letting teams ship retrieval-augmented features without building the underlying pipeline.
Full definition
RAGaaS providers (e.g., Vectara, Azure AI Search, Vertex AI Search, AWS Kendra + Bedrock) abstract dozens of decisions: chunk size, embedding model, hybrid retrieval, re-ranking, citation formatting. The trade-off versus DIY is classic build-vs-buy: faster time-to-value at the cost of vendor lock-in, less tuning room, and per-query economics that may not pencil at scale.
Why it matters
For most enterprises, the first 3-5 RAG use cases should be RAGaaS — the platform team has zero comparative advantage building chunkers. Once volume justifies, selectively in-source the retrieval layer where domain logic creates differentiation.
Example
A legal SaaS launches a contract-Q&A feature on Vertex AI Search in 6 weeks; six quarters later, query volume justifies a custom hybrid graph+vector retriever for the top 20% of queries.
Related terms
- Retrieval-Augmented Generation (RAG)Retrieval-Augmented Generation (RAG) is a technique where a language model retrieves relevant documents from an external knowledge base before generating a response, reducing hallucination by 30-60% and enabling citation of sources.
- Vector DatabaseA vector database is a database optimized for storing and searching high-dimensional vectors (embeddings) by similarity rather than by exact match — the storage layer of every RAG and semantic-search system.
- Build vs Buy (AI)Build vs buy in AI is the strategic decision between developing an AI capability internally — model, platform, data layer — and procuring it from a vendor, hyperscaler, or open-source ecosystem, weighed against differentiation, cost, time-to-value, and lock-in.
- EmbeddingAn embedding is a dense numerical vector — typically 384 to 4096 dimensions — that represents the semantic meaning of a piece of text, image, audio, or other content, so that semantically similar items end up near each other in vector space.
Source & further reading
Primary source: Lewis et al. — "Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks" (NeurIPS) (2020).
Citation policy: this entry is part of the AIDOLS AI Implementation Glossary and may be quoted for research, journalism, and education with attribution to aidolsgroup.com/fr/glossary/rag-as-a-service/.