Class: Ollama::Params::Embeddings
Overview
Embeddings parameters
Instance Attribute Summary collapse
-
#dimensions ⇒ Object
Returns the value of attribute dimensions.
-
#input ⇒ Object
Returns the value of attribute input.
-
#keep_alive ⇒ Object
Returns the value of attribute keep_alive.
-
#model ⇒ Object
Returns the value of attribute model.
-
#options ⇒ Object
Returns the value of attribute options.
-
#truncate ⇒ Object
Returns the value of attribute truncate.
Instance Method Summary collapse
-
#initialize(model:, input:, truncate: nil, dimensions: nil, keep_alive: nil, options: nil) ⇒ Embeddings
constructor
A new instance of Embeddings.
Methods inherited from Base
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 = end |
Instance Attribute Details
#dimensions ⇒ Object
Returns the value of attribute dimensions.
113 114 115 |
# File 'lib/ollama/params.rb', line 113 def dimensions @dimensions end |
#input ⇒ Object
Returns the value of attribute input.
113 114 115 |
# File 'lib/ollama/params.rb', line 113 def input @input end |
#keep_alive ⇒ Object
Returns the value of attribute keep_alive.
113 114 115 |
# File 'lib/ollama/params.rb', line 113 def keep_alive @keep_alive end |
#model ⇒ Object
Returns the value of attribute model.
113 114 115 |
# File 'lib/ollama/params.rb', line 113 def model @model end |
#options ⇒ Object
Returns the value of attribute options.
113 114 115 |
# File 'lib/ollama/params.rb', line 113 def @options end |
#truncate ⇒ Object
Returns the value of attribute truncate.
113 114 115 |
# File 'lib/ollama/params.rb', line 113 def truncate @truncate end |