Share via


VectorStoreConfiguration Class

  • java.lang.Object
    • com.azure.ai.agents.persistent.models.VectorStoreConfiguration

Implements

public final class VectorStoreConfiguration
implements JsonSerializable<VectorStoreConfiguration>

Vector storage configuration is the list of data sources, used when multiple files can be used for the enterprise file search.

Constructor Summary

Constructor Description
VectorStoreConfiguration(List<VectorStoreDataSource> dataSources)

Creates an instance of VectorStoreConfiguration class.

Method Summary

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

Reads an instance of VectorStoreConfiguration from the JsonReader.

List<VectorStoreDataSource> getDataSources()

Get the dataSources property: Data sources.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

VectorStoreConfiguration

public VectorStoreConfiguration(List<VectorStoreDataSource> dataSources)

Creates an instance of VectorStoreConfiguration class.

Parameters:

dataSources - the dataSources value to set.

Method Details

fromJson

public static VectorStoreConfiguration fromJson(JsonReader jsonReader)

Reads an instance of VectorStoreConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VectorStoreConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getDataSources

public List<VectorStoreDataSource> getDataSources()

Get the dataSources property: Data sources.

Returns:

the dataSources value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to