mirror of
https://github.com/discourse/discourse.git
synced 2024-12-03 02:03:38 +08:00
f4e7a80600
Updates the interface for implementing summarization strategies and adds a cache layer to summarize topics once. The cache stores the final summary and each chunk used to build it, which will be useful when we have to extend or rebuild it.
22 lines
668 B
Ruby
22 lines
668 B
Ruby
# frozen_string_literal: true
|
|
|
|
class SummarySection < ActiveRecord::Base
|
|
belongs_to :target, polymorphic: true
|
|
end
|
|
|
|
# == Schema Information
|
|
#
|
|
# Table name: summary_sections
|
|
#
|
|
# id :bigint not null, primary key
|
|
# target_id :integer not null
|
|
# target_type :string not null
|
|
# content_range :int4range
|
|
# summarized_text :string not null
|
|
# meta_section_id :integer
|
|
# original_content_sha :string not null
|
|
# algorithm :string not null
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
#
|