A corpus is the document collection that supplies text for retrieval or analysis. In retrieval-augmented generation, it may contain PDFs, office documents, or web pages and acts as the knowledge source retrieved before generation. section 4.7.1
A practical RAG corpus typically connects these components:
- Documents provide the searchable content. section 4.7.1
- An embedding model represents corpus content for retrieval. section 4.7.1
- A vector store such as Pinecone, FAISS, or Chroma holds searchable representations. section 4.7.1
- A language model uses retrieved material to generate an answer. section 4.7.1
Corpus growth as a retrieval failure
When a corpus grows without corresponding updates to chunk size or retrieval depth, new documents can dilute context relevance and pull queries away from the right answers. Logging the full retrieved context helps distinguish retrieval failure from generation failure. section 15.6.1





