Class AzureMachineLearningVectorizer
java.lang.Object
com.azure.search.documents.indexes.models.VectorSearchVectorizer
com.azure.search.documents.indexes.models.AzureMachineLearningVectorizer
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VectorSearchVectorizer>
Specifies an Azure Machine Learning endpoint deployed via the Azure AI Foundry Model Catalog for generating the
vector embedding of a query string.
-
Constructor Summary
ConstructorsConstructorDescriptionAzureMachineLearningVectorizer(String vectorizerName) Creates an instance of AzureMachineLearningVectorizer class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AzureMachineLearningVectorizer from the JsonReader.Get the aMLParameters property: Specifies the properties of the AML vectorizer.getKind()Get the kind property: The name of the kind of vectorization method being configured for use with vector search.setAMLParameters(AzureMachineLearningParameters aMLParameters) Set the aMLParameters property: Specifies the properties of the AML vectorizer.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.search.documents.indexes.models.VectorSearchVectorizer
getVectorizerNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AzureMachineLearningVectorizer
Creates an instance of AzureMachineLearningVectorizer class.- Parameters:
vectorizerName- the vectorizerName value to set.
-
-
Method Details
-
getKind
Get the kind property: The name of the kind of vectorization method being configured for use with vector search.- Overrides:
getKindin classVectorSearchVectorizer- Returns:
- the kind value.
-
getAMLParameters
Get the aMLParameters property: Specifies the properties of the AML vectorizer.- Returns:
- the aMLParameters value.
-
setAMLParameters
public AzureMachineLearningVectorizer setAMLParameters(AzureMachineLearningParameters aMLParameters) Set the aMLParameters property: Specifies the properties of the AML vectorizer.- Parameters:
aMLParameters- the aMLParameters value to set.- Returns:
- the AzureMachineLearningVectorizer object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VectorSearchVectorizer>- Overrides:
toJsonin classVectorSearchVectorizer- Throws:
IOException
-
fromJson
public static AzureMachineLearningVectorizer fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AzureMachineLearningVectorizer from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AzureMachineLearningVectorizer if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the AzureMachineLearningVectorizer.
-