VectorEmbeddingPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. VectorEmbeddingPolicy
- com.
Implements
public final class VectorEmbeddingPolicy
implements JsonSerializable<VectorEmbeddingPolicy>
Cosmos DB Vector Embedding Policy.
Constructor Summary
Constructor | Description |
---|---|
VectorEmbeddingPolicy() |
Creates an instance of Vector |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Vector |
fromJson(JsonReader jsonReader)
Reads an instance of Vector |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
List<Vector |
vectorEmbeddings()
Get the vector |
Vector |
withVectorEmbeddings(List<VectorEmbedding> vectorEmbeddings)
Set the vector |
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:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
vectorEmbeddings
public List
Get the vectorEmbeddings property: List of vector embeddings.
Returns:
withVectorEmbeddings
public VectorEmbeddingPolicy withVectorEmbeddings(List
Set the vectorEmbeddings property: List of vector embeddings.
Parameters:
Returns:
Applies to
Azure SDK for Java