# VectorDBQA

> **Class** in `langchain_classic`

📖 [View in docs](https://reference.langchain.com/python/langchain-classic/chains/retrieval_qa/base/VectorDBQA)

Chain for question-answering against a vector database.

## Signature

```python
VectorDBQA()
```

## Extends

- `BaseRetrievalQA`

## Properties

- `vectorstore`
- `k`
- `search_type`
- `search_kwargs`

## Methods

- [`validate_search_type()`](https://reference.langchain.com/python/langchain-classic/chains/retrieval_qa/base/VectorDBQA/validate_search_type)

## ⚠️ Deprecated

Deprecated since version 0.2.13. Use langchain.agents.create_agent instead. Will be removed in version 2.0.0. Build new RAG flows with `create_agent` and a retrieval tool. See https://docs.langchain.com/oss/python/langchain/rag

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/42f8f79293cfb7589e5bc1d74a8ae4dfd0bf15e3/libs/langchain/langchain_classic/chains/retrieval_qa/base.py#L298)