memory_inspect
See everything the write pipeline derived from one memory — vector, keyword fields, HyPE questions, graph and edges.
memory_inspect(memory_id: str) -> MemoryInspectmemory_inspect(request: MemoryInspectRequest) -> MemoryInspectResponseParameters
memory_idstring (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.hype_questionsstring[]alwaysThe hypothetical questions the HyPE stage generated. Empty when the stage is disabled or did not run.
artifact.keyword_fieldsStageKeywordField[]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
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])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?