Class VectorStore
- Namespace
- Ant
Runner Lib
- Assembly
- AntRunnerLib.dll
Provides methods to ensure and manage vector stores for an assistant.
- Inheritance
-
System.
Object VectorStore
- Inherited Members
-
System.
Object. Equals(System. Object) System.Object. Equals(System. Object, System. Object) System.Object. Get Hash Code() System.Object. Get Type() System.Object. Memberwise Clone() System.Object. Reference Equals(System. Object, System. Object) System.Object. To String()
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
AzureOpen AIConfig 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
AssistantCreate Request 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
AzureOpen AIConfig 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
AssistantCreate Request The AssistantCreateRequest object containing assistant details.
vectorStoreName
System.String The name of the vector store.
azureOpenAIConfig
AzureOpen AIConfig 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.