Class VectorStore
- Namespace
- AntRunnerLib
- Assembly
- AntRunnerLib.dll
Provides methods to ensure and manage vector stores for an assistant.
public class VectorStore
- Inheritance
-
System.ObjectVectorStore
- 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
vectorStoresDictionary<System.String, System.String>A dictionary of vector store names and their IDs.
azureOpenAIConfigAzureOpenAIConfigThe 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
assistantAssistantCreateRequestThe AssistantCreateRequest object containing assistant details.
vectorStoreNameSystem.StringThe name of the vector store.
vectorStoreIdSystem.StringThe ID of the vector store.
azureOpenAIConfigAzureOpenAIConfigThe 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
assistantAssistantCreateRequestThe AssistantCreateRequest object containing assistant details.
vectorStoreNameSystem.StringThe name of the vector store.
azureOpenAIConfigAzureOpenAIConfigThe 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.