Class OracleEmbeddingStoreConfig.BuilderBase<BUILDER extends OracleEmbeddingStoreConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends OracleEmbeddingStoreConfig>
java.lang.Object
io.helidon.integrations.langchain4j.providers.oracle.OracleEmbeddingStoreConfig.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,,PROTOTYPE> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
- Direct Known Subclasses:
OracleEmbeddingStoreConfig.Builder
- Enclosing interface:
OracleEmbeddingStoreConfig
public abstract static class OracleEmbeddingStoreConfig.BuilderBase<BUILDER extends OracleEmbeddingStoreConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends OracleEmbeddingStoreConfig>
extends Object
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
OracleEmbeddingStoreConfig.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddIvfIndex(List<? extends IvfIndexConfig> ivfIndex) IVFIndex allows configuring an Inverted File Flat (IVF) index on the embedding column of theEmbeddingTable.addJsonIndex(List<? extends JsonIndexConfig> jsonIndex) JSONIndex allows configuring a function-based index on one or several keys of the metadata column of theEmbeddingTable.Clear existing value of embeddingTable.Clear existing value of exactSearch.Clear all ivfIndex.Clear all jsonIndex.Clear existing value of vectorIndex.Deprecated.config()Configuration used to configure this instance.Deprecated.Update builder from configuration (node of this type).Configures a data source that connects to an Oracle Database.dataSource(DataSource dataSource) Configures a data source that connects to an Oracle Database.booleanService discovery flag fordataSource().dataSourceDiscoverServices(boolean dataSourceDiscoverServices) Service discovery flag fordataSource().Configures a table used to store embeddings, text, and metadata.embeddingTable(EmbeddingTableConfig embeddingTable) Configures a table used to store embeddings, text, and metadata.embeddingTable(Consumer<EmbeddingTableConfig.Builder> consumer) Configures a table used to store embeddings, text, and metadata.embeddingTable(Supplier<? extends EmbeddingTableConfig> supplier) Configures a table used to store embeddings, text, and metadata.booleanenabled()If set tofalse, OracleEmbeddingStore will not be available even if configured.enabled(boolean enabled) If set tofalse, OracleEmbeddingStore will not be available even if configured.Generated fromOracleEmbeddingStore.Builder.exactSearch(boolean)exactSearch(boolean exactSearch) Generated fromOracleEmbeddingStore.Builder.exactSearch(boolean)from(OracleEmbeddingStoreConfig prototype) Update this builder from an existing prototype instance.from(OracleEmbeddingStoreConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.ivfIndex()IVFIndex allows configuring an Inverted File Flat (IVF) index on the embedding column of theEmbeddingTable.ivfIndex(List<? extends IvfIndexConfig> ivfIndex) IVFIndex allows configuring an Inverted File Flat (IVF) index on the embedding column of theEmbeddingTable.JSONIndex allows configuring a function-based index on one or several keys of the metadata column of theEmbeddingTable.jsonIndex(List<? extends JsonIndexConfig> jsonIndex) JSONIndex allows configuring a function-based index on one or several keys of the metadata column of theEmbeddingTable.protected voidHandles providers and decorators.Service registry used to discover providers and services.serviceRegistry(ServiceRegistry serviceRegistry) Service registry used to discover providers and services.toString()protected voidValidates required properties.Optional<dev.langchain4j.store.embedding.oracle.CreateOption> The vector index creation option, which defines behavior when creating the vector index.vectorIndex(dev.langchain4j.store.embedding.oracle.CreateOption vectorIndex) The vector index creation option, which defines behavior when creating the vector index.Optional<dev.langchain4j.store.embedding.oracle.CreateOption> Deprecated.This option is deprecated, usevectorIndexinsteadvectorIndexCreateOption(dev.langchain4j.store.embedding.oracle.CreateOption vectorIndexCreateOption) Deprecated.This option is deprecated, usevectorIndexinsteadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
config
Deprecated.Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends OracleEmbeddingStoreConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends OracleEmbeddingStoreConfig> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends OracleEmbeddingStoreConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends OracleEmbeddingStoreConfig> - Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
enabled
If set tofalse, OracleEmbeddingStore will not be available even if configured.- Parameters:
enabled- whether OracleEmbeddingStore is enabled, defaults totrue- Returns:
- updated builder instance
- See Also:
-
clearExactSearch
Clear existing value of exactSearch.- Returns:
- updated builder instance
- See Also:
-
exactSearch
Generated fromOracleEmbeddingStore.Builder.exactSearch(boolean)- Parameters:
exactSearch- boolean property- Returns:
- updated builder instance
- See Also:
-
clearEmbeddingTable
Clear existing value of embeddingTable.- Returns:
- updated builder instance
- See Also:
-
embeddingTable
Configures a table used to store embeddings, text, and metadata. -
embeddingTable
Configures a table used to store embeddings, text, and metadata. -
embeddingTable
Configures a table used to store embeddings, text, and metadata. -
clearJsonIndex
Clear all jsonIndex.- Returns:
- updated builder instance
- See Also:
-
jsonIndex
JSONIndex allows configuring a function-based index on one or several keys of the metadata column of theEmbeddingTable. The function used to index a key is the same as the function used for searching on the store.- Parameters:
jsonIndex- a list of json indexes- Returns:
- updated builder instance
- See Also:
-
addJsonIndex
JSONIndex allows configuring a function-based index on one or several keys of the metadata column of theEmbeddingTable. The function used to index a key is the same as the function used for searching on the store.- Parameters:
jsonIndex- a list of json indexes- Returns:
- updated builder instance
- See Also:
-
clearIvfIndex
Clear all ivfIndex.- Returns:
- updated builder instance
- See Also:
-
ivfIndex
IVFIndex allows configuring an Inverted File Flat (IVF) index on the embedding column of theEmbeddingTable.- Parameters:
ivfIndex- a list of ivf indexes- Returns:
- updated builder instance
- See Also:
-
addIvfIndex
IVFIndex allows configuring an Inverted File Flat (IVF) index on the embedding column of theEmbeddingTable.- Parameters:
ivfIndex- a list of ivf indexes- Returns:
- updated builder instance
- See Also:
-
clearVectorIndex
Clear existing value of vectorIndex.- Returns:
- updated builder instance
- See Also:
-
vectorIndex
The vector index creation option, which defines behavior when creating the vector index. -
clearVectorIndexCreateOption
Deprecated.This option is deprecated, usevectorIndexinsteadClear existing value of vectorIndexCreateOption.- Returns:
- updated builder instance
- See Also:
-
vectorIndexCreateOption
@Deprecated public BUILDER vectorIndexCreateOption(dev.langchain4j.store.embedding.oracle.CreateOption vectorIndexCreateOption) Deprecated.This option is deprecated, usevectorIndexinsteadConfigures the creation of an index on the embedding column of theEmbeddingTableused by the embedding store. Depending on which CreateOption is provided, an index may be created. The default createOption isCreateOption.CREATE_NONE. -
dataSource
Configures a data source that connects to an Oracle Database.- Parameters:
dataSource- Data source to configure. Not null.- Returns:
- updated builder instance
- See Also:
-
dataSourceDiscoverServices
Service discovery flag fordataSource(). If set totrue, services will be discovered from Java service loader, or Helidon ServiceRegistry.- Parameters:
dataSourceDiscoverServices- whether to enable automatic service discovery- Returns:
- updated builder instance
- See Also:
-
serviceRegistry
Service registry used to discover providers and services. Provide an explicit registry instance to use.If not configured, the
GlobalServiceRegistrywould be used to discover services.- Parameters:
serviceRegistry- service registry to use- Returns:
- updated builder instance
- See Also:
-
enabled
public boolean enabled()If set tofalse, OracleEmbeddingStore will not be available even if configured.- Returns:
- whether OracleEmbeddingStore is enabled, defaults to
true
-
exactSearch
Generated fromOracleEmbeddingStore.Builder.exactSearch(boolean)- Returns:
- boolean property
-
embeddingTable
Configures a table used to store embeddings, text, and metadata. -
jsonIndex
JSONIndex allows configuring a function-based index on one or several keys of the metadata column of theEmbeddingTable. The function used to index a key is the same as the function used for searching on the store.- Returns:
- a list of json indexes
-
ivfIndex
IVFIndex allows configuring an Inverted File Flat (IVF) index on the embedding column of theEmbeddingTable.- Returns:
- a list of ivf indexes
-
vectorIndex
The vector index creation option, which defines behavior when creating the vector index. -
vectorIndexCreateOption
@Deprecated public Optional<dev.langchain4j.store.embedding.oracle.CreateOption> vectorIndexCreateOption()Deprecated.This option is deprecated, usevectorIndexinsteadConfigures the creation of an index on the embedding column of theEmbeddingTableused by the embedding store. Depending on which CreateOption is provided, an index may be created. The default createOption isCreateOption.CREATE_NONE. -
dataSource
Configures a data source that connects to an Oracle Database.- Returns:
- Data source to configure. Not null.
-
dataSourceDiscoverServices
public boolean dataSourceDiscoverServices()Service discovery flag fordataSource(). If set totrue, services will be discovered from Java service loader, or Helidon ServiceRegistry.- Returns:
- whether to enable automatic service discovery
-
serviceRegistry
Service registry used to discover providers and services. Provide an explicit registry instance to use.If not configured, the
GlobalServiceRegistrywould be used to discover services.- Returns:
- service registry to use
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties. -
config
Configuration used to configure this instance.- Returns:
- config instance
-
vectorIndexinstead