Partager via


VectorEmbeddingPolicy Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.VectorEmbeddingPolicy

Implements

public final class VectorEmbeddingPolicy
implements JsonSerializable<VectorEmbeddingPolicy>

Cosmos DB Vector Embedding Policy.

Constructor Summary

Constructor Description
VectorEmbeddingPolicy()

Creates an instance of VectorEmbeddingPolicy class.

Method Summary

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

Reads an instance of VectorEmbeddingPolicy from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<VectorEmbedding> vectorEmbeddings()

Get the vectorEmbeddings property: List of vector embeddings.

VectorEmbeddingPolicy withVectorEmbeddings(List<VectorEmbedding> vectorEmbeddings)

Set the vectorEmbeddings property: List of vector embeddings.

Methods inherited from java.lang.Object

Constructor Details

VectorEmbeddingPolicy

public VectorEmbeddingPolicy()

Creates an instance of VectorEmbeddingPolicy class.

Method Details

fromJson

public static VectorEmbeddingPolicy fromJson(JsonReader jsonReader)

Reads an instance of VectorEmbeddingPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

vectorEmbeddings

public List vectorEmbeddings()

Get the vectorEmbeddings property: List of vector embeddings.

Returns:

the vectorEmbeddings value.

withVectorEmbeddings

public VectorEmbeddingPolicy withVectorEmbeddings(List vectorEmbeddings)

Set the vectorEmbeddings property: List of vector embeddings.

Parameters:

vectorEmbeddings - the vectorEmbeddings value to set.

Returns:

the VectorEmbeddingPolicy object itself.

Applies to