This topic covers the configuration of the Summarization feature of the Discourse AI plugin.
Required user level: Administrator for configuration
This module allows you to use AI-powered summarization strategies when summarizing topics and chat channels. The Discourse AI plugin registers these in Discourseās core 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.
Availability
This module is available for customers on all plans hosted by Discourse. If youāre an Enterprise customer you can contact us to have it added to your site on request.
Self-hosted users can install the plugin anytime by following Install Plugins in Discourse - sysadmin - Discourse Meta
Configuration
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 https://platform.openai.com/account/api-keys.
- ai_anthropic_api_key: An API key obtained at Home - Anthropic.
- Google Gemini
- 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.
Permissions
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 (this defaults to staff
and trust level 3
).
Discourse caches these results to make them available for users outside these groups.
Summarization is also available for chat channels, allowing you to view a summary of messages sent from the last hours to the previous seven days.
Additional resources
Last edited by @Saif 2024-09-12T18:25:34Z
Last checked by @hugh 2024-08-06T05:45:39Z
Check document
Perform check on document: