Class VectorStoreRequest
- Namespace
- OpenAI
- Assembly
- OpenAI-DotNet.dll
A helper to create a vector store with file_ids and attach it to an assistant/thread. There can be a maximum of 1 vector store attached to the assistant/thread.
public sealed class VectorStoreRequest- Inheritance
- 
      
      VectorStoreRequest
- Inherited Members
Constructors
VectorStoreRequest()
public VectorStoreRequest()VectorStoreRequest(IReadOnlyList<string>, IReadOnlyDictionary<string, string>)
Constructor.
public VectorStoreRequest(IReadOnlyList<string> fileIds, IReadOnlyDictionary<string, string> metadata = null)Parameters
- fileIdsIReadOnlyList<string>
- A list of file IDs to add to the vector store. There can be a maximum of 10000 files in a vector store. 
- metadataIReadOnlyDictionary<string, string>
- Optional, set of 16 key-value pairs that can be attached to a vector store. This can be useful for storing additional information about the vector store in a structured format. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long. 
VectorStoreRequest(string, IReadOnlyDictionary<string, string>)
public VectorStoreRequest(string fileId, IReadOnlyDictionary<string, string> metadata = null)Parameters
- fileIdstring
- metadataIReadOnlyDictionary<string, string>
Properties
FileIds
A list of file IDs to add to the vector store. There can be a maximum of 10000 files in a vector store.
[JsonInclude]
[JsonPropertyName("file_ids")]
public IReadOnlyList<string> FileIds { get; }Property Value
Metadata
Set of 16 key-value pairs that can be attached to a vector store. This can be useful for storing additional information about the vector store in a structured format. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long.
[JsonInclude]
[JsonPropertyName("metadata")]
public IReadOnlyDictionary<string, string> Metadata { get; }Property Value
Operators
implicit operator VectorStoreRequest(List<string>)
public static implicit operator VectorStoreRequest(List<string> fileIds)Parameters
Returns
implicit operator VectorStoreRequest(string)
public static implicit operator VectorStoreRequest(string fileId)Parameters
- fileIdstring