Mnemosyne.Pipeline.Structuring (mnemosyne v0.1.6)

Copy Markdown View Source

Orchestrates knowledge extraction from a closed episode.

For each trajectory segment, runs GetSemantic, GetProcedural, and GetReturn in parallel to extract knowledge nodes, then assembles a Graph.Changeset with all nodes and links.

Summary

Functions

Extracts knowledge nodes from a closed episode into a changeset.

Extracts knowledge nodes from a single trajectory into a changeset.

Functions

extract(episode, opts)

Extracts knowledge nodes from a closed episode into a changeset.

extract_trajectory(trajectory, goal, opts)

@spec extract_trajectory(
  Mnemosyne.Pipeline.Episode.trajectory(),
  String.t(),
  keyword()
) ::
  {:ok, Mnemosyne.Graph.Changeset.t()} | {:error, Mnemosyne.Errors.error()}

Extracts knowledge nodes from a single trajectory into a changeset.