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.
Details · query
| Kind | query |
|---|---|
| Authority | engram.garden |
| Indexed |
Query
query · GETParameters
query stringlimit
integerHow many of the newest memories to include.
minimum: 1maximum: 500default: 200
minSimilarity
stringA number above 0 and at most 1 (default 0.4): the cosine similarity a pair needs to be linked.
neighbors
integerHow many of its most similar memories each memory links to.
minimum: 1maximum: 8default: 3
The space URI.
Output
application/jsonNewest first.
Errors
UnknownSpace
This service does not index the space.
NoModel
The space has not declared an embedding model.
Similar lexicons
semantic matchLexicons 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
-
garden.engram.getMemory
queryFetch one indexed memory by URI. Same authentication as garden.engram.searchMemories.