FIX: get strategy version through vector_rep (#1028)
This commit is contained in:
parent
fae1fbc796
commit
1c40a698ca
|
@ -88,7 +88,7 @@ module Jobs
|
|||
.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)
|
||||
|
|
|
@ -25,6 +25,7 @@ RSpec.describe Jobs::EmbeddingsBackfill do
|
|||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue