# Problems with Discouse AI embeddings configuration

**URL:** https://meta.discourse.org/t/problems-with-discouse-ai-embeddings-configuration/349725
**Category:** Bug
**Tags:** ai
**Created:** [January 30, 2025, 10:51am UTC](https://meta.discourse.org/t/problems-with-discouse-ai-embeddings-configuration/349725 "2025-01-30T10:51:06Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![NKERIFAC\_CLAUD\_NBAPNON](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nkerifac_claud_nbapnon/32/485351_2.png) [@NKERIFAC\_CLAUD\_NBAPNON](https://meta.discourse.org/u/NKERIFAC_CLAUD_NBAPNON)
#### Post date: [January 30, 2025, 10:51am UTC](https://meta.discourse.org/t/problems-with-discouse-ai-embeddings-configuration/349725/1 "2025-01-30T10:51:06Z")

</div>

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

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/b/3/4b3f1faf9b8b028d40e7cade5ab0d670fca0efbc.png)

Is there something we might have missed during the update?

---

<div class="post-metadata">

### Author: ![mwaniki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mwaniki/32/313097_2.png) [@mwaniki](https://meta.discourse.org/u/mwaniki)
#### Post date: [January 30, 2025, 11:29am UTC](https://meta.discourse.org/t/problems-with-discouse-ai-embeddings-configuration/349725/2 "2025-01-30T11:29:58Z")

</div>

@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.

---

<div class="post-metadata">

### Author: ![NKERIFAC\_CLAUD\_NBAPNON](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nkerifac_claud_nbapnon/32/485351_2.png) [@NKERIFAC\_CLAUD\_NBAPNON](https://meta.discourse.org/u/NKERIFAC_CLAUD_NBAPNON)
#### Post date: [January 30, 2025, 12:00pm UTC](https://meta.discourse.org/t/problems-with-discouse-ai-embeddings-configuration/349725/3 "2025-01-30T12:00:00Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Roman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roman/32/157504_2.png) [@Roman](https://meta.discourse.org/u/Roman)
#### Post date: [January 30, 2025, 1:21pm UTC](https://meta.discourse.org/t/problems-with-discouse-ai-embeddings-configuration/349725/4 "2025-01-30T13:21:59Z")

</div>

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:

```ruby
EmbeddingDefinition.last&.id

```

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

```ruby
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

---

<div class="post-metadata">

### Author: ![NKERIFAC\_CLAUD\_NBAPNON](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nkerifac_claud_nbapnon/32/485351_2.png) [@NKERIFAC\_CLAUD\_NBAPNON](https://meta.discourse.org/u/NKERIFAC_CLAUD_NBAPNON)
#### Post date: [January 30, 2025, 8:14pm UTC](https://meta.discourse.org/t/problems-with-discouse-ai-embeddings-configuration/349725/5 "2025-01-30T20:14:03Z")

</div>

Hi @Roman sorry I am not very good with the whole discourse system. Can you please tell me how to access the rails console? And also what do you mean by embedded service.

---

<div class="post-metadata">

### Author: ![qingfeng1024](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qingfeng1024/32/495412_2.png) [@qingfeng1024](https://meta.discourse.org/u/qingfeng1024)
#### Post date: [January 31, 2025, 12:01pm UTC](https://meta.discourse.org/t/problems-with-discouse-ai-embeddings-configuration/349725/6 "2025-01-31T12:01:00Z")

</div>

> [@AI Plugin Causes All Posts to Be Unreadable in Latest Discourse Version](https://meta.discourse.org/t/ai-plugin-causes-all-posts-to-be-unreadable-in-latest-discourse-version/348964):
>
> Hi Community, I’m writing to report a critical bug involving the AI plugin in the latest version of Discourse. This issue has rendered all posts in my community unreadable, and I’ve spent a lot of time isolating the cause. Here’s a detailed breakdown of the problem: Issue Description After updating to the latest Discourse version, all posts in my community became unreadable. When attempting to open any topic, users encounter the following error message: “Sorry, we couldn’t load that topic.…

Just turn off that setting

> AI embeddings semantic related topics enabled

, everything will go back to normal

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [January 31, 2025, 12:06pm UTC](https://meta.discourse.org/t/problems-with-discouse-ai-embeddings-configuration/349725/7 "2025-01-31T12:06:31Z")

</div>

And the first thing to do is check that embedding is configured. That is quite new setting and not so much informed.

---

<div class="post-metadata">

### Author: ![Roman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roman/32/157504_2.png) [@Roman](https://meta.discourse.org/u/Roman)
#### Post date: [January 31, 2025, 4:14pm UTC](https://meta.discourse.org/t/problems-with-discouse-ai-embeddings-configuration/349725/8 "2025-01-31T16:14:25Z")

</div>

I’m talking about this feature the AI plugins has:

> [@Discourse AI - Embeddings](https://meta.discourse.org/t/discourse-ai-embeddings/259603):
>
> bookmark This topic covers the configuration of the Embeddings module of the [Discourse AI](https://meta.discourse.org/t/discourse-ai/259214?slient=true) plugin. It explains what embeddings are, how they’re used, and how to set them up. person_raising_hand Required user level: Administrator Embeddings are a crucial component of the Discourse AI plugin, enabling features like [Related topics](https://meta.discourse.org/t/discourse-ai-related-topics/281807) and [AI search](https://meta.discourse.org/t/discourse-ai-ai-search/282420). This guide will walk you through the setup and use of embeddings in your Discourse instance. What are Embeddings? Embeddings are numerical repres…

We’ve been reorganizing how they get configured, and it may be the root cause of the issue you saw in your site.

If you are not using this feature, maybe you enabled it in your site but never configured?

To open a console, you can do:

```plaintext
./launcher enter app
rails c

```

If you no longer have the plugin installed, you will have to do:

```plaintext
DB.query_single("SELECT id FROM embedding_definitions").first

```

Additionally, it would be helpful to know this value:

```plaintext
SiteSetting.ai_embeddings_model

```

You could also re-install the plugin and disabled the site setting mentioned above until you re-configure it.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [December 2, 2025, 2:18pm UTC](https://meta.discourse.org/t/problems-with-discouse-ai-embeddings-configuration/349725/9 "2025-12-02T14:18:32Z")

</div>


