Class RRFRetrieverComponent.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<RRFRetrieverComponent.Builder>
co.elastic.clients.elasticsearch._types.RRFRetrieverComponent.Builder
- All Implemented Interfaces:
WithJson<RRFRetrieverComponent.Builder>,ObjectBuilder<RRFRetrieverComponent>
- Enclosing class:
- RRFRetrieverComponent
public static class RRFRetrieverComponent.Builder
extends WithJsonObjectBuilderBase<RRFRetrieverComponent.Builder>
implements ObjectBuilder<RRFRetrieverComponent>
Builder for
RRFRetrieverComponent.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRRFRetrieverComponent.Required - The nested retriever configuration.retriever(RetrieverVariant value) Required - The nested retriever configuration.Required - The nested retriever configuration.protected RRFRetrieverComponent.Builderself()Weight multiplier for this retriever's contribution to the RRF score.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
-
retriever
Required - The nested retriever configuration.API name:
retriever -
retriever
public final RRFRetrieverComponent.Builder retriever(Function<Retriever.Builder, ObjectBuilder<Retriever>> fn) Required - The nested retriever configuration.API name:
retriever -
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 -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<RRFRetrieverComponent.Builder>
-
build
Builds aRRFRetrieverComponent.- Specified by:
buildin interfaceObjectBuilder<RRFRetrieverComponent>- Throws:
NullPointerException- if some of the required fields are null.
-