mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-06-26 17:42:15 +00:00
FIX: Fix ordering of random post embeddings backfill (#965)
* FIX: Fix ordering of random post embeddings backfill * fix annotations --------- Co-authored-by: Roman Rizzi <rizziromanalejandro@gmail.com>
This commit is contained in:
parent
be05e28679
commit
0d3e6b2726
@ -110,7 +110,7 @@ module Jobs
|
|||||||
.pluck(:id)
|
.pluck(:id)
|
||||||
|
|
||||||
outdated_post_ids.each_slice(posts_batch_size) do |batch|
|
outdated_post_ids.each_slice(posts_batch_size) do |batch|
|
||||||
vector_rep.gen_bulk_reprensentations(Post.where(id: batch).order("topics.bumped_at DESC"))
|
vector_rep.gen_bulk_reprensentations(Post.where(id: batch))
|
||||||
rebaked += batch.length
|
rebaked += batch.length
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -172,6 +172,7 @@ end
|
|||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# force_review :boolean default(FALSE), not null
|
# force_review :boolean default(FALSE), not null
|
||||||
# reject_reason :text
|
# reject_reason :text
|
||||||
|
# potentially_illegal :boolean default(FALSE)
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
@ -229,6 +229,7 @@ end
|
|||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# force_review :boolean default(FALSE), not null
|
# force_review :boolean default(FALSE), not null
|
||||||
# reject_reason :text
|
# reject_reason :text
|
||||||
|
# potentially_illegal :boolean default(FALSE)
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user