# Resources

The **Resources** page allows you to upload external documents or add link to a webpage or a file that will be used to train your LLM model.

Uploaded resources are used to power the **RAG (** Retrieval-Augmented Generation ) system, which selects the most relevant documents to provide the AI with the context it needs to generate accurate and insightful answers.

{% hint style="info" %}
The **RAG** settings are editable in the **Advanced** page.
{% endhint %}

<figure><img src="https://2532694803-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvGYwUmVjfELEiJzfmWLC%2Fuploads%2Fv6M9aXeoX9RJsU70Mgkg%2Fimage.png?alt=media&#x26;token=758a618c-01bb-4b1c-b639-8019734ed19c" alt=""><figcaption></figcaption></figure>

Here, you can upload documents that will be automatically indexed and used by your model to answer specific questions. &#x20;

{% hint style="warning" %}
The supported file extensions are: excel, word doc, pdf, html and txt&#x20;
{% endhint %}

Instead of uploading a file, you can add a link to a webpage and we will fetch the revelant information from the HTML of that page, or download the file at the link ( if that's one of the supported ones )

{% hint style="info" %}
FAQ, guidelines and general documentation are all perfect candidates for resource training.
{% endhint %}

### Chunking Strategies

The content of the file will be split into chunks, in order to improve the AI answers ( after selecting a file to upload, or a link to add ) you will be asked to select the **Chunking Strategy**.

<figure><img src="https://2532694803-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvGYwUmVjfELEiJzfmWLC%2Fuploads%2Fry68m4DLAMtjyTRFwwE8%2Fimage.png?alt=media&#x26;token=bc8dc13e-d767-4400-8446-84daa2e914f3" alt=""><figcaption></figcaption></figure>

* No Split

  This is the simplest of them all, the entire content will be placed in a single chunk.

{% hint style="warning" %}
Please be aware that the maximum size is 32k tokens ≈ 128k characters ≈ 60 pages ≈ 125 KB ( of a simple .txt file )&#x20;
{% endhint %}

* Recursive Text Splitting

  Using the parameters set in the **Advanced** page, the content of the file will be splitted in different chunks ( Check the **Advanced** page for more info regarding this )
* Document Structure Based

  If the document is among the required ones, the content will be splitted in chunks using a smart algorithm. ( For example, for pdf, the document might be splitted into its chapters, if present, or other way )

### Embedding Status

Documents uploaded here are stored in a specific Database, every Bot will have its own space.

When uploading a new resource, the embedding status will be **Pending**, if the upload is succesfull the status switch to **Indexed**, if something goes wrong ( for example an unsupported file ) it become **Not Indexed**.

When using the resources feature, be aware that the number of tokens utilized will increase proportionally to the size of the document. The number of tokens used by your model will be directly reflected by the general usage and the actual cost of each prompt.

{% hint style="info" %}
Usually, one token equals one word
{% endhint %}
