Most web-research pipelines throw scraped HTML straight into a vector database and lose track of where a claim came from, whether five articles are just syndicated copies of one wire report, or when a fact was actually true. Web Research Engine takes the opposite posture: immutable content-hashed raw archives, canonical documents, source-independence lineage, and a bitemporal relational knowledge graph where every claim carries a verbatim quote and verified char_start/char_end character span.
Pipeline Architecture (Phases 0–7)
Go scheduler (Source Registry + Frontier) → Redpanda → Go fetcher (SSRF Dialer + robots.txt + S3 Raw Archive) → Python parser (Multi-Format ETL + Quality) → Python graph-builder (Dedup/Lineage + NER/Events/Claims + Bitemporal KG)
| Service | Language | Status | Core Responsibilities |
|---|---|---|---|
| scheduler (:8081) | Go | Implemented | 18 internal routes: source registry CRUD, GDELT/seed discovery, 8-dimension quality scoring, adaptive Retry-After backoff, durable crawl frontier & Kafka dispatch |
| fetcher (:8082) | Go | Implemented | Kafka consumer workers, URL normalization, public-IP SSRF dialer with per-hop redirect revalidation, robots.txt cache, per-host politeness gate, conditional ETag/Last-Modified fetch, content-hashed S3 archive |
| parser (:8085) | Python | Implemented | HTML (trafilatura/lxml), PDF (PyMuPDF), DOCX, XML (defusedxml), JSON, RSS/Atom extraction; SimHash + SHA-256 dedup; 6-dimension quality gate; quarantine & selective reprocessing |
| graph-builder (:8087) | Python | Implemented | Story clustering (SimHash + pg_trgm + 5-shingle Jaccard), lineage edges & inflation ratio, reversible entity resolution, deterministic NER/7 event types/claims with verified quote spans, bitemporal KG projection |
| api, indexer, reconciler, enricher, llm-gateway, research-orchestrator | Go / Python | Skeletons | Health/readiness/metrics probes, OTLP tracing, and structured logging wired; domain logic deferred to later phases |
Key Engineering Decisions
- PostgreSQL before specialized stores: Per ADRs 0005–0007, OpenSearch, Qdrant, Redis, and Neo4j are deliberately deferred. All 40 tables live across 6 schemas (
core,ingest,fetcher,processing,dedup,graph) withtsvectorfull-text search and versioned KG rebuilds. - Source independence over raw mention counts: Phase 5 tracks
original,syndicated_copy,repeated_claim,independent,cites, andofficial_statementlineage edges and computes aninflation_ratioso syndicated reprints cannot masquerade as independent corroboration. - Separated confidence & reversible resolution: Fuzzy entity names never auto-merge (routed to
reviewwith reversible merge records). Claims separate extraction confidence from factual verification and preserve commitment modality alongside exact character offsets. - Bitemporal knowledge graph: Every relationship tracks both world validity (
valid_from/valid_to) and observation time (observed_at/recorded_at), exposed through 9 named analytical queries, recursive neighborhood traversal, and a graph integrity checker. - End-to-end observability & contracts: 15 shared JSON Schemas validated across Go and Python fixtures, plus an OpenTelemetry Collector, Tempo, Loki, Prometheus, and Grafana Compose stack verified with trace-correlated logs in
scripts/smoke.sh.
Read next: Agent Platform and Zomato ETL Warehouse.