Skip to content

01 Goals and Objectives

Anurag Prasad edited this page Nov 29, 2026 · 1 revision

1. Goals & Objectives

One-line mission: learn how a search-and-retrieval layer for AI agents behaves under real constraints — reliability, pagination, throttling, provenance — by reproducing as much of the ecosystem as a free CI runner allows, and by documenting honestly where the simulation stops.

1.1 The question behind the project

Large language models (LLMs) store knowledge in their parameters, frozen at a training cutoff. To answer questions about today they must reach into the world through tools — chiefly web search and page fetching. Every major assistant now ships such a tool (OpenAI, Anthropic, DeepSeek). Yet from the outside we rarely see what such a layer must survive: rate limits, interstitial challenges, duplicate results, partial failures, and policy boundaries.

This project asks: can a small, reproducible lab on GitHub Actions teach us the engineering of that layer? The goal is not to build a search index from scratch; it is to learn how search providers and interfaces behave when queried from a controlled runner, and how collection evidence can be made reproducible.

Agentic loop Figure 1.1 · The agentic search loop this lab exists to support (project diagram; pattern from ReAct, Yao et al. 2022).

1.2 Primary objectives

# Objective Why it matters
O1 Establish a working collection pipeline: query, provider, region, result target, pagination limit Baseline for everything else
O2 Compare provider interfaces under the same query and record access failures as failures — not as empty results An agent that treats a challenge page as "no results" will hallucinate absence
O3 Test deeper pagination; separate HTTP success from engine success Status truth is the foundation of reliable tool use
O4 Preserve partial output when later pages fail Graceful degradation
O5 Validate URL normalisation, deduplication and source-engine provenance Citations need trustworthy provenance
O6 Simulate deployment operations: manual launch, isolated jobs, logs, artifacts, aggregation, safe write-back Operational realism
O7 Add automated checks per stage before scaling queries, repeats or concurrency Evidence before scale
O8 Keep search independent from future crawler, extraction, research and agent modules Modular research platform

1.3 Secondary (knowledge-base) objectives

  1. Document the ecosystem — crawling, indexing, ranking, metasearch, APIs (Part II).
  2. Trace the agentic lineage — from retrieval-augmented generation to deep-research agents (7).
  3. Compare vendor implementations with primary documentation (8).
  4. Map simulation to reality honestly (14).
  5. Understand the web's response — bot traffic, Cloudflare-style controls, pay-per-crawl, blind spots (Part V).
  6. Seed research directions others can pick up (20).

1.4 Non-goals

CAPTCHA solving or evasion · site crawling · downloading PDFs · OCR · LLM synthesis · RAG · paper extraction · production service hosting. These are deferred behind validation gates (21).

1.5 Design principles

  • Observed facts ≠ assumptions. Each page labels measured, reported and design claims.
  • Stop signals are respected. A CAPTCHA is a boundary, not a retry condition.
  • Two-axis status. Pipeline health and collection completeness are reported separately (see 13).
  • Provenance everywhere. Every URL keeps its source engine.
  • Evidence retention. Logs, raw JSON, cleaned JSON, CSV, metadata and workflow artifacts.

1.6 Success criteria (summary)

A smoke run with correct provenance; later-page failure never loses earlier data; aggregation and write-back succeed on partial runs; status labels distinguish health from completeness; repeatability metrics are recorded; multi-query jobs stay isolated; limits and stop conditions are respected; and live validation — not unit tests alone — supports any reliability claim. Full list: 21.


❓ Check your understanding

Q1. Why is "build a search index" explicitly not an objective?

An index at web scale requires crawl infrastructure, storage and ranking research far beyond a free CI runner. The lab instead studies the client side of search: how an agent-facing collector behaves against real providers. See 14.

Q2. Why must "HTTP 200" not be read as "search succeeded"?

On page 16 of the deep run SearXNG returned HTTP 200 but zero results, with DuckDuckGo flagged as unresponsive due to a CAPTCHA. Treating that as an empty page would make an agent conclude there is nothing more to find. See 13.

Q3. What does "keep search independent from future modules" buy us?

Independently testable contracts: search collection, page fetching and interpretation can each be validated, swapped or scaled without entangling provider quirks with LLM logic.

Next → 2. Project Journey & Experiments

Clone this wiki locally