Foresight.Schemas.MemoryLink (Foresight v0.1.0)

Copy Markdown View Source

A directed edge in the memory graph (Track C1): from_unit_id -> to_unit_id with a link_type and weight, scoped to a bank.

C1 populates semantic (pgvector kNN, weight = cosine similarity) and temporal (event-time proximity, weight = time-decay) edges. caused_by and entity are valid link types but not yet written.

Summary

Types

t()

@type t() :: %Foresight.Schemas.MemoryLink{
  __meta__: term(),
  bank_id: term(),
  entity_id: term(),
  from_unit_id: term(),
  id: term(),
  inserted_at: term(),
  link_type: term(),
  to_unit_id: term(),
  updated_at: term(),
  weight: term()
}

Functions

changeset(link, attrs)