memoryInspect
See everything the write pipeline derived from one memory — vector, keyword fields, HyPE questions, graph and edges.
memoryInspect(memoryId: string): Promise<MemoryInspect>memoryInspect(request: MemoryInspectRequest): Promise<MemoryInspectResponse>Parameters
memoryIdstring (wire: 64-bit integer)requiredThe memory to inspect. Positional on the HTTP tier.
Returns
artifact.vectorfloat[]alwaysThe stored embedding. An empty vector means the embed stage has not run yet — the write was acked but not derived.
artifact.recordStageRecord | nullalwaysThe durable record: kind, salience, both timestamps, vectorDim, textLen, and the lsn it landed at.
artifact.hypeQuestionsstring[]alwaysThe hypothetical questions the HyPE stage generated. Empty when the stage is disabled or did not run.
artifact.keywordFieldsStageKeywordField[]alwaysWhat the lexical retriever indexed, per field.
artifact.graphStageGraph | nullalwaysThe nodes and edges extraction produced — null when no schema was active.
edgesMemoryEdge[]alwaysMemory-to-memory edges, each with kind, direction, peer, weight and an optional annotation.
Example
const m = await brain.memoryInspect(memoryId);
if (m.artifact.vector.length === 0) {
console.log("not embedded yet — the write was acked, not derived");
}
console.log(m.artifact.keywordFields.map((f) => f.field));An empty vector means derivation has not finished. A null graph with a
populated vector means no schema was active — extraction had nothing to
write against, which is a configuration fact and not a failure. Empty
keywordFields on a derived memory means the lexical lane will never match
it, which is the usual cause of "semantic search finds it, keyword search
does not".
Was this page helpful?