Table of Contents

Constructor KnowledgeQuery

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

KnowledgeQuery(string, int, float?)

Creates a query.

public KnowledgeQuery(string text, int maxResults, float? minScore = null)

Parameters

text string

The text to search for. For a follow-up question this is the self-contained rewrite, not the raw follow-up.

maxResults int

The most passages to return. Clamped to at least 1.

minScore float?

The relevance floor a passage must clear, or null for the retriever's own default.

Exceptions

ArgumentException

Thrown when text is null or whitespace.

Share