Table of Contents

Property DataSourceIdentifier

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

DataSourceIdentifier

Gets the unique identifier of the data source from which the text partition originates.

public string DataSourceIdentifier { get; }

Property Value

string

Examples

var matches = ragEngine.FindMatchingPartitions("retrieval", topK: 5);

// Group results by their originating data source.
var grouped = matches.GroupBy(m => m.DataSourceIdentifier);

foreach (var group in grouped)
{
    Console.WriteLine($"Data source '{group.Key}': {group.Count()} matches");
}
Share