> For the complete documentation index, see [llms.txt](https://doc.nextbot.ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.nextbot.ru/functional/knowledge-base/dokumenty.md).

# Документы

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

Вы можете загружать документы в формате Word (`.docx`), которые будут использоваться для формирования базы знаний.\
**1.** **Для этого:**

* Нажмите кнопку **«Выберите файл»**.
* Выберите нужный файл на вашем устройстве и нажмите на копку "Загрузка".

После загрузки документы отображаются в **списке** **загруженных документов.**

**2. Автоматическое деление на фрагменты**\
После загрузки документ автоматически делится на фрагменты:

* **По абзацам**: Каждый абзац становится отдельным фрагментом.
* **По количеству токенов** (частей текста, например, слов или символов): Система разбивает текст на части заданного размера.

**Важно!**\
Автоматическое деление может работать менее точно, чем ручное. Оно подходит для:

* Тестирования функционала.
* Документов, заранее подготовленных для базы знаний (например, структурированных текстов).

**3. Ручное деление (рекомендуется)**\
Для лучшего качества базы знаний рекомендуется делить текст вручную на осмысленные части. Это поможет системе точнее обрабатывать и находить информацию.

{% hint style="info" %}
Если ваш документ содержит сложную структуру или важные смысловые блоки, предварительно разбейте его на части вручную для оптимальной работы базы знаний.
{% endhint %}

Деление на фрагменты можно увидеть в диалоге Nextbot, если нажать на значок База знаний. Данный запрос был найден во фрагменте **Массаж.docx\_3: 66%.**

<figure><img src="/files/1p3tyivtV1dfPGJvSg4M" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://doc.nextbot.ru/functional/knowledge-base/dokumenty.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
