discourse-ai/db/migrate/20241217164540_create_embedding_definitions.rb
Roman Rizzi f5cf1019fb
FEATURE: configurable embeddings (#1049)
* 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
2025-01-21 12:23:19 -03:00

20 lines
639 B
Ruby

# frozen_string_literal: true
class CreateEmbeddingDefinitions < ActiveRecord::Migration[7.2]
def change
create_table :embedding_definitions do |t|
t.string :display_name, null: false
t.integer :dimensions, null: false
t.integer :max_sequence_length, null: false
t.integer :version, null: false, default: 1
t.string :pg_function, null: false
t.string :provider, null: false
t.string :tokenizer_class, null: false
t.string :url, null: false
t.string :api_key
t.boolean :seeded, null: false, default: false
t.jsonb :provider_params
t.timestamps
end
end
end