Documentation
Read the source code of your memory.
Docs / rest-api / knowledge-graph
Knowledge Graph
Endpoints for graph traversal, path finding, and hub detection.
Graph Traversal
GET /graph/entity/{id}/neighborhood
Get entity neighborhood within N hops.
curl "http://localhost:8000/api/v1/graph/entity/ent-123/neighborhood?depth=2"
GET /graph/path
Find shortest path between two entities.
curl "http://localhost:8000/api/v1/graph/path?source=ent-123&target=ent-456"
GET /graph/hubs
Get hub entities ranked by degree centrality.
curl "http://localhost:8000/api/v1/graph/hubs?limit=10"
GET /graph/unlinked-mentions
Find stardust that mentions entities by name but has no formal backlink.
POST /graph/link-all/{entity_id}
Create backlinks for all unlinked mentions of an entity.