Brain Docs

Reference

TypeScript SDKInstallationHTTP clientWire client
encoderecallforgetencodeVectormemoryListmemoryInspectgraphFetchlinkunlink
ErrorsRetriesPagination
Brain/Docs
✦ ASKBrain on GitHubDashboard
TypeScript SDKMemorymemoryInspect

memoryInspect

See everything the write pipeline derived from one memory — vector, keyword fields, HyPE questions, graph and edges.

PURPOSE

Returns everything the write pipeline derived from one memory. This is the debugging verb for "why does recall not find this".

GET/v1/memories/:id/inspectBearer API keystable
memoryInspect(memoryId: string): Promise<MemoryInspect>
Handshake credentialstable
memoryInspect(request: MemoryInspectRequest): Promise<MemoryInspectResponse>

Parameters

ParameterTypeRequired
memoryIdstring (wire: 64-bit integer)required

The memory to inspect. Positional on the HTTP tier.

Returns

FieldTypePresence
artifact.vectorfloat[]always

The stored embedding. An empty vector means the embed stage has not run yet — the write was acked but not derived.

artifact.recordStageRecord | nullalways

The durable record: kind, salience, both timestamps, vectorDim, textLen, and the lsn it landed at.

artifact.hypeQuestionsstring[]always

The hypothetical questions the HyPE stage generated. Empty when the stage is disabled or did not run.

artifact.keywordFieldsStageKeywordField[]always

What the lexical retriever indexed, per field.

artifact.graphStageGraph | nullalways

The nodes and edges extraction produced — null when no schema was active.

edgesMemoryEdge[]always

Memory-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));
Reading an inspect result

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".

See also
memoryListThe write pipeline

Was this page helpful?

memoryList

Enumerate the memories in a space, cursor-paged, with filters for kind, time, salience and text.

graphFetch

A cursor-paged node and edge view of the space, for drawing — not a query.

On this page

ParametersReturnsExample
Suggest an editOpen in Playground