mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-21 19:05:18 +00:00
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…
x
Reference in New Issue
Block a user