Aeluin-Technologies/Galadril

GitHub: Aeluin-Technologies/Galadril

Galadril 是一个基于事件-状态知识图谱(ESKG)的数据集成与因果分析平台,旨在为复杂系统提供可追溯的因果推理与前瞻性洞察能力。

Stars: 8 | Forks: 0

# Galadril ⛲️ [文档](https://realhinome.github.io/Galadril/) | [GitHub](https://github.com/RealHinome/Galadril) **Galadril** 是一个先进的数据集成和分析智能平台,旨在为复杂系统提供一个“镜像”。Galadril 专注于**阐释、预见和透明度**。 ## 开发 进入 shell 以加载环境: ``` nix develop github:RealHinome/Galadril?dir=infrastructure/nix ``` ## 目标架构 ``` flowchart TD classDef source fill:#e3f2fd,stroke:#1565c0,stroke-width:2px,color:#0d47a1 classDef ingest fill:#ffecb3,stroke:#ff6f00,stroke-width:2px,color:#3e2723 classDef stream fill:#d1c4e9,stroke:#512da8,stroke-width:2px,color:#311b92 classDef ml fill:#f8bbd0,stroke:#c2185b,stroke-width:2px,color:#880e4f classDef pg fill:#336791,stroke:#000,stroke-width:2px,color:#fff classDef app fill:#c8e6c9,stroke:#2e7d32,stroke-width:2px,color:#1b5e20 classDef bus fill:#212121,stroke:#fff,stroke-width:2px,color:#fff,stroke-dasharray: 5 5 subgraph Sources ["Multi-Modal Data Sources"] direction TB S1[("Sensors / IoT / SIGINT")]:::source S2[("Financial / ERP Flows")]:::source S3[("Unstructured (OSINT/Docs)")]:::source S4[("3rd Party APIs")]:::source end subgraph Ingestion ["Ingestor"] Connectors["Smart Connectors"]:::ingest Raw_Bus[("Raw Event Bus (Kafka)")]:::bus end subgraph Processing ["The Vision"] Stream_Engine["Stream Processor"]:::stream subgraph Compute ["Compute Services"] Entity_Res["Entity Resolution"]:::ml Ontology_Map["Ontology Mapper"]:::stream ML_Inf["ML Inference"]:::ml end Feature_Store["Feature Store (Online)"]:::pg end subgraph Knowledge ["The Synapse"] Intel_Bus[("Curated Intel Bus (Kafka)")]:::bus subgraph PG_Engine ["PostgreSQL"] direction TB KG[("Apache AGE")]:::pg VecDB[("pgvectorscale")]:::pg Relational[("Relational")]:::pg Timescale[("TimescaleDB")]:::pg end ObjStore[("Object Store")]:::pg end subgraph Consumption ["Galadril Studio"] Gateway["Unified Ontology API"]:::app Studio["Investigation Graphs"]:::app Alerts["Operational Alerting"]:::app end S1 & S2 & S3 & S4 --> Connectors Connectors --> Raw_Bus Connectors -->|Direct Backup| ObjStore Raw_Bus --> Stream_Engine Stream_Engine <--> Ontology_Map Stream_Engine <--> Feature_Store Feature_Store -.-> |"Get Features"| ML_Inf ML_Inf --> Stream_Engine Entity_Res <--> |"Lookup / Match"| Relational Stream_Engine <--> Entity_Res Stream_Engine --> Intel_Bus Intel_Bus --> PG_Engine PG_Engine & ObjStore --> Gateway Gateway <--> Studio Gateway --> Alerts ``` ### SOTA 引擎:ESKG 增强的 GraphRAG Galadril 实现了基于事件-状态知识图谱(ESKG)的推理框架,如 [Zang et al. (2026)](https://doi.org/10.1016/j.eswa.2026.131938) 所述。 Galadril 将系统表示为一个不断演化的异构图 $G_t = (V_t, R_t)$,其中: * $V_t = \{S \cup E\}$ 是包含**状态**($S$)和 **事件**($E$)的顶点集合。 * $R_t \subseteq \{V_t \times \mathcal{T} \times V_t\}$ 是关系集合, 其中 $\mathcal{T}$ 代表六种基本交互类型: * **触发**(**Triggers**,$E \xrightarrow{trig} S$):直接启动 新状态的事件。 * **导致**(**Leads to**,$E_i \xrightarrow{lead} E_j$):两个事件之间的 逻辑或时序序列。 * **演化**(**Evolution**,$S_i \xrightarrow{evol} S_j$):两种状态之间的 自然过渡或演进。 * **包含**(**Contain**,$E \supset S$ 或 $S \supset E$):事件在状态内的 层级包含(或反之亦然)。 * **发生**(**Occur**,$E \xrightarrow{occ} L, T$):事件在地点和时间上的 时空锚定。 * **影响**(**Influence**,$E \xrightarrow{infl} P$):修改实体数值 属性或参数的事件。 ESKG 的核心是控制图演化的触发机制。 当事件 $E_i$ 发生时,它满足一个转换函数 $f$,该函数将 前一个状态映射到一个新状态:$$f: (S_{old}, E_i) \rightarrow S_{new}$$ 这意味着对于“镜像”中的每一次状态更新,Galadril 都会强制执行一个 因果约束:$$\exists E \in V_t \mid (E, \text{trig}, S_{new}) \in R_t$$ ## 许可证 本项目根据 BSD 3-Clause 许可证* 的条款进行授权。有关 完整的许可证文本,请参阅 LICENSE 文件。
标签:Apex, 因果分析, 数据分析平台, 数据集成, 机器学习, 流处理, 测试用例, 逆向工具