Features
Answer modes
Choose how strictly an engine's answers stay within your sources.
Some assistants must never say anything your documents don't support. Others are more useful when they add general background. An answer mode sets how strictly an engine stays within your sources.
The default is grounded. An answer then uses only your sources, and says the information isn't available when they don't cover the question.
Modes
| Mode | Answers from | When the sources don't cover it | Best for |
|---|---|---|---|
grounded | Your sources only, reasoning from what they say | Says the information isn't available | Policies, contracts, support, regulated content |
blended | Your sources first, then general knowledge to fill gaps | Answers from general knowledge | Advisory assistants and internal helpers |
retrieval | The exact text of your sources, organized but not reasoned about | Says the information isn't available | Quoting and lookup, where wording must not change |
In every mode, a citation is required for any claim drawn from your sources.
Set the mode for one query
Pass mode to query. Over HTTP the field is query_mode:
result = lynk.query_sync("How should we handle a late refund request?", mode="blended")The SDK's default mode is precise, which is the same as grounded. These names are also accepted:
| Name | Same as |
|---|---|
precise | grounded |
guide | grounded |
explore | blended |
Any other value falls back to grounded.
Set the engine's default
Open the engine in Knowledge Engines, go to Settings, and choose an Answer Mode. Streamed answers always use this setting. See Streaming answers.
Next steps
You've chosen how answers behave. Learn to read their citations and confidence next.