Table of Contents

Class VectorSearch

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

Provides methods for searching partitions across one or more data sources by comparing vector embeddings for similarity.

public static class VectorSearch
Inheritance
VectorSearch
Inherited Members

Methods

FindMatchingPartitions(DataSource, float[], int, float, bool, bool, DataFilter, CancellationToken)

Synchronously finds the top matching partitions in the given data source based on cosine similarity to the provided query vector.

FindMatchingPartitions(IEnumerable<DataSource>, float[], int, float, bool, bool, DataFilter, CancellationToken)

Synchronously finds the top matching partitions from the given data sources based on cosine similarity to the provided query vector.

FindMatchingPartitionsAsync(DataSource, float[], int, float, bool, bool, DataFilter, CancellationToken)

Asynchronously finds the top matching partitions in the given data source based on cosine similarity to the provided query vector.

FindMatchingPartitionsAsync(IEnumerable<DataSource>, float[], int, float, bool, bool, DataFilter, CancellationToken)

Asynchronously finds the top matching partitions from the given data sources based on cosine similarity to the provided query vector.