Table of Contents

Constructor KnowledgeEvidence

Namespace
LMKit.Agents.Knowledge
Assembly
LM-Kit.NET.dll

KnowledgeEvidence(string, string, float)

Creates a passage.

public KnowledgeEvidence(string sourceId, string text, float score)

Parameters

sourceId string

Stable identifier of the source the passage belongs to (a data source, a collection, an index).

text string

The passage text, as the model will read it.

score float

Relevance of the passage to the query, as the retriever measured it (higher is better).

Exceptions

ArgumentException

Thrown when text is null or empty.

Share