Class KnowledgeSourceVectorizer
java.lang.Object
com.azure.search.documents.indexes.models.KnowledgeSourceVectorizer
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KnowledgeSourceVectorizer>
- Direct Known Subclasses:
KnowledgeSourceAzureOpenAIVectorizer
public class KnowledgeSourceVectorizer
extends Object
implements com.azure.json.JsonSerializable<KnowledgeSourceVectorizer>
Specifies the vectorization method to be used for knowledge source embedding model, with optional name.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of KnowledgeSourceVectorizer class. -
Method Summary
Modifier and TypeMethodDescriptionstatic KnowledgeSourceVectorizerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KnowledgeSourceVectorizer from the JsonReader.getKind()Get the kind property: The name of the kind of vectorization method being configured for use with vector search.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class 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
-
KnowledgeSourceVectorizer
public KnowledgeSourceVectorizer()Creates an instance of KnowledgeSourceVectorizer class.
-
-
Method Details
-
getKind
Get the kind property: The name of the kind of vectorization method being configured for use with vector search.- Returns:
- the kind value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KnowledgeSourceVectorizer>- Throws:
IOException
-
fromJson
public static KnowledgeSourceVectorizer fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of KnowledgeSourceVectorizer from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KnowledgeSourceVectorizer if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the KnowledgeSourceVectorizer.
-