Class: Conductor::Workflow::Llm::EmbeddingModel
- Inherits:
-
Object
- Object
- Conductor::Workflow::Llm::EmbeddingModel
- Defined in:
- lib/conductor/workflow/llm/embedding_model.rb
Overview
EmbeddingModel encapsulates the provider and model name for embeddings
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
Instance Method Summary collapse
-
#initialize(provider:, model:) ⇒ EmbeddingModel
constructor
A new instance of EmbeddingModel.
Constructor Details
#initialize(provider:, model:) ⇒ EmbeddingModel
Returns a new instance of EmbeddingModel.
12 13 14 15 |
# File 'lib/conductor/workflow/llm/embedding_model.rb', line 12 def initialize(provider:, model:) @provider = provider @model = model end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
8 9 10 |
# File 'lib/conductor/workflow/llm/embedding_model.rb', line 8 def model @model end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
8 9 10 |
# File 'lib/conductor/workflow/llm/embedding_model.rb', line 8 def provider @provider end |