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
vectorStoreIVectorStoreThe vector store implementation to retrieve the data source from.
dataSourceIdentifierstringThe unique identifier of the data source to load.
cancellationTokenCancellationTokenA 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.