Three controls
| Parameter | Type | Effect |
|---|---|---|
included_sources | string[] | Only search within these sources (hard filter) |
excluded_sources | string[] | Remove these sources from results (hard filter) |
source_biases | object (source → int) | Soft-rank from -5 (demote) to +5 (boost), no hard filter |
included_sources and excluded_sources are set, included_sources wins. Use hard filters for strict control; use source_biases to nudge ranking while still letting any source appear if highly relevant.
What you can pass
Every source field accepts any mix of these formats:| Format | Example | What it does |
|---|---|---|
| Domain | "arxiv.org" | Includes/excludes the entire domain |
| Base URL | "https://docs.aws.amazon.com" | Includes/excludes the entire site |
| Specific path | "nasa.gov/news" | Targets only that path |
| Dataset id | "valyu/valyu-arxiv" | A Valyu proprietary dataset |
| Preset | "academic" | Expands to a curated bundle for a domain (see below) |
| Collection | "collection:my-sources" | Expands to your saved collection |
| Web keyword | "web" | Includes general web search alongside any datasets you list |
Presets
Presets are curated bundles of vetted sources. Pass a preset name and it expands to the right datasets and domains for you - no need to remember individual ids.| Preset | Covers |
|---|---|
academic | Research papers and preprints (arXiv, PubMed, bioRxiv, …) |
finance | Markets, filings, and financial data |
patent | Patent records (USPTO, EPO) |
transportation | Transportation and logistics data |
politics | Government and parliamentary sources |
legal | Case law and legislation |
health | Clinical trials, drug labels, and health data |
genomics | Genomics and bioinformatics databases |
chemistry | Chemical and drug-discovery databases |
physics | Physics open data |
Premium presets (
finance, patent, genomics, chemistry, and others that resolve to proprietary datasets) require a subscription. academic and web work on any plan, and a plan also lowers your cost per credit.Source biases
source_biases influences ranking without hard filtering. Biased sources can still appear (or drop) based on relevance - values just nudge the order. Range: -5 (strong demotion) to +5 (strong boost); 0 has no effect.
source_biases with included_sources / excluded_sources in the same request for fine-grained control.
More examples
Target academic datasets by id
Target academic datasets by id
Python
Restrict to official documentation
Restrict to official documentation
Python
Exclude unreliable sources
Exclude unreliable sources
Python
Medical research
Medical research
Python
Financial research with government sources
Financial research with government sources
Python
Related
Collections
Save reusable source bundles
Data sources
Every dataset id and preset

