# Discourse AI and retrieval augmented generation

**URL:** <https://meta.discourse.org/t/discourse-ai-and-retrieval-augmented-generation/286378>\
**Category:** Feature\
**Tags:** ai\
**Created:** [November 22, 2023, 9:31pm UTC](https://meta.discourse.org/t/discourse-ai-and-retrieval-augmented-generation/286378 "2023-11-22T21:31:24Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![aas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aas/32/289331_2.png) [@aas](https://meta.discourse.org/u/aas)\
**Post date:** [November 22, 2023, 9:31pm UTC](https://meta.discourse.org/t/discourse-ai-and-retrieval-augmented-generation/286378/1 "2023-11-22T21:31:24Z")

</div>

Discourse AI looks amazing and I am super eager to set it up on my self-hosted instance!

One question I have (or perhaps a feature request) related to the helper bot and embeddings is: **can I choose which topics are used for retrieval augmented generation (RAG)**? For example, it would be amazing if I can configure the plugin only to compute embeddings for topics in my official docs categories. I fear that if the bot is building up a vector database using everything on our forum, the output will not be good enough. It would also be interesting to configure it only to compute embeddings for topics with specific tags or solved topics. I’m curious about the details regarding the RAG workflow. Does Discourse AI have a RAG workflow? Will we have the ability to control which documents get added to the vector database? If we already have a collection of embeddings, can we configure Discourse AI use them when calling the helper or semantic search?

I saw this briefly mentioned over here, but I’d love to know more details!

> [@Creating custom AI Bot personas](https://meta.discourse.org/t/creating-custom-ai-bot-personas/277961/7):
>
> What in this persona builds on top of the Discourse integration, other than using the Discourse UI as a front-end for the external LLM? For most of our personas we are looking into doing RAG, were we can create something that using an out of the shelf LLM won’t also give you.

---

_[View the full topic](https://meta.discourse.org/t/discourse-ai-and-retrieval-augmented-generation/286378)._
