relate / cookbook
Cookbook
Recipes that solve one problem each, with a small dataset and plain Cypher. Every step runs in your browser on Relate compiled to WebAssembly, and every recorded result is checked against the engine in CI.
All recipes
- Agent trajectory timelineLog every tool call an agent makes as a timestamped step, then read the last N, the next page, and everything since a cutoff, with constraints that keep newest-first reads correct.
- Bi-temporal decisionsA decision log with two time axes answers both "what was true on this date?" and "what did the agent believe on this date?", through late corrections, a rejection, and a planned change.
- Long-term memory for an agentOne session writes facts and decisions from a chat into a graph; a later session recalls them, with newer decisions superseding older ones and the history kept.
- Tool-call provenance for an agentRecord every memory tool call an agent makes in the graph it touched, then audit which call wrote a fact, who read it since, and what the failed calls left behind.
- Context graph for a codebaseAnswer multi-hop questions about a codebase: IDF-weighted full-text search finds where to start, and bounded graph hops follow supersessions, dependencies, and citations.
- Hybrid recall: vector + full-text + RRFFuse vector and full-text SEARCH by reciprocal rank in one Cypher statement, then hop from each recalled note to its topic's latest decision.
- Query the relate docsFind entry points in the relate docs graph with vector SEARCH, then let the graph expand them into context, scope the search by a traversal, and reach the capability and its worked example.
- Entity resolution in pure CypherResolve two messy customer exports into companies with normalized keys, bigram typo matching, IDF-weighted scores, and a human review queue, all in Cypher.
- Rehearse a migration against a golden graphFingerprint a graph before a migration runs, declare what the migration may change, and catch a bug that node counts and intended-change checks both miss.
- Dependency blast radiusTrace every known advisory three packages can reach, measure what disappears when a dependency is dropped, and turn the answer into a CI gate.
- Nearby places for an agentA geo-aware memory tool that answers radius, nearest-k, map-box, and recent-visit questions over 80 remembered places.
No recipes match. Try another word or category.