Skip to content

API Reference

This section documents the public functions and entry points of each source module.

Module Overview

Module Phase Purpose
data_loader 1 Data loading and cleaning
content_enricher 1.5 Abstract and full-text enrichment
openalex_enricher 2a OpenAlex concept/topic enrichment
concept_extractor 2b LLM-based concept extraction
graph_builder 3+4 Knowledge graph construction
visualize 5 Interactive visualization generation
insight_analyzer 6 Graph analysis and report generation

Shared Configuration

All modules import configuration from src/__init__.py:

from src import load_config, ROOT_DIR, SAMPLE_LAUREATE_IDS

load_config() β†’ dict

Load config/settings.yaml and resolve all relative paths to absolute paths. Environment variables (.env) are loaded automatically.

Constants

Constant Value Description
ROOT_DIR Project root path Resolved via Path(__file__).resolve().parent.parent
SAMPLE_LAUREATE_IDS [745, 102, 779, 114, 843] Development sample laureate IDs