Iembedding¶
Classes¶
- class arshai.core.interfaces.iembedding.EmbeddingConfig(**data)[source]¶
Bases:
IDTOConfiguration for embedding services.
- model_config: ClassVar[ConfigDict] = {'allow_mutation': False, 'arbitrary_types_allowed': True, 'smart_union': True, 'validate_assignment': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class arshai.core.interfaces.iembedding.IEmbedding(*args, **kwargs)[source]¶
Bases:
ProtocolInterface defining the contract for embedding services. Any embedding service implementation must conform to this interface.
- property dimension: int¶
Get the dimension of embeddings produced by this service.
- Returns:
Dimension of the embedding vectors
- Return type:
- __init__(*args, **kwargs)¶