> For the complete documentation index, see [llms.txt](https://docs.thub.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thub.tech/llama-index/response-synthesizer.md).

# 🧪Response Synthesizer

#### 1)Refine

Create and refine an answer by sequentially going through each retrieved text chunk.

**Pros**: Good for more detailed answers

**Cons**: Separate LLM call per Node (can be expensive)

<figure><img src="/files/Ya7gEtJvLMH9KZv74xia" alt=""><figcaption></figcaption></figure>

#### 2)Tree Summarize

When provided with text chunks and a query, recursively build a tree structure and return the root node as the result.

**Pros**: Beneficial for summarization tasks

**Cons**: Accuracy of answer might be lost during traversal of tree structure

<figure><img src="/files/55zhqK6lKgwecZThh18a" alt=""><figcaption></figcaption></figure>
