Mnemosyne.Pipeline.Retrieval.TouchedNode (mnemosyne v0.1.6)

Copy Markdown View Source

Caller-facing projection of a retrieved candidate node.

Summary

Functions

Projects a TaggedCandidate into a caller-facing TouchedNode at the given verbosity level.

Types

t()

@type t() :: %Mnemosyne.Pipeline.Retrieval.TouchedNode{
  hop: non_neg_integer() | nil,
  id: String.t(),
  node: struct() | nil,
  phase: atom(),
  score: float(),
  type: atom()
}

Functions

from_tagged(tc, atom)

@spec from_tagged(
  Mnemosyne.Pipeline.Retrieval.TaggedCandidate.t(),
  :summary | :detailed
) :: t()

Projects a TaggedCandidate into a caller-facing TouchedNode at the given verbosity level.