Class TransformersEmbeddingClientAutoConfiguration
java.lang.Object
org.springframework.ai.autoconfigure.transformers.TransformersEmbeddingClientAutoConfiguration
@AutoConfiguration
@EnableConfigurationProperties(TransformersEmbeddingClientProperties.class)
@ConditionalOnClass({ai.onnxruntime.OrtSession.class,ai.djl.huggingface.tokenizers.HuggingFaceTokenizer.class})
public class TransformersEmbeddingClientAutoConfiguration
extends Object
- Author:
- Christian Tzolov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionembeddingClient
(TransformersEmbeddingClientProperties properties)
-
Constructor Details
-
TransformersEmbeddingClientAutoConfiguration
public TransformersEmbeddingClientAutoConfiguration()
-
-
Method Details
-
embeddingClient
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.ai.embedding.transformer", name="enabled", havingValue="true", matchIfMissing=true) public TransformersEmbeddingClient embeddingClient(TransformersEmbeddingClientProperties properties)
-