Table of Contents

Enum KnowledgeRetrievalMode

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

When a conversation searches its knowledge sources.

public enum KnowledgeRetrievalMode

Fields

Always = 0

Every user turn searches before the model answers, and the passages found are presented to the model as reference context. A follow-up question is first rewritten into a self-contained query. The right mode for assistants whose every answer must come from the sources.

OnDemand = 1

The model decides: a knowledge_search tool is registered on the conversation and the model calls it when a question needs the sources. The right mode for agents that mix knowledge questions with other work.

Share