{ "answer": "Alice owns the payments service. She is the backend lead and reports to the CTO.", "intermediate_steps": [ { "query": "MATCH (p:Entity {name: 'payments service'})<-[:OWNS]-(person) RETURN person.name", "result": [{"person.name": "Alice"}] } ]}
Endpoint examples
Graph QA
Natural language → Cypher → grounded answer via multi-hop graph reasoning.
{ "answer": "Alice owns the payments service. She is the backend lead and reports to the CTO.", "intermediate_steps": [ { "query": "MATCH (p:Entity {name: 'payments service'})<-[:OWNS]-(person) RETURN person.name", "result": [{"person.name": "Alice"}] } ]}
Use this endpoint for relational questions: ownership, dependencies,
team structure, and traversal across multiple entities.
Use /brain/retrieve for general fact retrieval.
Maximum relationship traversal depth in the knowledge graph. 2 = two-hop (A → B → C). 3 = three-hop (A → B → C → D).
Higher values surface deeper relationships but increase latency.
{ "answer": "Alice owns the payments service. She is the backend lead and reports to the CTO.", "intermediate_steps": [ { "query": "MATCH (p:Entity {name: 'payments service'})<-[:OWNS]-(person) RETURN person.name", "result": [{"person.name": "Alice"}] } ]}