Semantic traversal
Expand from a starting memory along edges matching a natural language query.
GET
/api/v1/graph/traverseQuery Parameters
start_memory_idstringrequiredID of the starting memory node
querystringrequiredNatural language query for edge similarity matching
max_hopsnumberMaximum traversal depth
Max length: 2
edge_similarity_thresholdnumberMinimum similarity score
Max length: 0.7
API Key
Stored locally, never sent to servers
Semantic traversal
const options = { method: 'GET', headers: {'X-API-Key': 'mb_live_xxx'},};fetch('https://api.mem-brain.io/api/v1/graph/traverse', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));{ "nodes": [ { "id": "mem_001", "content": "Auth uses JWT" }, { "id": "mem_002", "content": "Refresh tokens rotate" } ], "edges": [ { "source": "mem_001", "target": "mem_002", "description": "authentication flow" } ]}