Module arxiv_client

Module arxiv_client 

Source
Expand description

ArXiv Preprint API Integration

This module provides an async client for fetching academic preprints from ArXiv.org, converting responses to SemanticVector format for RuVector discovery.

§ArXiv API Details

  • Base URL: https://export.arxiv.org/api/query
  • Free access, no authentication required
  • Returns Atom XML feed
  • Rate limit: 1 request per 3 seconds (enforced by client)

§Example

use ruvector_data_framework::arxiv_client::ArxivClient;

let client = ArxivClient::new();

// Search papers by keywords
let vectors = client.search("machine learning", 10).await?;

// Search by category
let ai_papers = client.search_category("cs.AI", 20).await?;

// Get recent papers in a category
let recent = client.search_recent("cs.LG", 7).await?;

Structs§

ArxivClient
Client for ArXiv.org preprint API