Class DenseVectorIndexOptions.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DenseVectorIndexOptions.Builder>
co.elastic.clients.elasticsearch._types.mapping.DenseVectorIndexOptions.Builder
- All Implemented Interfaces:
WithJson<DenseVectorIndexOptions.Builder>,ObjectBuilder<DenseVectorIndexOptions>
- Enclosing class:
- DenseVectorIndexOptions
public static class DenseVectorIndexOptions.Builder
extends WithJsonObjectBuilderBase<DenseVectorIndexOptions.Builder>
implements ObjectBuilder<DenseVectorIndexOptions>
Builder for
DenseVectorIndexOptions.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDenseVectorIndexOptions.confidenceInterval(Float value) The confidence interval to use when quantizing the vectors.efConstruction(Integer value) The number of candidates to track while assembling the list of nearest neighbors for each new node.The number of neighbors each node will be connected to in the HNSW graph.protected DenseVectorIndexOptions.Builderself()type(DenseVectorIndexOptionsType value) Required - The type of kNN algorithm to use.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
confidenceInterval
The confidence interval to use when quantizing the vectors. Can be any value between and including0.90and1.0or exactly0. When the value is0, this indicates that dynamic quantiles should be calculated for optimized quantization. When between0.90and1.0, this value restricts the values used when calculating the quantization thresholds.For example, a value of
0.95will only use the middle95%of the values when calculating the quantization thresholds (e.g. the highest and lowest2.5%of values will be ignored).Defaults to
1/(dims + 1)forint8quantized vectors and0forint4for dynamic quantile calculation.Only applicable to
int8_hnsw,int4_hnsw,int8_flat, andint4_flatindex types.API name:
confidence_interval -
efConstruction
The number of candidates to track while assembling the list of nearest neighbors for each new node.Only applicable to
hnsw,int8_hnsw,bbq_hnsw, andint4_hnswindex types.API name:
ef_construction -
m
The number of neighbors each node will be connected to in the HNSW graph.Only applicable to
hnsw,int8_hnsw,bbq_hnsw, andint4_hnswindex types.API name:
m -
type
Required - The type of kNN algorithm to use.API name:
type -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DenseVectorIndexOptions.Builder>
-
build
Builds aDenseVectorIndexOptions.- Specified by:
buildin interfaceObjectBuilder<DenseVectorIndexOptions>- Throws:
NullPointerException- if some of the required fields are null.
-