Foresight.Schemas.MemoryUnit (Foresight v0.1.0)

Copy Markdown View Source

The stored unit of memory: a fact, item, or observation belonging to a bank.

Internal to the storage layer — embedders interact with units through the public API and the backend, not this schema directly.

Summary

Types

t()

@type t() :: %Foresight.Schemas.MemoryUnit{
  __meta__: term(),
  bank: term(),
  bank_id: term(),
  consolidated_at: term(),
  consolidation_failed_at: term(),
  content: term(),
  context: term(),
  document_ref: term(),
  embedded_by: term(),
  embedded_dim: term(),
  embedding_1024: term(),
  embedding_1536: term(),
  embedding_384: term(),
  fact_type: term(),
  id: term(),
  inserted_at: term(),
  mentioned_at: term(),
  metadata: term(),
  observation_scopes: term(),
  occurred_at: term(),
  occurred_end: term(),
  occurred_start: term(),
  proof_count: term(),
  source_location: term(),
  source_memory_ids: term(),
  superseded_at: term(),
  tags: term(),
  text_signals: term(),
  updated_at: term()
}

Functions

changeset(memory_unit, attrs)

@spec changeset(t(), map()) :: Ecto.Changeset.t()