Table of Contents

Field Embeddings

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

Gets a read-only list of embedding vectors generated for the text partition.

public readonly IReadOnlyList<float> Embeddings

Returns

IReadOnlyList<float>
Gets a read-only list of embedding vectors generated for the text partition.

Examples

PartitionSimilarity match = ragEngine.FindMatchingPartitions("query", topK: 1)[0];

Console.WriteLine($"Embedding dimensions: {match.Embeddings.Count}");

// Inspect the first few embedding values.
for (int i = 0; i < Math.Min(5, match.Embeddings.Count); i++)
{
    Console.WriteLine($"  [{i}] = {match.Embeddings[i]:F6}");
}
Share