This guide explains how to set up and use automatic titles for chat threads using AI-powered Large Language Models (LLMs).
Required user level: Administrator
Chat threads in Discourse typically require manual title input. This feature uses AI to automatically generate titles for Chat Threads based on the context of the posts within the thread. This makes threads more discoverable and reduces the burden on thread authors.
Summary
- Automatically generate chat thread titles using AI
- Configure delay time for title generation
- Available for all Discourse-hosted customers and self-hosted users with the Discourse AI plugin
Prerequisites
You must configure at least one Large Language Model (LLM), for example:
- OpenAI
- Anthropic
- Azure OpenAI
- AWS Bedrock with Anthropic access
- HuggingFace Endpoints
- Self-hosted open-source LLM
Enabling automatic titles
- Go to Admin โ Plugins
- Search for โdiscourse-aiโ and ensure itโs enabled
- Enable the setting
composer_ai_helper_enabled
to activate AI helper in composer - Enable the setting
ai_helper_automatic_chat_thread_title
to activate automatic titles for chat threads
How it works
When a new chat thread is created, the AI will analyze the context of the posts within the thread and generate an appropriate title. The generated title will appear after a specified delay.
Customizing the delay
You can adjust the time it takes for the AI to generate the thread title:
- Go to Admin โ Settings
- Search for
ai_helper_automatic_chat_thread_title_delay
- Set the desired delay time (default is 5 minutes)
Availability
- Discourse-hosted customers: Available on all plans
- Self-hosted users: Can be installed by following the plugin installation guide=
FAQs
Q: Why is there a delay before the titles appear on the threads?
A: The delay serves two purposes:
- It allows time for the LLM to process the thread context and generate an appropriate title
- Itโs configurable via the
ai_helper_automatic_chat_thread_title_delay
setting to suit your preferences
Additional resources
- Introducing chat threads!
- Discourse AI - AI Helper
- Discourse AI
- Install plugins on a self-hosted site
Last edited by @hugh 2024-08-06T03:25:45Z
Check document
Perform check on document: