# 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.

**Use cases:** Customer support, Research

**Tags:** retrieval, rag, citations, q&a

[Create this agent](https://seclai.com/agent-examples/create/knowledge_base_qa)

## How it starts

Trigger: dynamic input.

## 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
- Retrieve relevant passages
- Answer with citations
- Show answer
