Method LoadFromStoreAsync
LoadFromStoreAsync(IVectorStore, string, CancellationToken)
Asynchronously loads a DataSource from the specified vector store using the provided data source identifier and language model.
public static Task<DataSource> LoadFromStoreAsync(IVectorStore vectorStore, string dataSourceIdentifier, CancellationToken cancellationToken = default)
Parameters
vectorStore
IVectorStoreThe vector store implementation to retrieve the data source from.
dataSourceIdentifier
stringThe unique identifier of the data source to load.
cancellationToken
CancellationTokenA token to cancel the asynchronous operation.
Returns
- Task<DataSource>
A task representing the asynchronous operation. The task result contains a DataSource instance loaded from the vector store.