Class KnowledgeBaseAzureOpenAIModel
java.lang.Object
com.azure.search.documents.indexes.models.KnowledgeBaseModel
com.azure.search.documents.indexes.models.KnowledgeBaseAzureOpenAIModel
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KnowledgeBaseModel>
Specifies the Azure OpenAI resource used to do query planning.
-
Constructor Summary
ConstructorsConstructorDescriptionKnowledgeBaseAzureOpenAIModel(AzureOpenAIVectorizerParameters azureOpenAIParameters) Creates an instance of KnowledgeBaseAzureOpenAIModel class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of KnowledgeBaseAzureOpenAIModel from the JsonReader.Get the azureOpenAIParameters property: Contains the parameters specific to Azure OpenAI model endpoint.getKind()Get the kind property: The type of AI model.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
-
KnowledgeBaseAzureOpenAIModel
Creates an instance of KnowledgeBaseAzureOpenAIModel class.- Parameters:
azureOpenAIParameters- the azureOpenAIParameters value to set.
-
-
Method Details
-
getKind
Get the kind property: The type of AI model.- Overrides:
getKindin classKnowledgeBaseModel- Returns:
- the kind value.
-
getAzureOpenAIParameters
Get the azureOpenAIParameters property: Contains the parameters specific to Azure OpenAI model endpoint.- Returns:
- the azureOpenAIParameters value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KnowledgeBaseModel>- Overrides:
toJsonin classKnowledgeBaseModel- Throws:
IOException
-
fromJson
public static KnowledgeBaseAzureOpenAIModel fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of KnowledgeBaseAzureOpenAIModel from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of KnowledgeBaseAzureOpenAIModel 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 KnowledgeBaseAzureOpenAIModel.
-