Class RRFRetriever.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RetrieverBase.AbstractBuilder<RRFRetriever.Builder>
co.elastic.clients.elasticsearch._types.RRFRetriever.Builder
- All Implemented Interfaces:
WithJson<RRFRetriever.Builder>,ObjectBuilder<RRFRetriever>
- Enclosing class:
- RRFRetriever
public static class RRFRetriever.Builder
extends RetrieverBase.AbstractBuilder<RRFRetriever.Builder>
implements ObjectBuilder<RRFRetriever>
Builder for
RRFRetriever.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRRFRetriever.final RRFRetriever.BuilderAPI name:fieldsfinal RRFRetriever.BuilderAPI name:fieldsfinal RRFRetriever.BuilderAPI name:queryfinal RRFRetriever.BuilderrankConstant(Integer value) This value determines how much influence documents in individual result sets per query have over the final ranked result set.final RRFRetriever.BuilderrankWindowSize(Integer value) This value determines the size of the individual result sets per query.final RRFRetriever.Builderretrievers(Retriever value, Retriever... values) Required - A list of child retrievers to specify which sets of returned top documents will have the RRF formula applied to them.final RRFRetriever.Builderretrievers(RetrieverVariant value, RetrieverVariant... values) Required - A list of child retrievers to specify which sets of returned top documents will have the RRF formula applied to them.final RRFRetriever.BuilderRequired - A list of child retrievers to specify which sets of returned top documents will have the RRF formula applied to them.final RRFRetriever.Builderretrievers(List<Retriever> list) Required - A list of child retrievers to specify which sets of returned top documents will have the RRF formula applied to them.protected RRFRetriever.Builderself()Methods inherited from class co.elastic.clients.elasticsearch._types.RetrieverBase.AbstractBuilder
filter, filter, filter, filter, minScore, nameMethods 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
-
retrievers
Required - A list of child retrievers to specify which sets of returned top documents will have the RRF formula applied to them.API name:
retrieversAdds all elements of
listtoretrievers. -
retrievers
Required - A list of child retrievers to specify which sets of returned top documents will have the RRF formula applied to them.API name:
retrieversAdds one or more values to
retrievers. -
retrievers
Required - A list of child retrievers to specify which sets of returned top documents will have the RRF formula applied to them.API name:
retrieversAdds one or more values to
retrievers. -
retrievers
public final RRFRetriever.Builder retrievers(Function<Retriever.Builder, ObjectBuilder<Retriever>> fn) Required - A list of child retrievers to specify which sets of returned top documents will have the RRF formula applied to them.API name:
retrieversAdds a value to
retrieversusing a builder lambda. -
rankConstant
This value determines how much influence documents in individual result sets per query have over the final ranked result set.API name:
rank_constant -
rankWindowSize
This value determines the size of the individual result sets per query.API name:
rank_window_size -
query
API name:query -
fields
API name:fieldsAdds all elements of
listtofields. -
fields
API name:fieldsAdds one or more values to
fields. -
self
- Specified by:
selfin classRetrieverBase.AbstractBuilder<RRFRetriever.Builder>
-
build
Builds aRRFRetriever.- Specified by:
buildin interfaceObjectBuilder<RRFRetriever>- Throws:
NullPointerException- if some of the required fields are null.
-