Table of Contents

Method LoadFromStore

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

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

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

DataSource

A DataSource instance loaded from the vector store.

Exceptions

Exception

Any exception encountered during the asynchronous operation is thrown.