Constructor KnowledgeQuery
KnowledgeQuery(string, int, float?)
Creates a query.
public KnowledgeQuery(string text, int maxResults, float? minScore = null)
Parameters
textstringThe text to search for. For a follow-up question this is the self-contained rewrite, not the raw follow-up.
maxResultsintThe most passages to return. Clamped to at least 1.
minScorefloat?The relevance floor a passage must clear, or
nullfor the retriever's own default.
Exceptions
- ArgumentException
Thrown when
textis null or whitespace.