What this layer is for
Retrieval-augmented generation (RAG) fetches relevant pieces of your data — by embeddings, keyword search or structured queries — and hands them to the model when it answers. Frameworks here handle loading, parsing, chunking, indexing and querying, and increasingly let the agent decide when and how to retrieve ("agentic RAG").