Use this file to discover all available pages before exploring further.
ParallelSearchRetriever is a LangChain BaseRetriever backed by Parallel’s Search API. It returns list[Document] with rich metadata (url, title, publish_date, search_id, excerpts, query) and slots into any RAG pipeline.
Looking for an LLM-callable tool that returns the raw search response instead of Documents? See ParallelSearchTool.
Each returned Document has its excerpts joined into page_content and exposes the source URL, title, and publish date in metadata:
docs = retriever.invoke("breakthroughs in fusion energy 2025")for d in docs: print(d.metadata.get("title"), "—", d.metadata.get("url")) print(d.page_content[:200], "...\n")
Net energy gain in fusion: NIF results — https://www.nature.com/articles/...The National Ignition Facility achieved net energy gain on December 5, 2022 ...Commonwealth Fusion's SPARC milestone — https://news.mit.edu/...SPARC is on track for first plasma in 2026 ...
Pass an objective for a richer retrieval target alongside the keyword search_queries. The retriever forwards source and fetch policies to the underlying Search API.
configured = ParallelSearchRetriever( max_results=5, excerpts={"max_chars_per_result": 1500}, mode="basic", # 'basic' (lower latency) or 'advanced' (higher quality) source_policy={ "include_domains": ["nature.com", "science.org", "iter.org"], },)docs = configured.invoke( "What's the latest peer-reviewed result on net-energy-gain fusion?")