Grounded research orchestration
Multi-Source Web Research Agent
A research pipeline that searches multiple providers, verifies claims, and produces citation-backed answers.

The problem
Web research spans providers with overlapping URLs, inconsistent content quality, and claims that may agree or conflict. Producing a useful answer requires more than search results: sources must be normalized, fetched safely, ranked, verified, and connected to the final response.
The approach
A FastAPI orchestrator queries Serper, Wikipedia, and DuckDuckGo concurrently, canonicalizes URLs, fetches and parses pages asynchronously, and ranks relevant sources. Gemini then verifies claims and produces a grounded report with source-level citations, while Langfuse records pipeline behavior and failures.
System flow
System flow: React client to FastAPI orchestrator to Search providers to Async fetch and ranking to Gemini verification to Citation-backed synthesis to Langfuse tracing.
Engineering decisions
Search providers concurrently
Serper, Wikipedia, and DuckDuckGo are queried in parallel to broaden coverage without turning each provider into a sequential delay.
Normalize evidence before synthesis
Canonical URL deduplication, bounded page fetching, and relevance ranking reduce repeated or low-value material before it reaches the language model.
Separate verification from answer generation
Claims receive verified, contradicted, or uncertain states before synthesis so the final report can preserve conflicts and source provenance.
Challenges and tradeoffs
- Handling provider failures and partial results without discarding the entire research response.
- Preserving citation provenance while deduplicating, ranking, verifying, and synthesizing evidence.