> For the complete documentation index, see [llms.txt](https://docs.cherry-ai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cherry-ai.com/docs/russian/advanced-basic/mcp/dify.md).

# Настройка базы знаний Dify

[Dify](https://dify.ai/) Это корпоративная платформа AI-приложений, в которой также встроена функция базы знаний. Если вы уже создали базу знаний в Dify (компания использует Dify для ведения внутренних материалов или вы лично пробуете сделать RAG-приложение на Dify), эта страница научит вас**Позвольте ИИ в Cherry Studio напрямую запрашивать базу знаний Dify**。

Проще говоря:**Вам не нужно переносить материалы из Dify в Cherry Studio — диалоги в Cherry Studio смогут получать доступ к содержимому Dify.**。

Требования: Cherry Studio v1.2.9 или более поздняя версия; в Dify уже создана как минимум одна база знаний, и для неё получен API Key.

### Добавить MCP-сервер базы знаний Dify

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

1. Открыть `Поиск MCP`。
2. Добавить `dify-knowledge` сервер.

### Настроить базу знаний Dify

<figure><img src="/files/3863a2d8d1c2ca89238dfc74c6671cf223e1b37b" alt=""><figcaption></figcaption></figure>

> Требуется настроить параметры и переменные окружения

1. Ключ базы знаний Dify можно получить следующим образом

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

### Использовать MCP базы знаний Dify

<figure><img src="/files/9196093774b600675c4f4efdf003d8fb26864300" alt=""><figcaption></figcaption></figure>

***

### 💡 Получить помощь и отправить отзыв

Если вы в процессе настройки или использования столкнётесь с любыми вопросами, багами или предложениями по улучшению функций, пожалуйста, обратитесь к [Обратная связь и предложения](/docs/russian/question-contact/suggestions.md) официальным каналам, указанным там.


---

# 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://docs.cherry-ai.com/docs/russian/advanced-basic/mcp/dify.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.
