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 builder
PROTOTYPE - type of the prototype interface that would be built by Prototype.Builder.buildPrototype()
All Implemented Interfaces:
Prototype.Builder<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.
  • Constructor Details

    • BuilderBase

      protected BuilderBase()
      Protected to support extensibility.
  • Method Details

    • from

      public BUILDER from(OracleEmbeddingStoreConfig prototype)
      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

      public BUILDER from(OracleEmbeddingStoreConfig.BuilderBase<?,?> builder)
      Update this builder from an existing prototype builder instance.
      Parameters:
      builder - existing builder prototype to update this builder from
      Returns:
      updated builder instance
    • config

      public BUILDER config(Config config)
      Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.
      Specified by:
      config in interface ConfigBuilderSupport.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

      public BUILDER enabled(boolean enabled)
      If set to true, Oracle embedding store will be enabled.
      Parameters:
      enabled - whether Oracle embedding store is enabled, defaults to false
      Returns:
      updated builder instance
      See Also:
    • clearDataSource

      public BUILDER clearDataSource()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • dataSource

      public BUILDER dataSource(String dataSource)
      The data source name used for connecting to the Oracle embedding store.
      Parameters:
      dataSource - an Optional containing the datasource name qualifier
      Returns:
      updated builder instance
      See Also:
    • clearEmbeddingTable

      public BUILDER clearEmbeddingTable()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • embeddingTable

      public BUILDER embeddingTable(OracleEmbeddingTableConfig embeddingTable)
      Properties of the embedding table associated with the Oracle embedding store.
      Parameters:
      embeddingTable - an Optional containing the OracleEmbeddingTableConfig representing table properties
      Returns:
      updated builder instance
      See Also:
    • embeddingTable

      public BUILDER embeddingTable(Consumer<OracleEmbeddingTableConfig.Builder> consumer)
      Properties of the embedding table associated with the Oracle embedding store.
      Parameters:
      consumer - an Optional containing the OracleEmbeddingTableConfig representing table properties
      Returns:
      updated builder instance
      See Also:
    • clearExactSearch

      public BUILDER clearExactSearch()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • exactSearch

      public BUILDER exactSearch(boolean exactSearch)
      The exact search option, which specifies whether exact matching is used in searches.
      Parameters:
      exactSearch - an Optional containing the exact search option if set; otherwise, an empty Optional
      Returns:
      updated builder instance
      See Also:
    • clearVectorIndexCreateOption

      public BUILDER clearVectorIndexCreateOption()
      Clear existing value of this property.
      Returns:
      updated builder instance
      See Also:
    • vectorIndexCreateOption

      public BUILDER vectorIndexCreateOption(dev.langchain4j.store.embedding.oracle.CreateOption vectorIndexCreateOption)
      The vector index creation option, which defines behavior when creating the vector index.
      Parameters:
      vectorIndexCreateOption - an Optional containing the vector index creation option if set; otherwise, an empty Optional
      Returns:
      updated builder instance
      See Also:
    • enabled

      public boolean enabled()
      If set to true, Oracle embedding store will be enabled.
      Returns:
      the enabled
    • dataSource

      public Optional<String> dataSource()
      The data source name used for connecting to the Oracle embedding store.
      Returns:
      the data source
    • embeddingTable

      public Optional<OracleEmbeddingTableConfig> embeddingTable()
      Properties of the embedding table associated with the Oracle embedding store.
      Returns:
      the embedding table
    • exactSearch

      public Optional<Boolean> exactSearch()
      The exact search option, which specifies whether exact matching is used in searches.
      Returns:
      the exact search
    • vectorIndexCreateOption

      public Optional<dev.langchain4j.store.embedding.oracle.CreateOption> vectorIndexCreateOption()
      The vector index creation option, which defines behavior when creating the vector index.
      Returns:
      the vector index create option
    • config

      public Optional<Config> config()
      If this instance was configured, this would be the config instance used.
      Returns:
      config node used to configure this builder, or empty if not configured
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • preBuildPrototype

      protected void preBuildPrototype()
      Handles providers and decorators.
    • validatePrototype

      protected void validatePrototype()
      Validates required properties.