﻿# Tavily domain preference and strict restriction are different policies

Implement Tavily domain preference and strict restriction as explicit retrieval policies, preserving the difference when selecting pages for extraction.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-tavily-domain-restrict-prefer/
Language: en

## Define whether outside sources are acceptable

A software advisory assistant may prioritize vendor documentation while allowing a community explanation. A release certification checklist may accept only the vendor's own pages. These workflows need different eligibility rules. Decide that rule before retrieval instead of letting a downstream model infer it from the phrase trusted sources in a prompt.

## Configure the domain mode explicitly

The [Search reference](https://docs.tavily.com/documentation/api-reference/endpoint/search) defines `include_domains_mode`. With `restrict`, the listed domains bound the results; with `prefer`, other web sources remain eligible. The field requires `include_domains`. Store both together in the application's policy record and avoid changing the mode silently when a narrow search returns little evidence.

## Keep preference separate from authorization

[Search best practices](https://docs.tavily.com/documentation/best-practices/best-practices-search) explains why preference can preserve coverage when favored publishers do not discuss a question. That can help exploratory research. It does not satisfy a requirement to use only listed publishers. If a broader source is permitted, identify it clearly in the result rather than implying it passed the narrower rule.

For a release checklist, an absent official statement is a useful unresolved outcome. Falling back to a forum can answer a different question about user experience, but it cannot be relabeled as the vendor's release commitment. Keep those findings in separate categories when presenting the comparison.

## Carry the rule into extraction

[Extract best practices](https://docs.tavily.com/documentation/best-practices/best-practices-extract) includes domain-based curation before acquiring selected URLs. Apply the same declared eligibility rule at that handoff. A later extraction stage should not import an outside URL merely because a model suggested it after reviewing the original search results.

## Test both coverage and eligibility

Create examples where a favored domain has evidence, where only an outside publisher has it, and where both disagree. Verify the returned URL set before evaluating answer prose. Also keep country or language preferences separate; similar-looking ranking controls do not automatically impose a domain allowlist.

The existing guides to [filtering and ranking](/journal/milvus-text-match-bm25-filter-ranking/) and [citation completeness](/journal/rag-citation-precision-completeness/) explain complementary distinctions. Report missing eligible evidence as a visible gap. That lets the caller decide whether to broaden the research assignment without confusing a coverage improvement with compliance to the original source rule.
