mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-06 11:38:13 +00:00
03eccbe392
Polymorphic RAG means that we will be able to access RAG fragments both from AiPersona and AiCustomTool In turn this gives us support for richer RAG implementations.
10 lines
346 B
Ruby
10 lines
346 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddTargetToRagDocumentFragment < ActiveRecord::Migration[7.1]
|
|
def change
|
|
add_column :rag_document_fragments, :target_id, :integer, null: true
|
|
add_column :rag_document_fragments, :target_type, :string, limit: 800, null: true
|
|
add_index :rag_document_fragments, %i[target_type target_id]
|
|
end
|
|
end
|