Class: Conductor::Workflow::Llm::EmbeddingModel

Inherits:
Object
  • Object
show all
Defined in:
lib/conductor/workflow/llm/embedding_model.rb

Overview

EmbeddingModel encapsulates the provider and model name for embeddings

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(provider:, model:) ⇒ EmbeddingModel

Returns a new instance of EmbeddingModel.

Parameters:

  • provider (String)

    The embedding provider name (e.g. 'openai')

  • model (String)

    The model name (e.g. 'text-embedding-ada-002')



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

#modelObject (readonly)

Returns the value of attribute model.



8
9
10
# File 'lib/conductor/workflow/llm/embedding_model.rb', line 8

def model
  @model
end

#providerObject (readonly)

Returns the value of attribute provider.



8
9
10
# File 'lib/conductor/workflow/llm/embedding_model.rb', line 8

def provider
  @provider
end