Class WebApiVectorizer
java.lang.Object
com.azure.search.documents.indexes.models.VectorSearchVectorizer
com.azure.search.documents.indexes.models.WebApiVectorizer
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VectorSearchVectorizer>
Specifies a user-defined vectorizer for generating the vector embedding of a query string. Integration of an external
vectorizer is achieved using the custom Web API interface of a skillset.
-
Constructor Summary
ConstructorsConstructorDescriptionWebApiVectorizer(String vectorizerName) Creates an instance of WebApiVectorizer class. -
Method Summary
Modifier and TypeMethodDescriptionstatic WebApiVectorizerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WebApiVectorizer from the JsonReader.getKind()Get the kind property: The name of the kind of vectorization method being configured for use with vector search.Get the webApiParameters property: Specifies the properties of the user-defined vectorizer.setWebApiParameters(WebApiVectorizerParameters webApiParameters) Set the webApiParameters property: Specifies the properties of the user-defined 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
-
WebApiVectorizer
Creates an instance of WebApiVectorizer 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.
-
getWebApiParameters
Get the webApiParameters property: Specifies the properties of the user-defined vectorizer.- Returns:
- the webApiParameters value.
-
setWebApiParameters
Set the webApiParameters property: Specifies the properties of the user-defined vectorizer.- Parameters:
webApiParameters- the webApiParameters value to set.- Returns:
- the WebApiVectorizer object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VectorSearchVectorizer>- Overrides:
toJsonin classVectorSearchVectorizer- Throws:
IOException
-
fromJson
Reads an instance of WebApiVectorizer from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of WebApiVectorizer 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 WebApiVectorizer.
-