Registry

This module contains functionality related to the the registry module for embedding.embedders.

Registry

EmbedderRegistry

Bases: Registry

Registry for managing embedding models.

This registry stores and provides access to embedding model implementations based on their corresponding EmbedderName enumeration values. It extends the base Registry class to provide type-safe access to embedders.

Attributes:
  • _key_class (Type) –

    The class type used as keys in the registry, which is EmbedderName enum in this case.

Source code in src/embedding/embedders/registry.py
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
class EmbedderRegistry(Registry):
    """Registry for managing embedding models.

    This registry stores and provides access to embedding model implementations
    based on their corresponding EmbedderName enumeration values. It extends the
    base Registry class to provide type-safe access to embedders.

    Attributes:
        _key_class (Type): The class type used as keys in the registry, which is
            EmbedderName enum in this case.
    """

    _key_class: Type = EmbedderName