Table of Contents

Class RagSource

Namespace
Qavren.Edge.Rag
Assembly
Qavren.Edge.Rag.dll

One retrieved chunk, on its way to a numbered slot in the assembled context block.

public sealed record RagSource : IEquatable<RagSource>
Inheritance
RagSource
Implements
Inherited Members

Constructors

RagSource(string, string)

Creates a source from the two fields a projector must always supply.

Properties

Id

Stable identifier - a chunk id, a row key. Becomes CitationAnnotation.FileId.

Ordinal

1-based position in the assembled block. What the model is told to cite as [n]. Assigned by Format(IReadOnlyList<RagSource>, RagOptions) after ranking and clamping; 0 until then.

Record

The record the projector was handed, for a consumer that wants the typed row back.

Score

Set by the retriever, never by a projector. VectorStoreRetriever<TKey,TRecord> stamps it from the MEVD result after projection.

ScoreKind

Set by the retriever from the search lane it actually took, never by a projector - a projector cannot know which lane ran, and guessing inverts the ranking.

Text

The chunk body the model is shown, before RagPrompts.Format clamps it.

Title

Optional human-readable title, rendered as the block's Title: line.

Uri

Optional origin, rendered as the block's Source: line.