# Advanced

In this page you can manually edit the RAG Settings for the Resources of your AI.

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

#### **Chunk Size**

* Range: 200 – 32,000 tokens
* Defines the maximum size of a single chunk of text.

#### **Chunk Overlap**

* **Range:** 0% – 25% of the chunk size
* Controls how much of the end of one chunk overlaps with the beginning of the next. Increase above 0% if you want content continuity, up to a maximum of 25%.

#### **Limit**

* **Minimum:** 100 chunks
* Specifies the number of chunks the AI will consider when generating an answer.

{% hint style="warning" %}
This is **not** the exact number of resources used, the final selection is refined using the **Score Threshold**.
{% endhint %}

#### **Score Threshold**

* **Range:** 0.3 – 0.9
* After the system fetches the chunks ( up to the **Limit** ), each chunk is assigned a similarity score based on how closely it matches the query.
* Lower values (e.g., 0.3) allow more chunks to be considered, while higher values (e.g., 0.9) are stricter, only selecting highly relevant chunks.


---

# 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.xenioo.com/ai/large-language-models/advanced.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.
