RAG capacities of discourse-ai

This is all 100% supported today with a myriad of implementation options.

  1. The search tool can be scoped to a group of categories or tags (when you create a new persona and add the search tool)
  2. Custom tools provide extra flexibility here, you can make http requests to the same forum and consume anything from the forum in any format you want… including HTTP reqs to embedding search… see: API access to the embedding(s) for a post - #3 by sam. When making HTTP requests in a custom tool you can specify HTTP headers so you can use an API key you issue on the forum.
  3. The read tool allows you to read topics
  4. This work in progress PR will allow you to search your uploads directly from a tool. (FEATURE: RAG search within tools by SamSaffron · Pull Request #802 · discourse/discourse-ai · GitHub) which is yet another option.
  5. You can control modality (PM vs Chat) depending on your pref

You can see an example implementation at ask.discourse.com (which was designed as a support bot for our customers) - the most important thing is that it involves no custom plugin, it is all using the built in Discourse AI plugin.

2 Likes