次の方法で共有


AgentsClient.CreateVectorStore Method

Definition

Overloads

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

Creates a vector store.

CreateVectorStore(RequestContent, RequestContext)

[Protocol Method] Creates a vector store.

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

Source:
AgentsClient.cs

Creates a vector store.

public virtual Azure.Response<Azure.AI.Projects.VectorStore> CreateVectorStore (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 CreateVectorStore : seq<string> * string * Azure.AI.Projects.VectorStoreConfiguration * Azure.AI.Projects.VectorStoreExpirationPolicy * Azure.AI.Projects.VectorStoreChunkingStrategyRequest * System.Collections.Generic.IReadOnlyDictionary<string, string> * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Projects.VectorStore>
override this.CreateVectorStore : seq<string> * string * Azure.AI.Projects.VectorStoreConfiguration * Azure.AI.Projects.VectorStoreExpirationPolicy * Azure.AI.Projects.VectorStoreChunkingStrategyRequest * System.Collections.Generic.IReadOnlyDictionary<string, string> * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Projects.VectorStore>
Public Overridable Function CreateVectorStore (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 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

CreateVectorStore(RequestContent, RequestContext)

Source:
AgentsClient.cs

[Protocol Method] Creates a vector store.

public virtual Azure.Response CreateVectorStore (Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member CreateVectorStore : Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
override this.CreateVectorStore : Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
Public Overridable Function CreateVectorStore (content As RequestContent, Optional context As RequestContext = Nothing) As 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