Skip to content

fix(retrieval): preserve node-set tags on graph vectors - #4827

Open
linhongyu510 wants to merge 1 commit into
topoteretes:devfrom
linhongyu510:fix/propagate-nodeset-tags-4822
Open

fix(retrieval): preserve node-set tags on graph vectors#4827
linhongyu510 wants to merge 1 commit into
topoteretes:devfrom
linhongyu510:fix/propagate-nodeset-tags-4822

Conversation

@linhongyu510

@linhongyu510 linhongyu510 commented Aug 29, 2026

Copy link
Copy Markdown

Description

Fixes #4822.

Node-set tags were dropped before Triplet and EdgeType datapoints reached vector storage, so node-set-filtered graph retrieval silently returned no triplet context. This change propagates the deterministic union of endpoint node-set names through edge properties, Triplet datapoints, aggregated EdgeType datapoints, and both PostgreSQL and Neptune Analytics hybrid EdgeType payloads.

The change is limited to creation-time metadata propagation. It does not duplicate the query-time filtering work in #4078 or the lexical chunk filtering work in #4675.

Tests

  • uv run pytest cognee/tests/unit/tasks/storage/test_add_data_points.py cognee/tests/unit/infrastructure/databases/test_index_graph_edges.py cognee/tests/unit/infrastructure/databases/test_postgres_hybrid_batching.py cognee/tests/unit/infrastructure/databases/test_neptune_analytics_hybrid.py -q — 66 passed, 1 skipped
  • uv run ruff check <10 changed Python files> — passed
  • uv run ruff format --check <10 changed Python files> — passed
  • git diff --check origin/dev...HEAD — passed

AI assistance

TRAE was used to inspect the affected storage paths, check competing pull requests, and help prepare regression tests. I reviewed the complete diff and take responsibility for the contribution.

DCO Affirmation

I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin.

Signed-off-by: linhongyu510 <linhongyu510@users.noreply.github.com>
@linhongyu510
linhongyu510 force-pushed the fix/propagate-nodeset-tags-4822 branch from f0a6128 to 3833c79 Compare August 30, 2026 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant