Share via


OnYourDataVectorizationSource Class

  • java.lang.Object
    • com.azure.ai.openai.models.OnYourDataVectorizationSource

Implements

public class OnYourDataVectorizationSource
implements JsonSerializable<OnYourDataVectorizationSource>

An abstract representation of a vectorization source for Azure OpenAI On Your Data with vector search.

Constructor Summary

Constructor Description
OnYourDataVectorizationSource()

Creates an instance of OnYourDataVectorizationSource class.

Method Summary

Modifier and Type Method and Description
static OnYourDataVectorizationSource fromJson(JsonReader jsonReader)

Reads an instance of OnYourDataVectorizationSource from the JsonReader.

OnYourDataVectorizationSourceType getType()

Get the type property: The type of vectorization source to use.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

OnYourDataVectorizationSource

public OnYourDataVectorizationSource()

Creates an instance of OnYourDataVectorizationSource class.

Method Details

fromJson

public static OnYourDataVectorizationSource fromJson(JsonReader jsonReader)

Reads an instance of OnYourDataVectorizationSource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of OnYourDataVectorizationSource 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 OnYourDataVectorizationSource.

getType

public OnYourDataVectorizationSourceType getType()

Get the type property: The type of vectorization source to use.

Returns:

the type value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to