Skip to main content
Write the query around the evidence you need: a named company, a scientific question, a filing, or a specific event. Clear queries make it easier to inspect whether the results answer the question.

The rules

  • Be specific. “transformer attention mechanism computational complexity” beats “AI research”.
  • Keep it short. Aim for under 400 characters. Strip filler words; lead with keywords.
  • One topic per query. Split complex research into separate, focused calls.
  • Name the source type when it matters, e.g. “SEC filings”, “academic papers”.
  • No boolean operators. AND, OR and quotes don’t apply to semantic search; write the query in plain words.
  • No site: in the query. Restrict domains with included_sources and excluded_sources instead. See restrict domains.

Weak vs better queries

Split complex queries

Instead of one broad query, run several focused ones - you’ll get more precise results.

Restrict domains with parameters, not site:

Pass domains in included_sources to keep results to them, and in excluded_sources to drop them. To favour a domain without excluding others, use source_biases.
Don’t put site: or -site: in the query text. If they are there, they are enforced as hard filters on every result, web and dataset alike, and results without a usable URL are dropped. Dataset results often carry URLs on a different domain from the one you name, or no URL at all, so a site: term can remove every dataset result and return fewer results than max_num_results, or none. See filter by source.

Pair queries with parameters

Put subject details in the query and source or date restrictions in parameters. instructions supplies ranking guidance (up to 500 characters); it is ignored in fast mode. category is deprecated in favor of instructions.

System prompt for AI agents

Add this to your agent’s system prompt so it queries Valyu well:
  • Too vague - “AI research” returns unfocused results. Use specific technical terms.
  • No source type - “Stock data” might return news instead of statements. Say what you need.
  • Asking for too much - “Everything about quantum computing” returns surface-level content. Narrow it.
  • Mixing topics - One topic per query; multiple topics dilute precision.
  • Too many words - Strip filler; keyword-focused queries are more precise.
  • Wrong source assumptions - A highly cited paper may not answer a question about current practice. Specify the evidence and period you need.
Stringing many queries together to answer one question? DeepResearch can plan, search and write a cited report for you. Keep Search when you want to own the research loop.

Next steps

Tune results and cost

Adjust context size and troubleshoot missing evidence.

API reference

All parameters and response formats