Problems with Discouse AI embeddings configuration

Hi @mwaniki After the update we starting see below error, users are unable to view articles.

Is there something we might have missed during the update?

@NKERIFAC_CLAUD_NBAPNON Could you confirm a few details:

  • which plugins are installed?
  • are all users having the same problem?
  • does this affect just one, multiple or all topics?
  • are there any errors in your rails logs?

I would recommend disabling the plugins one at a time while checking if the issue persists, particularly the discourse-ai plugin if you have that installed. If you’re able to identify a problematic plugin, you can try updating it and see if the issue persists after re-enabling it.

Let us know how that goes.

1 Like

Hi, I disabled discourse-ai and issue is resolved. When i re-enable it issue appears again. And the version of discourse-ai plugin we have seems to be the latest, there is no update available.

1 Like

Hey @NKERIFAC_CLAUD_NBAPNON,

Apologies for the trouble. This looks related to the embeddings config changes I’ve been working on. Things should migrated automatically, but it appears this wasn’t the case.

Could you please tell me which embedding service are you using? Also, could you check if config was copied to the new table in your site by running in a rails console:

EmbeddingDefinition.last&.id

If that returned an ID, you could then set the model by doing:

SiteSetting.ai_embeddings_selected_model = EmbeddingDefinition.last&.id

I moved these posts into a new topic since the other one was related to the PG upgrade

2 Likes