Brain Docs

Reference

Python SDKInstallationHTTP clientWire clientSync vs async
encoderecallforgetencode_vectormemory_listmemory_inspectgraph_fetchlinkunlink
ErrorsRetriesPagination
Brain/Docs
✦ ASKBrain on GitHubDashboard
Python SDKMemorymemory_inspect

memory_inspect

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
memory_inspect(memory_id: str) -> MemoryInspect
Handshake credentialstable
memory_inspect(request: MemoryInspectRequest) -> MemoryInspectResponse

Parameters

ParameterTypeRequired
memory_idstring (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.hype_questionsstring[]always

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

artifact.keyword_fieldsStageKeywordField[]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

m = brain.memory_inspect(memory_id)

if not m.artifact.vector:
    print("not embedded yet — the write was acked, not derived")
print([f.field for f in m.artifact.keyword_fields])
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
memory_listThe write pipeline

Was this page helpful?

memory_list

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

graph_fetch

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

On this page

ParametersReturnsExample
Suggest an editOpen in Playground