Sha256: 3e1555998b8c270ef623260ad995fab3ab4a6f8304a5589c56fb50836fc06e2a

Contents?: true

Size: 333 Bytes

Versions: 28

Compression:

Stored size: 333 Bytes

Contents

# frozen_string_literal: true

module Boxcars
  module VectorStore
    class Document
      attr_accessor :content, :metadata, :embedding

      def initialize(fields = {})
        @content = fields[:content] || ""
        @embedding = fields[:embedding] || []
        @metadata = fields[:metadata] || {}
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
boxcars-0.6.6 lib/boxcars/vector_store/document.rb
boxcars-0.6.5 lib/boxcars/vector_store/document.rb
boxcars-0.6.4 lib/boxcars/vector_store/document.rb
boxcars-0.6.3 lib/boxcars/vector_store/document.rb
boxcars-0.6.2 lib/boxcars/vector_store/document.rb
boxcars-0.6.1 lib/boxcars/vector_store/document.rb
boxcars-0.5.1 lib/boxcars/vector_store/document.rb
boxcars-0.4.10 lib/boxcars/vector_store/document.rb
boxcars-0.4.9 lib/boxcars/vector_store/document.rb
boxcars-0.4.8 lib/boxcars/vector_store/document.rb
boxcars-0.4.7 lib/boxcars/vector_store/document.rb
boxcars-0.4.6 lib/boxcars/vector_store/document.rb
boxcars-0.4.5 lib/boxcars/vector_store/document.rb
boxcars-0.4.4 lib/boxcars/vector_store/document.rb
boxcars-0.4.3 lib/boxcars/vector_store/document.rb
boxcars-0.4.2 lib/boxcars/vector_store/document.rb
boxcars-0.4.1 lib/boxcars/vector_store/document.rb
boxcars-0.4.0 lib/boxcars/vector_store/document.rb
boxcars-0.3.5 lib/boxcars/vector_store/document.rb
boxcars-0.3.4 lib/boxcars/vector_store/document.rb