Property Knowledge
- Namespace
- LMKit.TextGeneration
- Assembly
- LM-Kit.NET.dll
Knowledge
Knowledge sources this conversation grounds its answers in, or null for none.
With Always every user turn searches the
sources and presents the passages found to the model as reference context, numbered for
citation; with OnDemand a
knowledge_search tool is registered in Tools and the model searches when it
decides to. Every result then carries its Grounding verdict.
Assign it before the first submission: the tool list is part of the first prompt.
public AgentKnowledge Knowledge { get; set; }
Property Value
Examples
var chat = new MultiTurnConversation(model) { Knowledge = new AgentKnowledge(ragEngine) };
var result = await chat.SubmitAsync("What is the refund window?");
Console.WriteLine($"{result.Content} ({result.Grounding.Status})");