Control exactly which sources your search uses. Focus on trusted domains, access specific datasets, exclude unreliable sources, or soft-rank results toward preferred domains.Documentation Index
Fetch the complete documentation index at: https://docs.valyu.ai/llms.txt
Use this file to discover all available pages before exploring further.
Source filters accept domains, URLs, dataset names, specific paths, or collections.
What You Can Do
- Target authoritative sources - Focus on trusted domains and academic datasets
- Block unreliable content - Exclude low-quality or biased sources
- Soft-rank by domain - Boost or demote sources without hard filtering
- Access specific datasets - Search Valyu’s proprietary collections
- Improve result quality - Get more relevant, higher-quality information
Parameters
included_sources
Type: Array of stringsOnly search within these sources. Can include domains, URLs, or dataset names.Example:
["arxiv.org", "valyu/valyu-pubmed"]excluded_sources
Type: Array of stringsExclude these sources from results. Same formats as included_sources.Example:
["example.com", "example.org"]source_biases
Type: Object (domain → integer)Soft-rank sources from -5 (strong demotion) to +5 (strong boost) without hard filtering.Example:
{"nasa.gov": 5, "example.com": -3}If both
included_sources and excluded_sources are provided, included_sources takes priority.Source Formats
| Format | Example | What It Does |
|---|---|---|
| Domain | "arxiv.org" | Includes/excludes entire domain |
| Base URL | "https://docs.aws.amazon.com" | Includes/excludes entire site |
| Specific Path | "nasa.gov/news" | Targets only that path |
| Dataset Name | "valyu/valyu-arxiv" | Searches Valyu’s proprietary datasets |
| Collection | "collection:my-sources" | Expands to all sources in your saved collection |
Examples
Academic Sources
Exclude Non-Government Sources
Official Documentation
Use Cases
Financial Research
Medical Research
Technical Documentation
News
Source Biases
Source biases let you influence ranking without hard filtering. Unlikeincluded_sources/excluded_sources, biased sources can still appear (or be absent) based on relevance — biases just nudge the ranking.
Values range from -5 (strong demotion) to +5 (strong boost). A value of 0 has no effect.
Boost Government Sources
Combine with Hard Filters
You can usesource_biases alongside included_sources or excluded_sources for fine-grained control:

