Enum KnowledgeRetrievalMode
When a conversation searches its knowledge sources.
public enum KnowledgeRetrievalMode
Fields
Always = 0Every 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 = 1The model decides: a
knowledge_searchtool 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.