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
| Class | Package | JS support | Package latest |
|---|---|---|---|
ParallelSearchRetriever | langchain-parallel | ❌ |
Setup
The integration lives in thelangchain-parallel package.
Credentials
Head to Parallel to sign up and generate an API key. SetPARALLEL_API_KEY in your environment:
Instantiation
Usage
Each returnedDocument has its excerpts joined into page_content and exposes the source URL, title, and publish date in metadata:
Configured search
Pass anobjective 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 theParallelSearchRetriever API reference or the Parallel Search API guides.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

