mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-07-10 08:03:28 +00:00
* Use AR model for embeddings features * endpoints * Embeddings CRUD UI * Add presets. Hide a couple more settings * system specs * Seed embedding definition from old settings * Generate search bit index on the fly. cleanup orphaned data * support for seeded models * Fix run test for new embedding * fix selected model not set correctly
12 lines
214 B
Ruby
12 lines
214 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Jobs
|
|
class RemoveOrphanedEmbeddings < ::Jobs::Scheduled
|
|
every 1.week
|
|
|
|
def execute(_args)
|
|
DiscourseAi::Embeddings::Schema.remove_orphaned_data
|
|
end
|
|
end
|
|
end
|