# FlareChain

> **Class** in `langchain_classic`

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

Flare chain.

Chain that combines a retriever, a question generator,
and a response generator.

See [Active Retrieval Augmented Generation](https://arxiv.org/abs/2305.06983) paper.

## Signature

```python
FlareChain()
```

## Extends

- `Chain`

## Properties

- `question_generator_chain`
- `response_chain`
- `output_parser`
- `retriever`
- `min_prob`
- `min_token_gap`
- `num_pad_tokens`
- `max_iter`
- `start_with_retrieval`
- `input_keys`
- `output_keys`

## Methods

- [`from_llm()`](https://reference.langchain.com/python/langchain-classic/chains/flare/base/FlareChain/from_llm)

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/f0c5a28fa05adcda89aebcb449d897245ab21fa4/libs/langchain/langchain_classic/chains/flare/base.py#L97)