Table of Contents

Method LoadFromStoreAsync

Namespace
LMKit.Data
Assembly
LM-Kit.NET.dll

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 IVectorStore

The vector store implementation to retrieve the data source from.

dataSourceIdentifier string

The unique identifier of the data source to load.

cancellationToken CancellationToken

A 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.