liveBook · Manning

Web search

As explained in AI Agents and Applications

Web search is the retrieval of information from publicly accessible internet resources in response to a query.

Web search retrieves URLs for a research question so an application can inspect relevant pages and turn their contents into a report. A useful workflow combines query generation, result collection, page scraping, and summarization rather than treating search as an isolated lookup. section 4.1 section 4.3

A practical research-search pipeline proceeds through these stages:

  • Rewrite the user question into several focused search queries, using the assistant role and requested query count as prompt inputs. section 4.7.2
  • Run each query through a web_search function and retain the query, original question, and returned URLs. section 4.6.4 section 4.7.3
  • Flatten grouped results so each record contains one search query and one result URL. section 4.6.4
  • Scrape each page, limit extracted text to a configured character count, summarize it, preserve its source URL, and join the summaries. section 4.7.3

Astorga research query

For “What can I see and do in the Spanish town of Astorga?”, generated searches include attractions, history, and cultural sites. Each query returns several URLs, which can then be scraped and summarized into a consolidated research report. section 4.6.4 section 4.7.3

Figure 4.2 Automated research summarization engine. Ask a question, and the engine performs a web search, returns URLs, scrapes and summarizes web pages, and compiles a research report for you.
figure

The workflow diagram shows the complete path from a question to search results, scraped pages, page summaries, and a compiled research report. section 4.1

How AI Agents and Applications covers it

How deep it goes
Descends from query generation through URL retrieval, scraping, truncation, per-page summaries, and aggregation.
Examples
Uses Astorga attractions, history, and cultural-sites queries with returned URLs and a summarized source page.
What it assumes
Assumes a user research question and teaches the remaining workflow from basic search implementation through composed LangChain chains.
What you can do after
Build an automated research workflow that generates queries, collects URLs, scrapes pages, summarizes results, and joins them into a report.
How it connects
Connects web scraping, summarization, LLM chains, prompt engineering, parallel processing, and REST APIs.

Also explained in

Compare how 5 books explain web search →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of AI Agents and Applications. The section links point to the parts of the book it draws on.