Expand description
Semantic Scholar API Integration
This module provides an async client for fetching academic papers from Semantic Scholar, converting responses to SemanticVector format for RuVector discovery.
§Semantic Scholar API Details
- Base URL: https://api.semanticscholar.org/graph/v1
- Free tier: 100 requests per 5 minutes without API key
- With API key: Higher limits (contact Semantic Scholar)
- Returns JSON responses
§Example
ⓘ
use ruvector_data_framework::semantic_scholar::SemanticScholarClient;
let client = SemanticScholarClient::new(None); // No API key
// Search papers by keywords
let vectors = client.search_papers("machine learning", 10).await?;
// Get paper details
let paper = client.get_paper("649def34f8be52c8b66281af98ae884c09aef38b").await?;
// Get citations
let citations = client.get_citations("649def34f8be52c8b66281af98ae884c09aef38b", 20).await?;
// Search by field of study
let cs_papers = client.search_by_field("Computer Science", 50).await?;Structs§
- Semantic
Scholar Client - Client for Semantic Scholar API