# Job exception: undefined method DiscourseAi Embedding

**URL:** https://meta.discourse.org/t/job-exception-undefined-method-discourseai-embedding/294084
**Category:** Bug
**Tags:** ai
**Created:** [February 4, 2024, 4:46am UTC](https://meta.discourse.org/t/job-exception-undefined-method-discourseai-embedding/294084 "2024-02-04T04:46:47Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [February 4, 2024, 4:46am UTC](https://meta.discourse.org/t/job-exception-undefined-method-discourseai-embedding/294084/1 "2024-02-04T04:46:48Z")

</div>

Hello 👋

I’ve got lots of error in `/logs` since I updated Discourse AI to the latest.

```plaintext
Job exception: undefined method `clas' for #<DiscourseAi::Embeddings::VectorRepresentations::TextEmbedding3Large:0x00007f0a8090f600 @strategy=#<DiscourseAi::Embeddings::Strategies::Truncation:0x00007f0a8090f7b8>>

```

Seems there is a typo in here:

> <https://github.com/discourse/discourse-ai/blob/a3c827efcc097ec183a666f0cfeaeb0da970ec8e/lib/embeddings/vector_representations/text_embedding_3_large.rb#L51C22-L51C36>

Thanks 🙂

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 4, 2024, 4:47am UTC](https://meta.discourse.org/t/job-exception-undefined-method-discourseai-embedding/294084/2 "2024-02-04T04:47:58Z")

</div>

Yikes cc @Roman

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 4, 2024, 11:30pm UTC](https://meta.discourse.org/t/job-exception-undefined-method-discourseai-embedding/294084/3 "2024-02-04T23:30:20Z")

</div>

Should have this merged shortly:

[https://github.com/discourse/discourse-ai/pull/460](https://github.com/discourse/discourse-ai/pull/460)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 5, 2024, 9:00pm UTC](https://meta.discourse.org/t/job-exception-undefined-method-discourseai-embedding/294084/4 "2024-02-05T21:00:34Z")

</div>

This topic was automatically closed after 21 hours. New replies are no longer allowed.
