Class AsymmetricTextEmbeddingParameters

java.lang.Object
org.opensearch.ml.common.dataset.AsymmetricTextEmbeddingParameters
All Implemented Interfaces:
org.opensearch.core.common.io.stream.NamedWriteable, org.opensearch.core.common.io.stream.Writeable, org.opensearch.core.xcontent.ToXContent, org.opensearch.core.xcontent.ToXContentObject, MLAlgoParams

public class AsymmetricTextEmbeddingParameters extends Object implements MLAlgoParams
This class defines the modes of operation of an asymmetric text embedding model. Asymmetric embedding models treat the input text differently, depending on whether it is a passage or a query. One example asymmetric model, that requires different prefixes is e5 (cf. https://arxiv.org/pdf/2212.03533.pdf).

Use this parameter only if the model is asymmetric and has been registered with the corresponding `query_prefix` and `passage_prefix` configuration parameters.