Class DenseVectorIndexOptionsRescoreVector
java.lang.Object
co.elastic.clients.elasticsearch._types.mapping.DenseVectorIndexOptionsRescoreVector
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class DenseVectorIndexOptionsRescoreVector
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<DenseVectorIndexOptionsRescoreVector>Json deserializer forDenseVectorIndexOptionsRescoreVector -
Method Summary
Modifier and TypeMethodDescriptionof(Function<DenseVectorIndexOptionsRescoreVector.Builder, ObjectBuilder<DenseVectorIndexOptionsRescoreVector>> fn) final floatRequired - The oversampling factor to use when searching for the nearest neighbor.rebuild()voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupDenseVectorIndexOptionsRescoreVectorDeserializer(ObjectDeserializer<DenseVectorIndexOptionsRescoreVector.Builder> op) toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forDenseVectorIndexOptionsRescoreVector
-
-
Method Details
-
of
-
oversample
public final float oversample()Required - The oversampling factor to use when searching for the nearest neighbor. This is only applicable to the quantized formats:bbq_*,int4_*, andint8_*. When provided,oversample * kvectors will be gathered and then their scores will be re-computed with the original vectors.valid values are between
1.0and10.0(inclusive), or0exactly to disable oversampling.API name:
oversample -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
rebuild
- Returns:
- New
DenseVectorIndexOptionsRescoreVector.Builderinitialized with field values of this instance
-
setupDenseVectorIndexOptionsRescoreVectorDeserializer
protected static void setupDenseVectorIndexOptionsRescoreVectorDeserializer(ObjectDeserializer<DenseVectorIndexOptionsRescoreVector.Builder> op)
-