Interface Langchain4jEmbeddingstoreComponentBuilderFactory.Langchain4jEmbeddingstoreComponentBuilder
- All Superinterfaces:
ComponentBuilder<org.apache.camel.component.langchain4j.embeddingstore.LangChain4jEmbeddingStoreComponent>
- All Known Implementing Classes:
Langchain4jEmbeddingstoreComponentBuilderFactory.Langchain4jEmbeddingstoreComponentBuilderImpl
- Enclosing interface:
Langchain4jEmbeddingstoreComponentBuilderFactory
public static interface Langchain4jEmbeddingstoreComponentBuilderFactory.Langchain4jEmbeddingstoreComponentBuilder
extends ComponentBuilder<org.apache.camel.component.langchain4j.embeddingstore.LangChain4jEmbeddingStoreComponent>
Builder for the LangChain4j Embedding Store component.
-
Method Summary
Modifier and TypeMethodDescriptionaction(org.apache.camel.component.langchain4j.embeddingstore.LangChain4jEmbeddingStoreAction action) The operation to perform: ADD, REMOVE, or SEARCH.autowiredEnabled(boolean autowiredEnabled) Whether autowiring is enabled.configuration(org.apache.camel.component.langchain4j.embeddingstore.LangChain4jEmbeddingStoreConfiguration configuration) The configuration;.embeddingStore(dev.langchain4j.store.embedding.EmbeddingStore<dev.langchain4j.data.segment.TextSegment> embeddingStore) Direct embedding store instance for vector operations.embeddingStoreFactory(org.apache.camel.component.langchain4j.embeddingstore.EmbeddingStoreFactory embeddingStoreFactory) The embedding store factory to use for creating embedding stores if no embeddingstore is provided.lazyStartProducer(boolean lazyStartProducer) Whether the producer should be started lazy (on the first message).maxResults(Integer maxResults) Maximum number of results to return for SEARCH operation.Minimum similarity score threshold for SEARCH operation (0.0 to 1.0).returnTextContent(boolean returnTextContent) When true, SEARCH returns List with text content instead of List.Methods inherited from interface org.apache.camel.builder.component.ComponentBuilder
build, build, doSetProperty, register
-
Method Details
-
action
default Langchain4jEmbeddingstoreComponentBuilderFactory.Langchain4jEmbeddingstoreComponentBuilder action(org.apache.camel.component.langchain4j.embeddingstore.LangChain4jEmbeddingStoreAction action) The operation to perform: ADD, REMOVE, or SEARCH. The option is a: <code>org.apache.camel.component.langchain4j.embeddingstore.LangChain4jEmbeddingStoreAction</code> type. Group: producer- Parameters:
action- the value to set- Returns:
- the dsl builder
-
configuration
default Langchain4jEmbeddingstoreComponentBuilderFactory.Langchain4jEmbeddingstoreComponentBuilder configuration(org.apache.camel.component.langchain4j.embeddingstore.LangChain4jEmbeddingStoreConfiguration configuration) The configuration;. The option is a: <code>org.apache.camel.component.langchain4j.embeddingstore.LangChain4jEmbeddingStoreConfiguration</code> type. Group: producer- Parameters:
configuration- the value to set- Returns:
- the dsl builder
-
embeddingStore
default Langchain4jEmbeddingstoreComponentBuilderFactory.Langchain4jEmbeddingstoreComponentBuilder embeddingStore(dev.langchain4j.store.embedding.EmbeddingStore<dev.langchain4j.data.segment.TextSegment> embeddingStore) Direct embedding store instance for vector operations. The option is a: <code>dev.langchain4j.store.embedding.EmbeddingStore<dev.langchain4j.data.segment.TextSegment></code> type. Group: producer- Parameters:
embeddingStore- the value to set- Returns:
- the dsl builder
-
embeddingStoreFactory
default Langchain4jEmbeddingstoreComponentBuilderFactory.Langchain4jEmbeddingstoreComponentBuilder embeddingStoreFactory(org.apache.camel.component.langchain4j.embeddingstore.EmbeddingStoreFactory embeddingStoreFactory) The embedding store factory to use for creating embedding stores if no embeddingstore is provided. The option is a: <code>org.apache.camel.component.langchain4j.embeddingstore.EmbeddingStoreFactory</code> type. Group: producer- Parameters:
embeddingStoreFactory- the value to set- Returns:
- the dsl builder
-
lazyStartProducer
default Langchain4jEmbeddingstoreComponentBuilderFactory.Langchain4jEmbeddingstoreComponentBuilder lazyStartProducer(boolean lazyStartProducer) Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
lazyStartProducer- the value to set- Returns:
- the dsl builder
-
maxResults
default Langchain4jEmbeddingstoreComponentBuilderFactory.Langchain4jEmbeddingstoreComponentBuilder maxResults(Integer maxResults) Maximum number of results to return for SEARCH operation. The option is a: <code>java.lang.Integer</code> type. Default: 5 Group: producer- Parameters:
maxResults- the value to set- Returns:
- the dsl builder
-
minScore
default Langchain4jEmbeddingstoreComponentBuilderFactory.Langchain4jEmbeddingstoreComponentBuilder minScore(Double minScore) Minimum similarity score threshold for SEARCH operation (0.0 to 1.0). The option is a: <code>java.lang.Double</code> type. Group: producer- Parameters:
minScore- the value to set- Returns:
- the dsl builder
-
returnTextContent
default Langchain4jEmbeddingstoreComponentBuilderFactory.Langchain4jEmbeddingstoreComponentBuilder returnTextContent(boolean returnTextContent) When true, SEARCH returns List with text content instead of List. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
returnTextContent- the value to set- Returns:
- the dsl builder
-
autowiredEnabled
default Langchain4jEmbeddingstoreComponentBuilderFactory.Langchain4jEmbeddingstoreComponentBuilder autowiredEnabled(boolean autowiredEnabled) Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. The option is a: <code>boolean</code> type. Default: true Group: advanced- Parameters:
autowiredEnabled- the value to set- Returns:
- the dsl builder
-