-
Add extracted edge facts to entity summaries (#1182)
发布于
2026-01-29 19:53:49 +00:00 - Add extracted edge facts to entity summaries
Update _extract_entity_summary to include facts from edges connected to
each node. Edge facts are appended to the existing summary, and LLM
summarization is only triggered if the combined content exceeds the
character limit.- Add edges parameter to extract_attributes_from_nodes and related functions
- Filter edges per node before passing to attribute extraction
- Append edge facts (newline-separated) to node summary
- Skip LLM call when combined summary is within length limits
Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com
- Remove unused reflexion prompts and invalidate_edges v1
- Remove reflexion prompts from extract_nodes.py and extract_edges.py
- Remove extract_nodes_reflexion function from node_operations.py
- Remove unused v1 function from invalidate_edges.py
Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com
- Filter out None/empty edge facts when building summary
Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com
- Remove unused MissedEntities import
Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com
- Optimize edge filtering with pre-built lookup dictionary
Replace O(N * E) per-node edge filtering with O(E + N) pre-built
dictionary lookup. Edges are now indexed by node UUID once before
the gather operation.Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com
- Handle empty summary edge case
Return early if summary_with_edges is empty after stripping,
avoiding storing empty summaries when node.summary and all
edge facts are empty.Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com
- Update tests to reflect summary optimization behavior
Tests now expect that short summaries are kept as-is without LLM calls.
Added new test to verify LLM is called when summary exceeds character
limit due to edge facts.Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com
-
format
-
Bump version to 0.27.0
Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com
-
lock
-
change version
Co-authored-by: Claude Opus 4.5 noreply@anthropic.com
下载附件