Class: Ollama::Params::Embeddings

Inherits:
Base
  • Object
show all
Defined in:
lib/ollama/params.rb

Overview

Embeddings parameters

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#merge, #to_h

Constructor Details

#initialize(model:, input:, truncate: nil, dimensions: nil, keep_alive: nil, options: nil) ⇒ Embeddings

Returns a new instance of Embeddings.



115
116
117
118
119
120
121
122
123
# File 'lib/ollama/params.rb', line 115

def initialize(model:, input:, truncate: nil, dimensions: nil, keep_alive: nil, options: nil)
  super()
  @model = model
  @input = input
  @truncate = truncate
  @dimensions = dimensions
  @keep_alive = keep_alive
  @options = options
end

Instance Attribute Details

#dimensionsObject

Returns the value of attribute dimensions.



113
114
115
# File 'lib/ollama/params.rb', line 113

def dimensions
  @dimensions
end

#inputObject

Returns the value of attribute input.



113
114
115
# File 'lib/ollama/params.rb', line 113

def input
  @input
end

#keep_aliveObject

Returns the value of attribute keep_alive.



113
114
115
# File 'lib/ollama/params.rb', line 113

def keep_alive
  @keep_alive
end

#modelObject

Returns the value of attribute model.



113
114
115
# File 'lib/ollama/params.rb', line 113

def model
  @model
end

#optionsObject

Returns the value of attribute options.



113
114
115
# File 'lib/ollama/params.rb', line 113

def options
  @options
end

#truncateObject

Returns the value of attribute truncate.



113
114
115
# File 'lib/ollama/params.rb', line 113

def truncate
  @truncate
end