Class FleetEmbeddingAutoConfiguration
java.lang.Object
ai.badmonkey.agentspaces.springai.autoconfigure.FleetEmbeddingAutoConfiguration
@AutoConfiguration(beforeName="ai.badmonkey.agentspaces.spring.AgentSpacesAutoConfiguration")
@ConditionalOnClass(org.springframework.ai.embedding.EmbeddingModel.class)
@ConditionalOnProperty(prefix="agentspaces.springai.embedder",
name="type",
havingValue="spring-ai")
@EnableConfigurationProperties(AgentSpacesSpringAiProperties.class)
public class FleetEmbeddingAutoConfiguration
extends Object
F5: with
agentspaces.springai.embedder.type=spring-ai, semantic
discovery ranks with the application's Spring AI EmbeddingModel.
Ordered before the AgentSpaces starter, whose default hashing embedder then
backs off.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionspringAiEmbedder(org.springframework.beans.factory.ObjectProvider<org.springframework.ai.embedding.EmbeddingModel> models, AgentSpacesSpringAiProperties properties) The embedder semantic discovery ranks with.
-
Constructor Details
-
FleetEmbeddingAutoConfiguration
public FleetEmbeddingAutoConfiguration()
-
-
Method Details
-
springAiEmbedder
@Bean @ConditionalOnMissingBean(ai.badmonkey.agentspaces.api.spi.Embedder.class) public SpringAiEmbedder springAiEmbedder(org.springframework.beans.factory.ObjectProvider<org.springframework.ai.embedding.EmbeddingModel> models, AgentSpacesSpringAiProperties properties) The embedder semantic discovery ranks with.- Parameters:
models- the application's embedding modelproperties- the properties- Returns:
- the embedder
-