Skip to main content
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.

Overview

Integration details

Setup

The integration lives in the langchain-parallel package.

Credentials

Head to Parallel to sign up and generate an API key. Set PARALLEL_API_KEY in your environment:

Instantiation

Usage

Each returned Document has its excerpts joined into page_content and exposes the source URL, title, and publish date in metadata:
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.

Async

Use within a chain

ParallelSearchRetriever plugs into any LangChain chain:

API reference

For detailed documentation, head to the ParallelSearchRetriever API reference or the Parallel Search API guides.