Skip to content

feat: add entity resolution and graph retrieval - #356

Merged
hurttlocker merged 3 commits into
mainfrom
feat/entity-resolution-graph
Mar 23, 2026
Merged

hurttlocker merged 3 commits into
mainfrom
feat/entity-resolution-graph

Conversation

@hurttlocker

@hurttlocker hurttlocker commented Mar 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • add canonical entities, aliases, unresolved tracking, fact entity linkage, and legacy backfill support
  • add entity profiles plus profile injection and an entity graph retrieval channel for RRF search/ask
  • auto-enable the entity graph in the RRF fusion path when canonical entities exist in the DB
  • add LoCoMo benchmark notes for the targeted multi-entity slice in docs/research/entity-graph-benchmark-2026-03-23.md

Why

What changed

  • storage: entities, entity_aliases, unresolved_entities, facts.entity_id
  • CLI: cortex entity list|profile|merge|backfill; search and ask still accept --entity-graph, but RRF search now auto-enables it when entities exist
  • retrieval: profile injection, entity graph channel, bridge discovery, and 3-channel RRF fusion
  • ask/answer: citation parsing accepts grouped/dangling citations, and ask repairs missing citations from best-overlap evidence instead of degrading immediately
  • tests: store/search/CLI coverage for resolution cascade, merge, backfill, profile injection, citation repair, and RRF entity retrieval

Benchmark

  • fresh LoCoMo import + embed
  • targeted slice results are in docs/research/entity-graph-benchmark-2026-03-23.md
  • commonality F1 improved from 0.0798 to 0.1240 on the 12-question commonality slice
  • post-fix conv-30 commonality rerun: degraded responses 0 / 4

Test commands

  • go test ./...

Risk

  • this branch is stacked on the local reranker prerequisite already present in the current workspace, so the PR diff includes that dependency alongside the entity work
  • LoCoMo extraction is still noisy for transcript lines, so category-3 inference gains remain small even though commonality retrieval improves

@hurttlocker
hurttlocker force-pushed the feat/entity-resolution-graph branch from a57be65 to 9154beb Compare March 23, 2026 05:30
@hurttlocker
hurttlocker marked this pull request as ready for review March 23, 2026 05:36
@hurttlocker
hurttlocker merged commit a47a121 into main Mar 23, 2026
4 checks passed
@hurttlocker
hurttlocker deleted the feat/entity-resolution-graph branch March 23, 2026 05:37
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