---
sidebar_position: 1
---
# QA using a Retriever

This example showcases question answering over an index.

import Example from "@snippets/modules/chains/popular/vector_db_qa.mdx"

<Example/>

import ExampleWithSources from "@snippets/modules/chains/popular/vector_db_qa_with_sources.mdx"

<ExampleWithSources/>
