Class IvfIndexConfig.BuilderBase<BUILDER extends IvfIndexConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends IvfIndexConfig>

java.lang.Object
io.helidon.integrations.langchain4j.providers.oracle.IvfIndexConfig.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>, ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Direct Known Subclasses:
IvfIndexConfig.Builder
Enclosing interface:
IvfIndexConfig

public abstract static class IvfIndexConfig.BuilderBase<BUILDER extends IvfIndexConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends IvfIndexConfig> extends Object implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for IvfIndexConfig.
  • Constructor Details

    • BuilderBase

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

    • from

      public BUILDER from(IvfIndexConfig 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(IvfIndexConfig.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

      @Deprecated 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 IvfIndexConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends IvfIndexConfig>
      Parameters:
      config - configuration instance used to obtain values to update this builder
      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 IvfIndexConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends IvfIndexConfig>
      Parameters:
      config - configuration instance used to obtain values to update this builder
      Returns:
      updated builder instance
    • clearNeighborPartitions

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

      public BUILDER neighborPartitions(int neighborPartitions)
      Generated from IVFIndexBuilder.neighborPartitions(int)
      Parameters:
      neighborPartitions - int property
      Returns:
      updated builder instance
      See Also:
    • clearTargetAccuracy

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

      public BUILDER targetAccuracy(int targetAccuracy)
      Generated from IVFIndexBuilder.targetAccuracy(int)
      Parameters:
      targetAccuracy - int property
      Returns:
      updated builder instance
      See Also:
    • clearSamplePerPartition

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

      public BUILDER samplePerPartition(int samplePerPartition)
      Generated from IVFIndexBuilder.samplePerPartition(int)
      Parameters:
      samplePerPartition - int property
      Returns:
      updated builder instance
      See Also:
    • clearMinVectorsPerPartition

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

      public BUILDER minVectorsPerPartition(int minVectorsPerPartition)
      Generated from IVFIndexBuilder.minVectorsPerPartition(int)
      Parameters:
      minVectorsPerPartition - int property
      Returns:
      updated builder instance
      See Also:
    • clearName

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

      public BUILDER name(String name)
      Generated from IndexBuilder.name(java.lang.String)
      Parameters:
      name - String property
      Returns:
      updated builder instance
      See Also:
    • clearDegreeOfParallelism

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

      public BUILDER degreeOfParallelism(int degreeOfParallelism)
      Generated from IVFIndexBuilder.degreeOfParallelism(int)
      Parameters:
      degreeOfParallelism - int property
      Returns:
      updated builder instance
      See Also:
    • clearCreateOption

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

      public BUILDER createOption(dev.langchain4j.store.embedding.oracle.CreateOption createOption)
      Generated from IndexBuilder.createOption(dev.langchain4j.store.embedding.oracle.CreateOption)
      Parameters:
      createOption - CreateOption property
      Returns:
      updated builder instance
      See Also:
    • neighborPartitions

      public Optional<Integer> neighborPartitions()
      Generated from IVFIndexBuilder.neighborPartitions(int)
      Returns:
      the neighbor partitions
    • targetAccuracy

      public Optional<Integer> targetAccuracy()
      Generated from IVFIndexBuilder.targetAccuracy(int)
      Returns:
      the target accuracy
    • samplePerPartition

      public Optional<Integer> samplePerPartition()
      Generated from IVFIndexBuilder.samplePerPartition(int)
      Returns:
      the sample per partition
    • minVectorsPerPartition

      public Optional<Integer> minVectorsPerPartition()
      Generated from IVFIndexBuilder.minVectorsPerPartition(int)
      Returns:
      the min vectors per partition
    • name

      public Optional<String> name()
      Generated from IndexBuilder.name(java.lang.String)
      Returns:
      the name
    • degreeOfParallelism

      public Optional<Integer> degreeOfParallelism()
      Generated from IVFIndexBuilder.degreeOfParallelism(int)
      Returns:
      the degree of parallelism
    • createOption

      public Optional<dev.langchain4j.store.embedding.oracle.CreateOption> createOption()
      Generated from IndexBuilder.createOption(dev.langchain4j.store.embedding.oracle.CreateOption)
      Returns:
      the 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.