# Test your Q&A answers against a question set

Upload or paste a CSV of questions with the answers you expect. For each question the agent retrieves passages from your knowledge base, answers from them, and has a judge score the answer for correctness against your expected answer and for faithfulness to the passages. You get a summary of the failures to fix in your documents or prompts.

**Use cases:** Engineering and IT, Customer support

**Tags:** evaluation, test set, Q&A testing, RAG evaluation, answer quality, regression test, judge, knowledge base, CSV, loop

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

## How it starts

Trigger: dynamic input.
Accepts files: Questions and expected answers as CSV (optional, or paste them).

## What it needs

- **Document source** — The documents your Q&A answers from. Upload files to it after the agent is created.
- **Knowledge base under test** — The knowledge base whose answers are tested.

## Steps

- Read the question set
- Test each question
  - For each item: Retrieve passages
  - Answer the question
  - Judge the answer
  - Keep the result
- Summarize the failures
- Show the test report
