How to introduce self-built knowledge base RAG in Discourse ai?

How to introduce a self-built knowledge base RAG in Discourse AI?