Skip to content
PACKAGES

memoryRetrievalBundle()

Build a graph-visible memory retrieval bundle from explicit fragment/query deps.

Invalid fragments and ranking status are emitted as ordinary DATA facts. The bundle never owns storage restore or hidden mutation; callers that need persistence compose D161 collection/storage sidecars outside this pattern.

import { memoryRetrievalBundle } from "@graphrefly/ts/patterns";
function memoryRetrievalBundle(
graph: Graph,
opts: MemoryRetrievalBundleOptions,
): MemoryRetrievalBundle<T>
ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
optsMemoryRetrievalBundleOptionsOptions that configure the helper.

A bundle of graph-visible nodes for the recipe.

import { memoryRetrievalBundle } from "@graphrefly/ts/patterns";

packages/ts/src/patterns/semantic-memory-graph.ts