mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-03-06 17:30:20 +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
|
end
|
||||||
rescue StandardError => e
|
rescue StandardError => e
|
||||||
Rails.logger.error("SemanticSuggested: #{e}")
|
Rails.logger.error("SemanticSuggested: #{e}")
|
||||||
|
Jobs.enqueue(:generate_embeddings, topic_id: topic.id)
|
||||||
return { result: [], params: {} }
|
return { result: [], params: {} }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user