Skip to content

Graph algorithm only connects episodes by shared concepts #3

@CalebisGross

Description

@CalebisGross

Problem

internal/api/routes/graph.go lines 113-148: The episode graph uses O(n^2) concept matching with a minimum threshold of 2 shared concepts. This produces sparse, disconnected graphs for most datasets.

Missing edge types:

  • Temporal proximity (events close in time)
  • Causal relationships from the associations table
  • Association-based edges (the memories view at lines 162-229 uses these, but episodes view does not)

Impact

The graph visualization is mostly disconnected islands with few meaningful connections.

Fix

Use actual association data from the store, add temporal proximity edges, and consider using the memories view as default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions