[recipes] Add OB-Graph knowledge graph layer#158
Conversation
Adds graph database functionality for Open Brain using PostgreSQL nodes + edges with recursive CTE traversal. Includes schema, MCP server with 10 tools, and setup documentation. https://claude.ai/code/session_015Z8wCeokTMTdrVMthqzGKJ
|
Thanks for the contribution here. There’s a lot to like in this one, and we’ll merge it as soon as these smaller fixes are in:
If you want, enable maintainer edits and we can help patch the final details. |
* [recipes] Add OB-Graph knowledge graph layer Adds graph database functionality for Open Brain using PostgreSQL nodes + edges with recursive CTE traversal. Includes schema, MCP server with 10 tools, and setup documentation. https://claude.ai/code/session_015Z8wCeokTMTdrVMthqzGKJ * [recipes] Clarify OB-Graph deployment setup --------- Co-authored-by: Claude <noreply@anthropic.com>
* [recipes] Add OB-Graph knowledge graph layer Adds graph database functionality for Open Brain using PostgreSQL nodes + edges with recursive CTE traversal. Includes schema, MCP server with 10 tools, and setup documentation. https://claude.ai/code/session_015Z8wCeokTMTdrVMthqzGKJ * [recipes] Clarify OB-Graph deployment setup --------- Co-authored-by: Claude <noreply@anthropic.com>
|
Hey @justfinethanku, I implemented the OB-Graph recipe and ran into high Supabase Edge Function invocation usage — the Root cause: The Fix: I moved the server initialization and tool registration to module scope (outside the request handler), similar to how I'm new to github, so appoligies if I'm sticking this feedback in the wrong place. |
Summary
recipes/ob-graphrecipe that brings graph database functionality to Open Brain using PostgreSQL nodes + edgesgraph_nodesandgraph_edgestables with RLS, indexes, and recursive CTE functions for traversal and shortest-path queriesWhat's Included
schema.sqltraverse_graph()andfind_shortest_path()functions, GRANT statementsindex.tsdeno.jsonmetadata.json.github/metadata.schema.jsonREADME.md.env.exampleDesign Decisions
thought_idFK on nodes lets users link graph entities back to existing thoughts without modifying the corethoughtstableTest plan
schema.sqlin Supabase SQL Editor — verify tables and functions appearsupabase functions deploy ob-graph-mcp --no-verify-jwttraverse_graphwith multi-hop depthfind_pathbetween two connected nodesmetadata.jsonagainst.github/metadata.schema.jsonhttps://claude.ai/code/session_015Z8wCeokTMTdrVMthqzGKJ