Retrieval-Augmented Generation (RAG)
Context ManagementDefinition
A pattern that dynamically retrieves relevant information from an external knowledge base and injects it into the context window based on the current query. Allows Claude to reason over large document sets without fitting everything in context at once.
Example Usage
Use vector similarity search to retrieve the 5 most relevant documentation chunks for the current question and include them in the context.