Did you happen to review this documentation topic on the Discourse AI embeddings? It should have all the info you need to set this up. Also, please ensure you are running the latest Discourse version (either tests passed 3.2.0.beta1-dev or Stable 3.1.