Updated

app/models / embedding_documment.rb

A
22 lines of codes
0 methods
N/A complexity/method
5 churn
0.0 complexity
0 duplications
# == Schema Information # # Table name: embedding_documments # # id :bigint not null, primary key # content :text # embedding :vector(1536) # source_reference :string # source_type :string # status :integer default(0) # created_at :datetime not null # updated_at :datetime not null # source_id :bigint # # Indexes # # index_embedding_documments_on_source (source_type,source_id) # class EmbeddingDocumment < ApplicationRecord belongs_to :source, polymorphic: true, optional: true has_neighbors :embedding, normalize: true end