Class: ContentEmbedding::CallRecordEmbedding
- Inherits:
-
ContentEmbedding
- Object
- ContentEmbedding
- ContentEmbedding::CallRecordEmbedding
- Includes:
- TextSearchable
- Defined in:
- app/models/content_embedding/call_record_embedding.rb
Constant Summary
Constants included from TextSearchable
TextSearchable::EMBEDDING_MODEL, TextSearchable::SIMILARITY_THRESHOLD
Belongs to collapse
- #embeddable ⇒ CallRecord (also: #call_record)
Class Method Summary collapse
-
.primary_content ⇒ ActiveRecord::Relation<ContentEmbedding::CallRecordEmbedding>
A relation of ContentEmbedding::CallRecordEmbeddings that are primary content.
-
.transcript_content ⇒ ActiveRecord::Relation<ContentEmbedding::CallRecordEmbedding>
A relation of ContentEmbedding::CallRecordEmbeddings that are transcript content.
-
.with_embedding ⇒ ActiveRecord::Relation<ContentEmbedding::CallRecordEmbedding>
A relation of ContentEmbedding::CallRecordEmbeddings that are with embedding.
Methods included from TextSearchable
apply_locale_filter, apply_published_filter, generate_text_query_embedding, locale_filtered?, semantic_search
Class Method Details
.primary_content ⇒ ActiveRecord::Relation<ContentEmbedding::CallRecordEmbedding>
A relation of ContentEmbedding::CallRecordEmbeddings that are primary content. Active Record Scope
43 |
# File 'app/models/content_embedding/call_record_embedding.rb', line 43 scope :primary_content, -> { where(content_type: 'primary') } |
.transcript_content ⇒ ActiveRecord::Relation<ContentEmbedding::CallRecordEmbedding>
A relation of ContentEmbedding::CallRecordEmbeddings that are transcript content. Active Record Scope
44 |
# File 'app/models/content_embedding/call_record_embedding.rb', line 44 scope :transcript_content, -> { where(content_type: 'transcript') } |
.with_embedding ⇒ ActiveRecord::Relation<ContentEmbedding::CallRecordEmbedding>
A relation of ContentEmbedding::CallRecordEmbeddings that are with embedding. Active Record Scope
45 |
# File 'app/models/content_embedding/call_record_embedding.rb', line 45 scope :with_embedding, -> { where.not(embedding: nil) } |
Instance Method Details
#embeddable ⇒ CallRecord Also known as: call_record
38 |
# File 'app/models/content_embedding/call_record_embedding.rb', line 38 belongs_to :embeddable, class_name: 'CallRecord' |