API Reference
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
import { memoryRetrievalBundle } from "@graphrefly/ts/patterns";
Signature
function memoryRetrievalBundle(
graph: Graph,
opts: MemoryRetrievalBundleOptions,
): MemoryRetrievalBundle<T>
Parameters
| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
opts | MemoryRetrievalBundleOptions | Options that configure the helper. |
Returns
A bundle of graph-visible nodes for the recipe.
Example
import { memoryRetrievalBundle } from "@graphrefly/ts/patterns";
Source
packages/ts/src/patterns/semantic-memory-graph.ts