Class KnowledgeBaseModel

java.lang.Object
com.azure.search.documents.indexes.models.KnowledgeBaseModel
All Implemented Interfaces:
com.azure.json.JsonSerializable<KnowledgeBaseModel>
Direct Known Subclasses:
KnowledgeBaseAzureOpenAIModel

public class KnowledgeBaseModel extends Object implements com.azure.json.JsonSerializable<KnowledgeBaseModel>
Specifies the connection parameters for the model to use for query planning.
  • Constructor Details

    • KnowledgeBaseModel

      public KnowledgeBaseModel()
      Creates an instance of KnowledgeBaseModel class.
  • Method Details

    • getKind

      public KnowledgeBaseModelKind getKind()
      Get the kind property: The type of AI model.
      Returns:
      the kind value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<KnowledgeBaseModel>
      Throws:
      IOException
    • fromJson

      public static KnowledgeBaseModel fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of KnowledgeBaseModel from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of KnowledgeBaseModel 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 KnowledgeBaseModel.