This topic covers the configuration of the Summarization module of the Discourse AI plugin.
This module allows you to use AI-powered summarization strategies when summarizing topics and chat channels.
discourse-ai registers these in Discourse’s core new summarization feature, allowing admins to use them via the
summarization_strategy site setting.
Available strategies include:
- A collection of open-source models from HuggingFace: bart-large-cnn-samsum, flan-t5-base-samsum, and long-t5-tglobal-base-16384-book-summary.
- OpenAI ChatGPT, using either gpt-3.5-turbo or gpt-4.
- Anthropic Claude’s V1 and V2 models.
You must configure each model’s settings, or you won’t be able to select it. You’ll see a hint telling you which settings you have to configure first:
The possible options are:
ai_openai_api_key: An API key obtained at OpenAI Platform.
ai_anthropic_api_key: An API key obtained at https://console.anthropic.com/docs/access.
ai_summarization_discourse_service_api_endpoint: Not needed in CDCK hosting. Check Discourse AI - Self-Hosted Guide if self-hosting Discourse.
ai_summarization_discourse_service_api_key: Not needed in CDCK hosting. Check Discourse AI - Self-Hosted Guide if self-hosting Discourse.
Since sending a request to some providers comes with a cost, you can control which users can do it through the
custom summarization allowed groups setting (default to
trust level 3).
We’ll cache these results and make them available for users not in these groups and anonymous users.
It also lets you do the same for chat channels, allowing you to view a summary of messages sent from the last hours to the previous seven days.