> 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="https://2593311972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fef2EBU68XAlye1NtG8DF%2Fuploads%2F6da0tqLWWpQHm9Tm8neM%2F%7B130F77F7-AA46-46D1-A141-16DC18FF1689%7D.png?alt=media&amp;token=ce403cef-7cb8-40ef-968e-3644a7dd5388" alt=""><figcaption></figcaption></figure>

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

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

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

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

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

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

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

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

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

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

<figure><img src="https://2593311972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fef2EBU68XAlye1NtG8DF%2Fuploads%2FeqQFTT9QcNR74glGl2gR%2F%7B922A123C-436C-41AA-9A9F-583F5D944979%7D.png?alt=media&amp;token=68ecede4-0b20-4af3-9038-3b76eac8615a" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
