Package com.azure.ai.openai.models
Class OnYourDataModelIdVectorizationSource
java.lang.Object
com.azure.ai.openai.models.OnYourDataVectorizationSource
com.azure.ai.openai.models.OnYourDataModelIdVectorizationSource
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OnYourDataVectorizationSource>
The details of a a vectorization source, used by Azure OpenAI On Your Data when applying vector search, that is based
on a search service model ID. Currently only supported by Elasticsearch®.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of OnYourDataModelIdVectorizationSource class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OnYourDataModelIdVectorizationSource from the JsonReader.Get the modelId property: The embedding model ID build inside the search service.getType()Get the type property: The type of vectorization source to use.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter)
-
Constructor Details
-
OnYourDataModelIdVectorizationSource
Creates an instance of OnYourDataModelIdVectorizationSource class.- Parameters:
modelId- the modelId value to set.
-
-
Method Details
-
getModelId
Get the modelId property: The embedding model ID build inside the search service. Currently only supported by Elasticsearch®.- Returns:
- the modelId value.
-
getType
Get the type property: The type of vectorization source to use.- Overrides:
getTypein classOnYourDataVectorizationSource- Returns:
- the type value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<OnYourDataVectorizationSource>- Overrides:
toJsonin classOnYourDataVectorizationSource- Throws:
IOException
-
fromJson
public static OnYourDataModelIdVectorizationSource fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of OnYourDataModelIdVectorizationSource from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OnYourDataModelIdVectorizationSource 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 OnYourDataModelIdVectorizationSource.
-