Repository navigation
Conversation
…event profiles 改了什么: - 新增 profile 驱动的 event_contract/event_entity 星型图构建器:事件节点带 anchor 与 graph_role,成员边在 extract() 即写入 event_member 标记与 role,事件/参与者/成员边合并全部确定性完成并持久化 role - 新增 EventJoinPartitioner:按共享参与者 join 事件星型子图,缺 anchor 事件跳过而非报错,require_same_anchor 硬约束跨锚扩展 - 新增 event_profile_loader 与内置 generic_event.v1 唯一示例 profile:event_entity 模式强制要求 event_profile,无任何隐式默认;显式文件路径 profile 在 service→builder 全链路原样透传 - 新增 generator support 视图:生成期把事件 ID 换成可读名,support 边引用支持渲染的 "--" 格式且双向端点序均可解析回 canonical 边,closure 校验只接受实际存在的节点/边 - BuildKGService 增加 kg_method=event_entity opt-in 分发,PartitionService 增加 event_join 分发;MANIFEST 收录 event_profiles 数据文件 达成什么目标:不改动 LightRAG 默认链路的前提下,为上游提供可插拔的事件-实体图能力;focused 单测(profile 经 service→builder 磁盘加载、双向边引用严格 closure、anchor 跳过、合并 role 持久化、直接抽取标记)与默认 ECE 分区器测试全部通过,touched 生产模块 pylint 10.00/10 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Leon-Algo
pushed a commit
to Leon-Algo/GraphGen
that referenced
this pull request
Oct 19, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
kg_method: event_entitybuilds an EVENT star graph via a profile-driven extractor;partition.method: event_joingroups same-anchor events. Defaultlight_rag+ ECE route is untouched.graphgen/templates/event_profile_loader.pyvalidates manifest+prompt fail-closed with SHA-256 lineage. Ships onlygeneric_event.v1as an example; no default profile — event_entity mode without an explicitevent_profileerrors instead of falling back to a domain policy.BuildKGServicevalidates at init but passes the original path reference through to the builder (fixes the second-loadevent_profile_not_foundbug flagged in Add versioned prompt profiles and event-entity generation pipeline #192).<support>edge citations accept the rendered--separator and both endpoint orders, canonicalize to stored orientation, and closure validation accepts only edges that actually exist in the partition (fixes the always-stripped citations bug flagged in Add versioned prompt profiles and event-entity generation pipeline #192).extract()setsevent_member=Trueat creation and deterministic merge persists the participantrole(fixes direct-builder misuse and role loss flagged in Add versioned prompt profiles and event-entity generation pipeline #192).Third of three PRs split from #192 per review. Depends on #193 (partitioner test fixes; the ECE integration tests don't collect on
main) and #194 (profile/prefill/LLM mechanisms this builds on).Validation
pytest tests/unit_tests→ 13 passed: disk-profile service→builder propagation, citations both orders + strict closure, anchor skip, merge role persistence, direct extraction marker, loader validation.pylinton all touched modules → 10.00/10.🤖 Generated with Claude Code