---
myst:
html_meta:
title: AutoRAG - Refine Compressor
description: Learn about refine compressor module in AutoRAG
keywords: AutoRAG,RAG,Advanced RAG,Passage Compressor,Refine
---
# Refine
The `Refine` module is compressor based
on [llama_index](https://docs.llamaindex.ai/en/stable/examples/response_synthesizers/refine/).
Refine a response to a query across text chunks.
## **Module Parameters**
**LLM**: The refine module requires setting parameters related to the Large Language Model (LLM) being used.
This includes specifying the LLM provider (e.g., `openai` or a list of providers like `[openai, huggingfacellm]`) and
the model configuration.
By default, if only `openai` is specified without a model, the system uses the default model set in `llama_index`, which
is `gpt-3.5-turbo`.
```{tip}
Information about the LLM model can be found [Supporting LLM models](../../local_model.md#supporting-llm-models).
```
- **Additional Parameters**:
- **batch**: How many calls to make at once. Default is 16.
- Other LLM-related parameters such as `model`, `temperature`, and `max_tokens` can be set. These are passed as
keyword arguments (`kwargs`) to the LLM object, allowing for further customization of the behavior of LLM.
## **Example config.yaml**
```yaml
modules:
- module_type: refine
llm: openai
model: gpt-3.5-turbo-16k
```