Skip to content

Commit

Permalink
COMPATIBILITY: add model annotation to ensure it clears new CI checks
Browse files Browse the repository at this point in the history
  • Loading branch information
merefield committed Oct 29, 2024
1 parent ea195db commit 04c1a32
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
17 changes: 17 additions & 0 deletions app/models/discourse_chatbot/post_embedding.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,20 @@ class PostEmbedding < ActiveRecord::Base
validates :post_id, presence: true, uniqueness: true
end
end

# == Schema Information
#
# Table name: chatbot_post_embeddings
#
# id :bigint not null, primary key
# post_id :integer not null
# embedding :vector(1536) not null
# created_at :datetime not null
# updated_at :datetime not null
# model :string
#
# Indexes
#
# index_chatbot_post_embeddings_on_post_id (post_id) UNIQUE
# pgv_hnsw_index_on_chatbot_post_embeddings (embedding) USING hnsw
#
10 changes: 10 additions & 0 deletions app/models/discourse_chatbot/post_embeddings_bookmark.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,13 @@ class PostEmbeddingsBookmark < ActiveRecord::Base
validates :post_id, presence: true
end
end

# == Schema Information
#
# Table name: chatbot_post_embeddings_bookmark
#
# id :bigint not null, primary key
# post_id :integer
# created_at :datetime not null
# updated_at :datetime not null
#
10 changes: 10 additions & 0 deletions app/models/discourse_chatbot/topic_embeddings_bookmark.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,13 @@ class TopicEmbeddingsBookmark < ActiveRecord::Base
validates :topic_id, presence: true
end
end

# == Schema Information
#
# Table name: chatbot_topic_embeddings_bookmark
#
# id :bigint not null, primary key
# topic_id :integer
# created_at :datetime not null
# updated_at :datetime not null
#
17 changes: 17 additions & 0 deletions app/models/discourse_chatbot/topic_title_embedding.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,20 @@ class TopicTitleEmbedding < ActiveRecord::Base
validates :topic_id, presence: true, uniqueness: true
end
end

# == Schema Information
#
# Table name: chatbot_topic_title_embeddings
#
# id :bigint not null, primary key
# topic_id :integer not null
# embedding :vector(1536) not null
# model :string
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_chatbot_topic_title_embeddings_on_topic_id (topic_id) UNIQUE
# pgv_hnsw_index_on_chatbot_topic_title_embeddings (embedding) USING hnsw
#

0 comments on commit 04c1a32

Please sign in to comment.