Agents

LangChain Launches New Web Research Retriever

LangChain has introduced a new web research retriever that automates online information gathering, offering developers a faster, highly configurable alternative to autonomous agents.

LangChain Blog11 hrs agoAgents
Image: LangChain Blog

LangChain originally set out to build an autonomous web research agent similar to open-source projects like gpt-researcher. However, the development team discovered that a sequential agent model struggled with the slow pace of sequential searching. Instead, they pivoted to a simpler, more efficient retriever architecture that leverages parallel processing to execute multiple searches and scrape web pages simultaneously.

The new retriever operates through a streamlined four-step pipeline. First, an LLM generates multiple search queries from a single user prompt. The system then selects the top K links for each query, scrapes the content of those pages in parallel, and extracts the most relevant document chunks. During testing, LangChain used the query "How do LLM Powered Autonomous Agents work?" to demonstrate the tool, successfully pulling and synthesizing information from researcher Lilian Weng's blog.

A key advantage of this retriever is its flexibility. It can be configured to run entirely offline in a private mode, drawing inspiration from projects like PrivateGPT. For local execution, developers can pair the retriever with LlamaV2 and GPT4all embeddings. LangChain reported that running this private configuration on a Mac M2 Max GPU achieved processing speeds of approximately 50 tokens per second.

To help developers get started, LangChain wrapped the retriever in a basic Streamlit user interface requiring only about 50 lines of code. This setup allows users to plug in their preferred LLM, vector store, and search tools while using LangSmith to observe and debug the retrieval steps. While the current release focuses on retrieval, the creators plan to eventually integrate agentic properties, such as multi-agent writing and revision workflows.

This is our own summary of reporting by LangChain Blog

More in Agents