Base class for all embedding model implementations

Hierarchy (view full)

Constructors

Properties

_additionalSettings: Record<string, any> = {}

Protected property to store additional provider-specific settings

Accessors

  • get AdditionalSettings(): Record<string, any>
  • Get the current additional settings

    Returns Record<string, any>

  • get apiKey(): string
  • Only sub-classes can access the API key

    Returns string

Methods

  • Clear all additional settings This is useful for resetting the state of the provider or when switching between different configurations.

    Returns void

  • Set additional provider-specific settings Subclasses should override this method to validate required settings

    Parameters

    • settings: Record<string, any>

      Provider-specific settings

    Returns void