I compiti Rake nel plugin AI non funzionano

Sono riuscito a farlo funzionare andando nel container ed eseguendo:

bundle install --with migrations

Il problema è che il task rake rake ai:embeddings:backfill fa questo:

  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

che necessita di avere ruby-progressbar caricato, ma viene ignorato perché si trova nel gruppo delle migrazioni del Gemfile.

2 Mi Piace