Class KnowledgeChunk
A single embedded knowledge chunk.
public sealed class KnowledgeChunk
Inheritance
Properties
Collection
Optional collection / namespace partition (e.g. tenant id, document set).
public string? Collection { get; init; }
Embedding
Embedding vector; dimensionality is implementation-defined.
public required ReadOnlyMemory<float> Embedding { get; init; }
Id
Stable identifier — caller-supplied so updates can replace a chunk in place.
public required string Id { get; init; }
MetadataJson
Optional structured metadata (JSON) — e.g. source URL, page number.
public string? MetadataJson { get; init; }
Text
Original chunk text shown to the model when the chunk is retrieved.
public required string Text { get; init; }
UpdatedAtUtc
Wall-clock timestamp the chunk was last upserted.
public DateTime UpdatedAtUtc { get; init; }