Skip to content

feat: canonical entity resolution, aliases, profiles, and entity graph retrieval channel #354

Open

Description

@hurttlocker

Context

From SuperLocalMemory audit (docs/research/superlocalmemory-audit.md). SLM builds a canonical entity layer at ingestion time — resolving "Jon", "Jonathan", "he" to the same entity ID, storing aliases, building entity profiles, and using entity graph traversal as a retrieval channel. Cortex has none of this.

What

Build the entity layer in three parts:

Part 1: Canonical entities + aliases (Priority 2 from audit)

  • Entity table with canonical ID, name, aliases, type
  • Resolution during fact extraction: pronouns, nicknames, abbreviations → canonical ID
  • Link facts to canonical entities
  • 2-3 weeks

Part 2: Entity profiles + direct lookup (Priority 3)

  • Auto-generated profiles per entity from linked facts
  • Direct entity lookup channel: "What does Alice do?" answered without full search
  • Profile injection into retrieval candidate pool
  • 1-2 weeks

Part 3: Entity graph retrieval channel (Priority 4)

  • Graph edges: ENTITY, TEMPORAL, SEMANTIC, CAUSAL
  • Spreading activation from query entities (3 hops, 0.7 decay)
  • Entity channel participates in RRF fusion alongside BM25 + semantic
  • Bridge discovery for multi-hop queries
  • 2-3 weeks

Expected Impact

  • Part 1: +2 to +5 F1 overall
  • Part 2: +1 to +3 F1, +4 to +8pp on entity-centric retrieval
  • Part 3: +2 to +6 F1, strongest on multi-hop/commonality

References

  • SLM audit: docs/research/superlocalmemory-audit.md
  • SLM entity resolution: src/superlocalmemory/encoding/graph_builder.py
  • SLM entity channel: src/superlocalmemory/retrieval/entity_channel.py

Activity

  1. added
    memory
    on Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    memory

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions