# Rake tasks in the AI plugin not working

**URL:** https://meta.discourse.org/t/rake-tasks-in-the-ai-plugin-not-working/352607
**Category:** Bug
**Tags:** ai
**Created:** [February 15, 2025, 4:32pm UTC](https://meta.discourse.org/t/rake-tasks-in-the-ai-plugin-not-working/352607 "2025-02-15T16:32:18Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Yenwod](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yenwod/32/275165_2.png) [@Yenwod](https://meta.discourse.org/u/Yenwod)
#### Post date: [February 15, 2025, 11:25pm UTC](https://meta.discourse.org/t/rake-tasks-in-the-ai-plugin-not-working/352607/2 "2025-02-15T23:25:58Z")

</div>

> [@Yenwod](#):
>
> Any pointers on how to fix this?

I got it working by going into the container and doing:

`bundle install --with migrations`

The problem is that the rake task `rake ai:embeddings:backfill` does this:

```ruby
  Parallel.each(topics.all, in_processes: args[:concurrency].to_i, progress: "Topics") do |t|
    ActiveRecord::Base.connection_pool.with_connection do
      vector_rep.generate_representation_from(t)
    end
  end

```

which needs to have `ruby-progressbar` loaded, but it is ignored because its in the Gemfile migrations group.

---

_[View the full topic](https://meta.discourse.org/t/rake-tasks-in-the-ai-plugin-not-working/352607)._
