Class RRFRetrieverComponent
java.lang.Object
co.elastic.clients.elasticsearch._types.RRFRetrieverComponent
- All Implemented Interfaces:
JsonpSerializable
Wraps a retriever with an optional weight for RRF scoring.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<RRFRetrieverComponent>Json deserializer forRRFRetrieverComponent -
Method Summary
Modifier and TypeMethodDescriptionstatic RRFRetrieverComponentrebuild()final RetrieverRequired - The nested retriever configuration.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()final Floatweight()Weight multiplier for this retriever's contribution to the RRF score.
-
Field Details
-
_DESERIALIZER
Json deserializer forRRFRetrieverComponent
-
-
Method Details
-
of
public static RRFRetrieverComponent of(Function<RRFRetrieverComponent.Builder, ObjectBuilder<RRFRetrieverComponent>> fn) -
retriever
Required - The nested retriever configuration.API name:
retriever -
weight
Weight multiplier for this retriever's contribution to the RRF score. Higher values increase influence. Defaults to 1.0 if not specified. Must be non-negative.API name:
weight -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
rebuild
- Returns:
- New
RRFRetrieverComponent.Builderinitialized with field values of this instance
-
setupRRFRetrieverComponentDeserializer
protected static void setupRRFRetrieverComponentDeserializer(ObjectDeserializer<RRFRetrieverComponent.Builder> op)
-