← All agent examples
Answer questions from your documents, with sources
Answers questions from your documents. Rewrites the question for search, retrieves the best passages from a knowledge base, and replies with linked citations.
Customer support
Research
retrieval
rag
citations
q&a
How it starts
When you run it.
What it needs
- Document source — Where your documents live. Upload files to it after the agent is created.
- Knowledge base — The knowledge base the agent answers from.
Steps
Rewrite question for search
Prompt Call
Retrieve relevant passages
Retrieval
Answer with citations
Prompt Call
Show answer
Display Result