Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 0d3e6b2

Browse files
xfalcoxromanrizzi
andauthored
FIX: Fix ordering of random post embeddings backfill (#965)
* FIX: Fix ordering of random post embeddings backfill * fix annotations --------- Co-authored-by: Roman Rizzi <[email protected]>
1 parent be05e28 commit 0d3e6b2

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

app/jobs/scheduled/embeddings_backfill.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def execute(args)
110110
.pluck(:id)
111111

112112
outdated_post_ids.each_slice(posts_batch_size) do |batch|
113-
vector_rep.gen_bulk_reprensentations(Post.where(id: batch).order("topics.bumped_at DESC"))
113+
vector_rep.gen_bulk_reprensentations(Post.where(id: batch))
114114
rebaked += batch.length
115115
end
116116

app/models/reviewable_ai_chat_message.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ def build_action(
172172
# updated_at :datetime not null
173173
# force_review :boolean default(FALSE), not null
174174
# reject_reason :text
175+
# potentially_illegal :boolean default(FALSE)
175176
#
176177
# Indexes
177178
#

app/models/reviewable_ai_post.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ def build_action(
229229
# updated_at :datetime not null
230230
# force_review :boolean default(FALSE), not null
231231
# reject_reason :text
232+
# potentially_illegal :boolean default(FALSE)
232233
#
233234
# Indexes
234235
#

0 commit comments

Comments
 (0)