Overview
Currently we offer Related Topics to all customers hosted by Discourse. For those that are self-hosted they would require getting there own Embeddings set up, which power Related topics.
In this guide we will be exploring how to get Related Topics for free using Cloudflare Workers AI.
Pre-requisites
In order for this to work you will need the following
Additionally, the following guides can be referenced
Configuration
- Once Discourse AI is enabled, you would need to enable Related Topics on your Discourse instance
- Follow API Keys for Cloudflare Workers AI to get a working key inputted
- Configure the plugin to respect Cloudflare Workers AI free tier rate limits:
cd /var/discourse
./launcher enter app
rails c
SiteSetting.ai_embeddings_backfill_batch_size = 20
exit
exit
exit
Caveats
- We recommend checking usage and pricing details so you can stay within the limits and for the most up-to-date information