Class TextSimilarityReranker
java.lang.Object
co.elastic.clients.elasticsearch._types.RetrieverBase
co.elastic.clients.elasticsearch._types.TextSimilarityReranker
- All Implemented Interfaces:
RetrieverVariant,JsonpSerializable
@JsonpDeserializable
public class TextSimilarityReranker
extends RetrieverBase
implements RetrieverVariant
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RetrieverBase
RetrieverBase.AbstractBuilder<BuilderT extends RetrieverBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TextSimilarityReranker>Json deserializer forTextSimilarityReranker -
Method Summary
Modifier and TypeMethodDescriptionRetriever variant kind.final Stringfield()Required - The document field to be used for text similarity comparisons.final StringUnique identifier of the inference endpoint created using the inference API.final StringRequired - The text snippet used as the basis for similarity comparisonstatic TextSimilarityRerankerfinal IntegerThis value determines how many documents we will consider from the nested retriever.final RetrieverRequired - The nested retriever which will produce the first-level results, that will later be used for reranking.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidMethods inherited from class co.elastic.clients.elasticsearch._types.RetrieverBase
filter, minScore, name, serialize, setupRetrieverBaseDeserializer, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch._types.RetrieverVariant
_toRetriever
-
Field Details
-
_DESERIALIZER
Json deserializer forTextSimilarityReranker
-
-
Method Details
-
of
public static TextSimilarityReranker of(Function<TextSimilarityReranker.Builder, ObjectBuilder<TextSimilarityReranker>> fn) -
_retrieverKind
Retriever variant kind.- Specified by:
_retrieverKindin interfaceRetrieverVariant
-
retriever
Required - The nested retriever which will produce the first-level results, that will later be used for reranking.API name:
retriever -
rankWindowSize
This value determines how many documents we will consider from the nested retriever.API name:
rank_window_size -
inferenceId
Unique identifier of the inference endpoint created using the inference API.API name:
inference_id -
inferenceText
Required - The text snippet used as the basis for similarity comparisonAPI name:
inference_text -
field
Required - The document field to be used for text similarity comparisons. This field should contain the text that will be evaluated against the inference_textAPI name:
field -
serializeInternal
- Overrides:
serializeInternalin classRetrieverBase
-
setupTextSimilarityRerankerDeserializer
protected static void setupTextSimilarityRerankerDeserializer(ObjectDeserializer<TextSimilarityReranker.Builder> op)
-