FEATURE: Try to generate embeddings for a topic when those aren't found (#23)
This commit is contained in:
parent
55182ca0f5
commit
bd342f538d
|
@ -27,6 +27,7 @@ module DiscourseAi
|
|||
end
|
||||
rescue StandardError => e
|
||||
Rails.logger.error("SemanticSuggested: #{e}")
|
||||
Jobs.enqueue(:generate_embeddings, topic_id: topic.id)
|
||||
return { result: [], params: {} }
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue