Class KnowledgeSourceAzureOpenAIVectorizer
java.lang.Object
com.azure.search.documents.indexes.models.KnowledgeSourceVectorizer
com.azure.search.documents.indexes.models.KnowledgeSourceAzureOpenAIVectorizer
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KnowledgeSourceVectorizer>
Specifies the Azure OpenAI resource used to vectorize a query string.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of KnowledgeSourceAzureOpenAIVectorizer class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KnowledgeSourceAzureOpenAIVectorizer from the JsonReader.Get the azureOpenAIParameters property: Contains the parameters specific to Azure OpenAI embedding vectorization.getKind()Get the kind property: The name of the kind of vectorization method being configured for use with vector search.setAzureOpenAIParameters(AzureOpenAIVectorizerParameters azureOpenAIParameters) Set the azureOpenAIParameters property: Contains the parameters specific to Azure OpenAI embedding vectorization.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
-
KnowledgeSourceAzureOpenAIVectorizer
public KnowledgeSourceAzureOpenAIVectorizer()Creates an instance of KnowledgeSourceAzureOpenAIVectorizer class.
-
-
Method Details
-
getKind
Get the kind property: The name of the kind of vectorization method being configured for use with vector search.- Overrides:
getKindin classKnowledgeSourceVectorizer- Returns:
- the kind value.
-
getAzureOpenAIParameters
Get the azureOpenAIParameters property: Contains the parameters specific to Azure OpenAI embedding vectorization.- Returns:
- the azureOpenAIParameters value.
-
setAzureOpenAIParameters
public KnowledgeSourceAzureOpenAIVectorizer setAzureOpenAIParameters(AzureOpenAIVectorizerParameters azureOpenAIParameters) Set the azureOpenAIParameters property: Contains the parameters specific to Azure OpenAI embedding vectorization.- Parameters:
azureOpenAIParameters- the azureOpenAIParameters value to set.- Returns:
- the KnowledgeSourceAzureOpenAIVectorizer object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KnowledgeSourceVectorizer>- Overrides:
toJsonin classKnowledgeSourceVectorizer- Throws:
IOException
-
fromJson
public static KnowledgeSourceAzureOpenAIVectorizer fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of KnowledgeSourceAzureOpenAIVectorizer from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KnowledgeSourceAzureOpenAIVectorizer 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 KnowledgeSourceAzureOpenAIVectorizer.
-