# Answer modes (/docs/knowledge/answers/answer-modes)
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.

<Callout type="warn">
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.
</Callout>

## Modes [#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 [#set-the-mode-for-one-query]

Pass `mode` to `query`. Over HTTP the field is `query_mode`:

<CodeTabs>
  <Tab value="Python">
    ```python
    result = lynk.query_sync("How should we handle a late refund request?", mode="blended")
    ```
  </Tab>
  <Tab value="TypeScript">
    ```ts
    const result = await lynk.query('How should we handle a late refund request?', {
      mode: 'blended',
    });
    ```
  </Tab>
  <Tab value="cURL">
    ```bash
    curl https://api.docklee.com/v1/engine/query \
      -H "Authorization: Bearer $DOCKLEE_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "engine_id": "your-engine-id",
        "query": "How should we handle a late refund request?",
        "query_mode": "blended"
      }'
    ```
  </Tab>
</CodeTabs>

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 [#set-the-engines-default]

Open the engine in **Knowledge Engines**, go to **Settings**, and choose an **Answer Mode**. Streamed answers always use this setting. See [Streaming answers](/docs/knowledge/streaming-answers).

## Next steps [#next-steps]

You've chosen how answers behave. Learn to read their citations and confidence next.

<Cards>
  <Card title="Citations and confidence" href="/docs/knowledge/answers/citations-and-confidence" description="How every answer is checked." />
  <Card title="Query an engine" href="/docs/knowledge/query-an-engine" description="Every query option." />
  <Card title="Retrieve context" href="/docs/knowledge/retrieve-context" description="Write answers with your own model." />
</Cards>
