> For the complete documentation index, see [llms.txt](https://docs.borndigital.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.borndigital.ai/digital-agent/advanced-functions/knowledge-base/index-providers-and-settings.md). Agents can also search and read this documentation through its [MCP server](https://docs.borndigital.ai/~gitbook/mcp).

# Index providers and settings

Where an index is stored (Local or Cloud) and how Studio splits your documents into snippets: parsing, snippet size, delimiter and overlap.

You choose the provider and the splitting settings in the **Create index** dialog. The provider and the name of an index cannot be changed later; the splitting settings can be chosen again every time you add documents.

## Local or Cloud

The dialog has two tabs. **Local** is the default and the right choice for most projects. **Cloud** (marked **BETA**) stores the index at an external provider.

| Provider         | Tab   | Where the index is stored                         | Splitting settings in Studio     |
| ---------------- | ----- | ------------------------------------------------- | -------------------------------- |
| **Local**        | Local | Born Digital platform                             | Parsing, Snippet size, Delimiter |
| **OpenAI**       | Cloud | OpenAI                                            | Snippet size, Snippet overlap    |
| **Azure Cloud**  | Cloud | Fully hosted and managed in Azure                 | none – Azure splits the files    |
| **Azure Hybrid** | Cloud | Azure services combined with local infrastructure | none – Azure splits the files    |

<figure><img src="https://4261467870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6iQTvxgRZRwPS1NgIGEb%2Fuploads%2Fgit-blob-f125606b862014e5fa7e54bc3ef2dadca7e866ef%2Fkb-providers-cloud.png?alt=media" alt="The Create index dialog on the Cloud tab marked BETA, with How to choose a provider, the Provider OpenAI, and the Snippet size and Snippet overlap sliders highlighted"><figcaption><p>The Cloud tab with the OpenAI provider</p></figcaption></figure>

What only **Local** indexes offer:

* you can open documents, read and edit their snippets, and add a URL, description and labels ([Manage indexes and documents](https://docs.borndigital.ai/digital-agent/advanced-functions/knowledge-base/manage-indexes-and-documents.md));
* **Export**, **Import** and **Duplicate**;
* **Broader context for each snippet** in the AI node, which adds the neighbouring snippets of every hit.

{% hint style="info" %}
With an **Azure Cloud** index, the AI node uses Azure's own file search. The **Number of snippets** and **Broader context** settings of the Knowledge base tool do not apply, and the variables `kb_document_id`, `kb_document_name` and `kb_document_url` are not filled.
{% endhint %}

Choose a Cloud provider only when you have a reason to – for example your organization requires that the data is stored in its own Azure environment. The embedding model and the language of an index are set by the platform and cannot be chosen in Studio.

## Splitting settings

<figure><img src="https://4261467870-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6iQTvxgRZRwPS1NgIGEb%2Fuploads%2Fptp2c0k5MDolYsCw3tzc%2Fkb-providers-local.png?alt=media" alt="The Create index dialog on the Local tab with Name, Upload, Parsing Simple or None, the Snippet size slider from 100 to 2000 and the Delimiter list"><figcaption><p>Splitting settings of a Local index</p></figcaption></figure>

### Parsing (Local)

* **Simple** (default) – the text of each file is extracted and split into snippets according to **Snippet size** and **Delimiter**.
* **None** – the file is stored as one snippet, without splitting. Use it only for short texts that must always be read as a whole.

### Snippet size

How long one snippet is, in tokens (a token is roughly four characters of text). The slider goes from 100 to 2000 in steps of 100; the default is **800**.

* Smaller snippets (300–600) suit FAQs and short, independent facts – the search returns exactly the relevant paragraph.
* Larger snippets (800–1500) suit longer explanations, where one answer needs the surrounding context.

{% hint style="info" %}
Indexes created earlier with a snippet size above 2000 keep working and can still be copied and imported. To add documents, use an index with a snippet size of 2000 or less.
{% endhint %}

### Delimiter (Local)

* **Default** – splits the text by **Snippet size**.
* **Enter** – starts a new snippet at every line break.
* **Double Enter** – starts a new snippet at every empty line, so each paragraph becomes one snippet.

With **Enter** and **Double Enter**, the snippet size is not used: pieces shorter than 10 characters are dropped and pieces longer than 2000 characters are cut. These options work best for files you prepared yourself, for example a .txt file with one question and answer per paragraph.

### Snippet overlap (OpenAI)

How many tokens at the end of one snippet are repeated at the start of the next one, so that a sentence cut at a boundary can still be found. From 0 up to half of the snippet size; the default is 400.

Local indexes apply an overlap automatically: 400 tokens, at most three quarters of the snippet size.

## Preparing good documents

* **One topic per document.** The model decides which documents to read by their name and description, so a file that mixes ten topics is harder to use than ten focused files.
* **Check the Description** of every document after the upload (Local indexes) and rewrite the generated one where it is vague. It is the most effective way to improve answers.
* **Use text, not pictures of text.** Scanned PDFs without a text layer cannot be read – run them through OCR first.
* **Prefer PDF or plain text over HTML.** HTML files are indexed as they are, including their tags and menus.
* **Remove outdated files.** The agent answers from whatever is in the index.
