# Tree Summarize

Cuando se proporcionan fragmentos de texto y una consulta, construye recursivamente una estructura de árbol y devuelve el nodo raíz como resultado.

**Pros**: Beneficioso para tareas de summarization

**Contras**: La precisión de la respuesta podría perderse durante el recorrido de la estructura del árbol

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

**Prompt**

```
La información de contexto de múltiples fuentes está a continuación.
---------------------
{context}
---------------------
Dada la información de múltiples fuentes y sin conocimiento previo, responde la consulta.
Query: {query}
Respuesta:
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flowiseai.com/espanol/documentacion-oficial/integraciones/llamaindex/response-synthesizer/tree-summarize.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
