Class VectorStoreOptions
java.lang.Object
com.azure.ai.openai.assistants.models.VectorStoreOptions
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VectorStoreOptions>
public final class VectorStoreOptions
extends Object
implements com.azure.json.JsonSerializable<VectorStoreOptions>
Request object for creating a vector store.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VectorStoreOptions
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of VectorStoreOptions from the JsonReader.Get the chunkingStrategy property: The chunking strategy used to chunk the file(s).Get the expiresAfter property: Details on when this vector store expires.Get the fileIds property: A list of file IDs that the vector store should use.Get the metadata property: A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format.getName()
Get the name property: The name of the vector store.setChunkingStrategy
(VectorStoreChunkingStrategyRequest chunkingStrategy) Set the chunkingStrategy property: The chunking strategy used to chunk the file(s).setExpiresAfter
(VectorStoreExpirationPolicy expiresAfter) Set the expiresAfter property: Details on when this vector store expires.setFileIds
(List<String> fileIds) Set the fileIds property: A list of file IDs that the vector store should use.setMetadata
(Map<String, String> metadata) Set the metadata property: A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format.Set the name property: The name of the vector store.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VectorStoreOptions
public VectorStoreOptions()Creates an instance of VectorStoreOptions class.
-
-
Method Details
-
getFileIds
Get the fileIds property: A list of file IDs that the vector store should use. Useful for tools like `file_search` that can access files.- Returns:
- the fileIds value.
-
setFileIds
Set the fileIds property: A list of file IDs that the vector store should use. Useful for tools like `file_search` that can access files.- Parameters:
fileIds
- the fileIds value to set.- Returns:
- the VectorStoreOptions object itself.
-
getName
Get the name property: The name of the vector store.- Returns:
- the name value.
-
setName
Set the name property: The name of the vector store.- Parameters:
name
- the name value to set.- Returns:
- the VectorStoreOptions object itself.
-
getExpiresAfter
Get the expiresAfter property: Details on when this vector store expires.- Returns:
- the expiresAfter value.
-
setExpiresAfter
Set the expiresAfter property: Details on when this vector store expires.- Parameters:
expiresAfter
- the expiresAfter value to set.- Returns:
- the VectorStoreOptions object itself.
-
getMetadata
Get the metadata property: A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.- Returns:
- the metadata value.
-
setMetadata
Set the metadata property: A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.- Parameters:
metadata
- the metadata value to set.- Returns:
- the VectorStoreOptions object itself.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<VectorStoreOptions>
- Throws:
IOException
-
fromJson
Reads an instance of VectorStoreOptions from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of VectorStoreOptions 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 VectorStoreOptions.
-
getChunkingStrategy
Get the chunkingStrategy property: The chunking strategy used to chunk the file(s). If not set, will use the auto strategy. Only applicable if file_ids is non-empty.- Returns:
- the chunkingStrategy value.
-
setChunkingStrategy
Set the chunkingStrategy property: The chunking strategy used to chunk the file(s). If not set, will use the auto strategy. Only applicable if file_ids is non-empty.- Parameters:
chunkingStrategy
- the chunkingStrategy value to set.- Returns:
- the VectorStoreOptions object itself.
-