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 neighborPartitions.
      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 targetAccuracy.
      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 samplePerPartition.
      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 minVectorsPerPartition.
      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 name.
      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 degreeOfParallelism.
      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 createOption.
      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:
    • serviceRegistry

      public BUILDER serviceRegistry(ServiceRegistry serviceRegistry)
      Service registry used to discover providers and services. Provide an explicit registry instance to use.

      If not configured, the GlobalServiceRegistry would be used to discover services.

      Parameters:
      serviceRegistry - service registry to use
      Returns:
      updated builder instance
      See Also:
    • neighborPartitions

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

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

      public Optional<Integer> samplePerPartition()
      Generated from IVFIndexBuilder.samplePerPartition(int)
      Returns:
      int property
    • minVectorsPerPartition

      public Optional<Integer> minVectorsPerPartition()
      Generated from IVFIndexBuilder.minVectorsPerPartition(int)
      Returns:
      int property
    • name

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

      public Optional<Integer> degreeOfParallelism()
      Generated from IVFIndexBuilder.degreeOfParallelism(int)
      Returns:
      int property
    • createOption

      public Optional<dev.langchain4j.store.embedding.oracle.CreateOption> createOption()
      Generated from IndexBuilder.createOption(dev.langchain4j.store.embedding.oracle.CreateOption)
      Returns:
      CreateOption property
    • serviceRegistry

      public Optional<ServiceRegistry> serviceRegistry()
      Service registry used to discover providers and services. Provide an explicit registry instance to use.

      If not configured, the GlobalServiceRegistry would be used to discover services.

      Returns:
      service registry to use
    • toString

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

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

      protected void validatePrototype()
      Validates required properties.
    • config

      protected Optional<Config> config()
      Configuration used to configure this instance.
      Returns:
      config instance