Research Agent
The Research Agent shows how to build “Agentic RAG” - a system that doesn’t just retrieve text, but reads multiple documents to synthesize a comprehensive answer.Architecture
This flow involves a Context Window Management strategy where the Agent decides which parts of the documents are relevant.SDK Implementation
1. Multi-Document Context
The Research Agent allows uploading multiple PDF/Text files into a single session.2. Synthesizing the Answer
We use a sophisticated system prompt to force the model to act as a researcher.Key Concept: Source Attribution
By instructing the model via thesystemPrompt to cite sources found in the RAG context, we turn a generic answer into a verifiable research summary.
