Method LoadFromStore
LoadFromStore(IVectorStore, string, CancellationToken)
Loads a DataSource from the specified vector store using the provided data source identifier and language model. This is a synchronous wrapper around the asynchronous LoadFromStoreAsync(IVectorStore, string, CancellationToken) method.
public static DataSource LoadFromStore(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
- DataSource
A DataSource instance loaded from the vector store.
Exceptions
- Exception
Any exception encountered during the asynchronous operation is thrown.