garden.engram.getMemoryGraph

A space's newest memories and links between the ones that mean similar things, for drawing the space as a graph. Only memories indexed with the space's model are included. Each memory links to its nearest neighbors among the memories returned. Same authentication as garden.engram.searchMemories.

Repository @hailey.at did:plc:oisofpd7lj26yvgiivf3lxsi namespace authority
Details · query
Kindquery
Authorityengram.garden
Indexed

Query

query · GET

Parameters

query string

limit

integer

How many of the newest memories to include.

  • minimum: 1
  • maximum: 500
  • default: 200

A number above 0 and at most 1 (default 0.4): the cosine similarity a pair needs to be linked.

neighbors

integer

How many of its most similar memories each memory links to.

  • minimum: 1
  • maximum: 8
  • default: 3

space

requiredstring

The space URI.

Output

application/json

edges

requiredarray
itemsobject

nodes

requiredarray

Newest first.

itemsref

Errors

UnknownSpace

This service does not index the space.

NoModel

The space has not declared an embedding model.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • List a space's memories, newest first. Same authentication as garden.engram.searchMemories.

  • Search over a space's memories, by meaning and exact words. The caller embeds its query with the space's model and query prefix and sends vector, model and modelDigest, plus q: once the space has a keyword index, the results rank by both (hybrid). A service that runs the space's model may instead embed q itself when no vector is sent; one that can't (it doesn't embed queries, doesn't run the space's model, or doesn't embed for the space's authority) searches by keyword alone instead, unless mode

  • Fetch one indexed memory by URI. Same authentication as garden.engram.searchMemories.