Class TransformersEmbeddingModelProperties
java.lang.Object
org.springframework.ai.autoconfigure.transformers.TransformersEmbeddingModelProperties
@ConfigurationProperties("spring.ai.embedding.transformer")
public class TransformersEmbeddingModelProperties
extends Object
Configuration properties for the Transformer Embedding model.
- Author:
- Christian Tzolov
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
Configurations for theHuggingFaceTokenizer
used to convert sentences into tokens. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCache()
getOnnx()
boolean
void
setEnabled
(boolean enabled) void
setMetadataMode
(MetadataMode metadataMode)
-
Field Details
-
CONFIG_PREFIX
- See Also:
-
DEFAULT_CACHE_DIRECTORY
-
-
Constructor Details
-
TransformersEmbeddingModelProperties
public TransformersEmbeddingModelProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getCache
-
getOnnx
-
getTokenizer
-
getMetadataMode
-
setMetadataMode
-