API access to the embedding(s) for a post

The Discourse AI bot utilizes RAG (Retrieval Augmented Generation) for posts, and therefore if the bot has been enabled, each post should have an associated embedding, which is a vector space representation. It would be convenient if these embeddings could be accessed through the API.

https://docs.discourse.org/#tag/Posts


As more of us begin to use AI in Discourse, we may desire features that aren’t currently available. Since an AI typically requires post embeddings, which are already present in Discourse sites with the AI bot active, it makes sense to utilize these existing embeddings instead of duplicating them.

I was hoping that the Discourse AI bot could access external data by now, but I haven’t come across any information regarding that capability. Therefore, I’m exploring the creation of a custom GPT for ChatGPT Plus and would like to leverage the pre-existing embeddings.

1 Like