Table of Contents

Class VectorStore

Namespace
AntRunnerLib
Assembly
AntRunnerLib.dll

Provides methods to ensure and manage vector stores for an assistant.

public class VectorStore
Inheritance
System.Object
VectorStore
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()

Methods

CheckForVectorStoreCompletion(Dictionary<String, String>, AzureOpenAIConfig)

Checks if the vector stores have completed their processing.

public static async Task<bool> CheckForVectorStoreCompletion(Dictionary<string, string> vectorStores, AzureOpenAIConfig azureOpenAIConfig)

Parameters

vectorStores Dictionary<System.String, System.String>

A dictionary of vector store names and their IDs.

azureOpenAIConfig AzureOpenAIConfig

The configuration for Azure OpenAI. Can be null.

Returns

Task<System.Boolean>

A task that represents the asynchronous operation. The task result indicates whether all vector stores have completed processing.

CreateVectorFiles(AssistantCreateRequest, String, String, AzureOpenAIConfig)

Creates vector files for the given assistant and vector store. Ensures that the files are uploaded and associated with the vector store.

public static async Task CreateVectorFiles(AssistantCreateRequest assistant, string vectorStoreName, string vectorStoreId, AzureOpenAIConfig azureOpenAIConfig)

Parameters

assistant AssistantCreateRequest

The AssistantCreateRequest object containing assistant details.

vectorStoreName System.String

The name of the vector store.

vectorStoreId System.String

The ID of the vector store.

azureOpenAIConfig AzureOpenAIConfig

The configuration for Azure OpenAI. Can be null.

Returns

Task

EnsureVectorStore(AssistantCreateRequest, String, AzureOpenAIConfig)

Ensures that a vector store exists for the given assistant, creating it if necessary.

public static async Task<string> EnsureVectorStore(AssistantCreateRequest assistant, string vectorStoreName, AzureOpenAIConfig azureOpenAIConfig)

Parameters

assistant AssistantCreateRequest

The AssistantCreateRequest object containing assistant details.

vectorStoreName System.String

The name of the vector store.

azureOpenAIConfig AzureOpenAIConfig

The configuration for Azure OpenAI. Can be null.

Returns

Task<System.String>

A task that represents the asynchronous operation. The task result contains the vector store ID.