次の方法で共有


AgentsClient.CreateVectorStoreAsync Method

Definition

Overloads

CreateVectorStoreAsync(IEnumerable<String>, String, VectorStoreConfiguration, VectorStoreExpirationPolicy, VectorStoreChunkingStrategyRequest, IReadOnlyDictionary<String,String>, CancellationToken)

Creates a vector store.

CreateVectorStoreAsync(RequestContent, RequestContext)

[Protocol Method] Creates a vector store.

CreateVectorStoreAsync(IEnumerable<String>, String, VectorStoreConfiguration, VectorStoreExpirationPolicy, VectorStoreChunkingStrategyRequest, IReadOnlyDictionary<String,String>, CancellationToken)

Source:
AgentsClient.cs

Creates a vector store.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Projects.VectorStore>> CreateVectorStoreAsync (System.Collections.Generic.IEnumerable<string> fileIds = default, string name = default, Azure.AI.Projects.VectorStoreConfiguration storeConfiguration = default, Azure.AI.Projects.VectorStoreExpirationPolicy expiresAfter = default, Azure.AI.Projects.VectorStoreChunkingStrategyRequest chunkingStrategy = default, System.Collections.Generic.IReadOnlyDictionary<string,string> metadata = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateVectorStoreAsync : seq<string> * string * Azure.AI.Projects.VectorStoreConfiguration * Azure.AI.Projects.VectorStoreExpirationPolicy * Azure.AI.Projects.VectorStoreChunkingStrategyRequest * System.Collections.Generic.IReadOnlyDictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Projects.VectorStore>>
override this.CreateVectorStoreAsync : seq<string> * string * Azure.AI.Projects.VectorStoreConfiguration * Azure.AI.Projects.VectorStoreExpirationPolicy * Azure.AI.Projects.VectorStoreChunkingStrategyRequest * System.Collections.Generic.IReadOnlyDictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Projects.VectorStore>>
Public Overridable Function CreateVectorStoreAsync (Optional fileIds As IEnumerable(Of String) = Nothing, Optional name As String = Nothing, Optional storeConfiguration As VectorStoreConfiguration = Nothing, Optional expiresAfter As VectorStoreExpirationPolicy = Nothing, Optional chunkingStrategy As VectorStoreChunkingStrategyRequest = Nothing, Optional metadata As IReadOnlyDictionary(Of String, String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of VectorStore))

Parameters

fileIds
IEnumerable<String>

A list of file IDs that the vector store should use. Useful for tools like file_search that can access files.

name
String

The name of the vector store.

storeConfiguration
VectorStoreConfiguration

The vector store configuration, used when vector store is created from Azure asset URIs.

expiresAfter
VectorStoreExpirationPolicy

Details on when this vector store expires.

chunkingStrategy
VectorStoreChunkingStrategyRequest

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.

metadata
IReadOnlyDictionary<String,String>

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.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to

CreateVectorStoreAsync(RequestContent, RequestContext)

Source:
AgentsClient.cs

[Protocol Method] Creates a vector store.

public virtual System.Threading.Tasks.Task<Azure.Response> CreateVectorStoreAsync (Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member CreateVectorStoreAsync : Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.CreateVectorStoreAsync : Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function CreateVectorStoreAsync (content As RequestContent, Optional context As RequestContext = Nothing) As Task(Of Response)

Parameters

content
RequestContent

The content to send as the body of the request.

context
RequestContext

The request context, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

content is null.

Service returned a non-success status code.

Applies to