Search and prompt context
Semantic + keyword search
searchPages combines vector similarity with keyword matching and returns results ranked by
relevance, each with a snippet explaining the match and a matchedOn value saying why it
matched: semantic, keyword, or both.
Tune with topK (how many results) and minSimilarity (a floor, to drop weak matches rather
than returning padding). Keyword matches are returned even when their similarity is below
minSimilarity.
Prompt index
Search answers a specific question. When you instead want to give an agent general working
context, use index — a compact, prompt-shaped digest of the brain’s most important pages.
This is the intended way to make an agent remember. Pinned pages rank first, so pinning is how a user says “always keep this in mind.”
Pick limit to fit your context budget — start around 40 and tune against token cost.
Connections
Connections are the non-obvious links the brain finds on its own.
Graph
For visualization, graph returns a renderable subgraph. Keep nodeLimit low enough to draw.