Back to Knowledge Retrieval (RAG)
ApprenticeBuild Lab

Knowledge Retrieval (RAG)

Drag and drop agent blocks to build the correct architecture for this pattern.

Mission: Build a Document Q&A Agent

Create a system that answers questions by retrieving relevant documents from a knowledge base, ranking them, and generating a grounded answer.

0.0s

> Drag blocks to the canvas

Query Processor

Reformulates the user question for optimal retrieval

Document Retriever

Searches the vector DB for relevant chunks

Relevance Ranker

Re-ranks retrieved documents by actual relevance

Answer Generator

Generates an answer grounded in the retrieved documents

Planner

Creates multi-step plans

Coordinator

Orchestrates agent workflows

Drop blocks here to build your agent pipeline

Arrange them in the correct order