Skip to content

Commit

Permalink
FIX: get strategy version through vector_rep
Browse files Browse the repository at this point in the history
  • Loading branch information
romanrizzi committed Dec 13, 2024
1 parent fae1fbc commit 4cfb174
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/scheduled/embeddings_backfill.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def execute(args)
.where(<<~SQL)
#{table_name}.model_version < #{vector_rep.version}
OR
#{table_name}.strategy_version < #{strategy.version}
#{table_name}.strategy_version < #{vector_rep.strategy_version}
SQL
.limit(limit - rebaked)
.pluck(:id)
Expand Down
1 change: 1 addition & 0 deletions spec/jobs/scheduled/embeddings_backfill_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
SiteSetting.ai_embeddings_enabled = true
SiteSetting.ai_embeddings_discourse_service_api_endpoint = "http://test.com"
SiteSetting.ai_embeddings_backfill_batch_size = 1
SiteSetting.ai_embeddings_per_post_enabled = true
Jobs.run_immediately!
end

Expand Down

0 comments on commit 4cfb174

Please sign in to comment.