# Discourse AI — руководство по самостоятельному размещению

**URL:** https://meta.discourse.org/t/discourse-ai-self-hosted-guide/259598
**Category:** Self-Hosting
**Tags:** ai
**Created:** [24.Апрель.2023 19:40:49 UTC](https://meta.discourse.org/t/discourse-ai-self-hosted-guide/259598 "2023-04-24T19:40:49Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![Discourse](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/discourse/32/148734_2.png) [@Discourse](https://meta.discourse.org/u/Discourse)
#### Post date: [24.Апрель.2023 19:40:49 UTC](https://meta.discourse.org/t/discourse-ai-self-hosted-guide/259598/1 "2023-04-24T19:40:49Z")

</div>

Это руководство предназначено для самостоятельного запуска экземпляров сервисов, обеспечивающих работу модулей Discourse AI.

## Введение

Если вы хотите использовать Discourse AI на своём самостоятельно размещённом экземпляре, возможно, вам потребуется также запустить сопутствующие сервисы для модулей, которые вы планируете включить.

Каждый модуль требует один или несколько сопутствующих сервисов, и эти сервисы потребляют больше ресурсов ЦП / ГП / дискового пространства, чем сам Discourse. Поэтому имейте в виду, что это не рекомендуется для людей, не знакомых с администрированием Linux-серверов и Docker.

### Суммаризация / AI Helper / AI Bot

> [@Self-Hosting an OpenSource LLM for DiscourseAI](https://meta.discourse.org/t/self-hosting-an-opensource-llm-for-discourseai/290923?u=falco):
>
> The [Discourse AI](https://meta.discourse.org/t/discourse-ai/259214) plugin has many features that require an LLM to be enabled, like, for example, Summarization, AI Helper, AI Search, AI Bot. While you can use a third party API, like [Configure API Keys for OpenAI](https://meta.discourse.org/t/configure-api-keys-for-openai/280783) or [Configure API Keys for Anthropic](https://meta.discourse.org/t/configure-api-keys-for-anthropic/280936) we built Discourse AI since first day to not be locked into those. Running with HuggingFace TGI HuggingFace provides an awesome container image that can get you running quickly. For example: mkdir -p /opt/tgi-cache docker run --rm --gpus all --shm…

### Векторные представления (Embeddings)

> [@Self-Hosting Embeddings for DiscourseAI](https://meta.discourse.org/t/self-hosting-embeddings-for-discourseai/290925?u=falco):
>
> The [Discourse AI](https://meta.discourse.org/t/discourse-ai/259214) plugin has many features that require embeddings to work, such as Related Topics, AI Search, AI Helper Category and Tag suggestion, etc. While you can use a third-party API, like [Configure API Keys for OpenAI](https://meta.discourse.org/t/configure-api-keys-for-openai/280783), [Configure API Keys for Cloudflare Workers AI](https://meta.discourse.org/t/configure-api-keys-for-cloudflare-workers-ai/283321) or [Configure API Keys for Google Gemini](https://meta.discourse.org/t/configure-api-keys-for-google-gemini/289556), we built Discourse AI from the first day to not be locked into those. Running with HuggingFace TEI HuggingFace provides an awesome container image that can get you running quickly. For…

### Анализ тональности (Sentiment)

> [@Self-Hosting Sentiment and Emotion for DiscourseAI](https://meta.discourse.org/t/self-hosting-sentiment-and-emotion-for-discourseai/334451):
>
> The [Discourse AI](https://meta.discourse.org/t/discourse-ai/259214) plugin has support for requesting emotion/sentiment classification of new posts, which is stored in the database and can be used in reports and admin dashboards. Discourse AI supports two types of classification, each requiring its own model: Sentiment — classifies posts as positive, negative, or neutral (using cardiffnlp/twitter-roberta-base-sentiment-latest) Emotion — classifies posts across 28 emotion labels like joy, anger, surprise, etc. (using SamLowe/roberta-base-go\_em…

## Запуск в промышленной среде

При развёртывании на живом сайте вы можете захотеть разместить этот сервис за обратным прокси-сервером для включения таких функций, как балансировка нагрузки, TLS, проверки работоспособности, ограничение скорости и т. д.

После запуска сервиса настройте модуль на подключение к домену, где работает сервис, через административный интерфейс (Администрирование \> Плагины \> Discourse AI), а затем включите модуль.

---

_[View the full topic](https://meta.discourse.org/t/discourse-ai-self-hosted-guide/259598)._
