Skip to main content
Search across web and proprietary data sources, returning content optimized for AI applications and RAG pipelines.

Wire up Valyu Search with the Python SDK.

Open in Cursor

Basic usage

Common patterns

Source biases support URL-path specificity - the most specific match wins ({"nih.gov": 2, "nih.gov/research": -3}).
Building a multi-step research flow on top of Search? Consider DeepResearch - a cost-effective autonomous agent purpose-built for reports, diligence, and market sizings.

Reference

query (str, required) - the search query. See the Prompting Guide.
AsyncValyu.search takes the same arguments and returns the same SearchResponse - the only difference is you await it. The common reason to use it is running several queries in parallel:
Wall time is the slowest query, not the sum. For hundreds of queries, cap concurrency with an asyncio.Semaphore - see the Python SDK overview for constructor options and lifecycle patterns.

Source types

  • Web - general websites, news, blogs, forums, documentation.
  • Proprietary - valyu/valyu-arxiv (arXiv papers), valyu/valyu-pubmed (medical literature), valyu/valyu-stocks (market data), and many more.
Browse the full catalog on the Valyu Platform.