Skip to main content

Module causal_analysis

Module causal_analysis 

Source
Expand description

Causal chain analysis for discovering cause-effect paths (Phase 2.3) Causal Chain Analysis (Phase 2.3)

This module implements causal chain discovery and temporal validation. It finds paths between cause and effect entities, validating temporal ordering.

Example: Query “What caused the fall of Athens?” should find: Plague → Weakened Athens → Sparta attacked → Athens fell

Each step is validated for temporal consistency (t1 < t2 < t3).

Structs§

CausalAnalyzer
Analyzer for finding causal chains in the knowledge graph
CausalChain
A complete causal chain from cause to effect
CausalStep
A single step in a causal chain