diff --git a/app/jobs/regular/generate_embeddings.rb b/app/jobs/regular/generate_embeddings.rb index 05b22ea6..d80b85e5 100644 --- a/app/jobs/regular/generate_embeddings.rb +++ b/app/jobs/regular/generate_embeddings.rb @@ -12,6 +12,7 @@ module Jobs topic = target.is_a?(Topic) ? target : target.topic post = target.is_a?(Post) ? target : target.first_post + return unless topic.present? && post.present? return if topic.private_message? && !SiteSetting.ai_embeddings_generate_for_pms return if post.raw.blank?