Graph
graph

Populate Relationships

Populate graph relationships based on embedding similarity.

Finds similar memories and creates RELATES_TO relationships.

Query Parameters:

  • org_id: Organization ID (required)
  • similarity_threshold: Min similarity 0.0-1.0 (default 0.75)
  • max_relationships: Max relationships per memory (default 5)
  • async_: Run async via Celery (default true)

Returns:

  • If async: {task_id, status, org_id}
  • If sync: {relationships_created, similarities, ...}
post/api/v1/graph/relationships/populate

Request

  • The document declares no server URL.
  • Auth: HTTP bearer

Query parameters

org_idstring required

Organization ID

similarity_thresholdnumber
max_relationshipsinteger
async_boolean

Run async via Celery

Headers

X-API-Keystring nullable

Response

Successful Response

object required

Changes

No recorded changes to this operation across all 2 revisions of this API.