sndev
Project CategoriesDeveloper LearnDeveloper Insights
LoginGet Started
sndevv1.0.0
AboutProject FeedInsightsYouTubePrivacy PolicyTerms of Service

Β© 2026 sndev β€’ v1.0.0

Home
Categories
Dev Learn
Insights
Sign In
Agentic AI
Nov 19, 2026
s
sndev

Building arXiv Search, Cross-Referencing, and Citation Tools | Deep Research Agent Part 7

GitHub RepositoryWatch on YouTube

β€œImplement arXiv search, claim cross-referencing, and automated citation generation to expand our Autonomous Deep Research Agent's research tool belt with academic search and evidence-mapping capabilit”

Project SeriesPart 7 of 13

Deep Research Agent

Series Progress54%
Series Episodes (13)
Build an Autonomous Deep Research Agent | End-to-End Agentic AI Project | Part 1
Available
Setup & Installation for Autonomous Deep Research Agent | End-to-End Agentic AI Project | Part 2
Available
Building the Agentic AI Brain with LangGraph | Autonomous Deep Research Agent | Part 3
Available
Building AI Agent with LangGraph | Planner Agent Implementation | Deep Research Agent | Part 4
Available
Building AI Agent Tools | Rate Limiting & Source Credibility | Deep Research Agent | Part 5
Available
Building a Web Search Tool for AI Agents with Tavily API | Deep Research Agent Part 6
Available
P7
Building arXiv Search, Cross-Referencing, and Citation Tools | Deep Research Agent Part 7
Current Part
Building the Researcher Agent with Web Search, arXiv & Source Ranking | Deep Research Agent Part 8
Available
Building the Critic Agent: Detecting Conflicting Research | Deep Research System Part 9
Available
Building the Writer Agent – Generating Structured AI Research Reports | Part 10
Available
Building a Multi-Agent Workflow with LangGraph | Deep Research Agent – Part 11
Available
Building a Real-Time WebSocket Streaming Engine with FastAPI | Deep Research Agent – Part 12
Available
Building and Deploying a Full-Stack AI Deep Research Agent | Part 13 – Final Chapter
Available
Part 6Part 8

As we continue building our Autonomous Deep Research Agent, the next step is expanding its research capabilities beyond web search. In this episode, we implement three important utilities: arXiv search, claim cross-referencing, and automatic citation generation.

1. Integrating arXiv Search

We begin by implementing an academic paper search tool using the arXiv Python library. Since arXiv has request limitations, we introduce a custom throttling mechanism that ensures a minimum delay between requests.

The library operates synchronously, which could block our asynchronous FastAPI application. To avoid this, we execute the search operation in a separate background thread using Python's run_in_executor.

The search results are then converted into our structured SourceDoc format, storing paper URLs, titles, abstracts, confidence scores, and relevant metadata such as authors, publication dates, and categories.

2. Building a Claim Cross-Reference Utility

Next, we build a utility for the Critic Agent. It takes a list of claims and collected source documents, extracts relevant keywords from each claim, and compares them against source titles and snippets.

When a source contains at least two matching keywords, it is considered a potential supporting source. The function returns a mapping between claims and the URLs of sources that potentially support them.

This is a simple heuristic-based approach for our MVP, not a semantic verification system. It provides a starting point for the Critic Agent to identify sources relevant to individual claims.

3. Building the Citation Generator

Our final utility generates structured citations for research reports. It iterates through collected sources, removes duplicate URLs, assigns sequential citation IDs, and stores citation information such as title, URL, source type, and confidence score.

This allows the Writer Agent to reference sources consistently without repeatedly citing the same URL.

Completing the Research Tool Belt

With these implementations, our tool belt now includes web search, arXiv search, domain confidence scoring, claim cross-referencing, and citation generation.

These tools form the foundation for our upcoming Researcher and Critic agents, which will use them to gather evidence, examine claims, and produce structured research reports.

Project Repository: https://github.com/snsupratim/research-agent

Documentation: https://www.sndev.co/project/988de038-1e9a-4411-aac5-828477b52df8

Series Navigation

Up Next: Part 8

Continue following "Deep Research Agent" with Building the Researcher Agent with Web Search, arXiv & Source Ranking | Deep Research Agent Part 8.

Part 6Read Part 8

Community Discussion
0

Ask questions, discuss architecture, and share insights with other developers.

Sort:

Sign in to join the discussion and share your thoughts with other developers.

Sign In to Comment
Loading discussions…