memory_inspect
See everything the write pipeline derived from one memory — vector, keyword fields, HyPE questions, graph and edges.
async fn memory_inspect(&self, memory_id: &str) -> Result<MemoryInspect, BrainHttpError>async fn memory_inspect(&self, request: &MemoryInspectRequest) -> Result<MemoryInspectResponse>Parameters
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
let m = brain.memory_inspect(&memory_id).await?;
if m.artifact.vector.is_empty() {
println!("not embedded yet — the write was acked, not derived");
}
println!("{:?}", m.artifact.keyword_fields.iter().map(|f| &f.field).collect::<Vec<_>>());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?