feat(memory): connect graph query and doc ingest APIs#124
Merged
Conversation
Wire up memory.graph.query and memory.doc.ingest RPC endpoints and integrate graph relations into the MemoryWorkspace UI, replacing backend-only entity counts with local graph store data. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… routing Cover the new graph query and doc ingest APIs added in this PR: - Rust dispatch tests: routing, param validation, unknown method fallthrough - Frontend tauriCommands tests: Tauri guard, RPC forwarding for memoryGraphQuery/memoryDocIngest - MemoryWorkspace component tests: graph relations rendering, evidence badges, empty states Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
senamakel
approved these changes
Mar 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
memory.graph.queryRPC endpoint (Rust dispatch + frontend wrapper) to load graph relations from the local storememory.doc.ingestRPC endpoint and frontendmemoryDocIngest()wrapper for triggering document ingestion from the UIMemoryWorkspace: display relation triples (subject → predicate → object), compute entity nodes from local graph data with fallback to backend API countsProblem
MemoryWorkspacehad no way to query the local semantic graph or trigger document ingestion via RPCSolution
IngestDocParamsstruct anddoc_ingest()handler inops.rs, routedmemory.doc.ingestindispatch.rsGraphRelationtype,memoryGraphQuery(), andmemoryDocIngest()intauriCommands.tsMemoryWorkspace.tsxnow loads graph relations on workspace init, computes entity nodes from local relations (with fallback to backend counts), and renders a scrollable relations panel showing up to 20 triples with evidence countssrc/openhuman/memory/ops.rsIngestDocParamsstruct +doc_ingest()handlersrc/rpc/dispatch.rsmemory.doc.ingestto handlerapp/src/utils/tauriCommands.tsGraphRelationtype,memoryGraphQuery(),memoryDocIngest()app/src/components/intelligence/MemoryWorkspace.tsxSubmission Checklist
doc_ingesthandler, Vitest tests forMemoryWorkspacegraph relations renderingmemory.doc.ingestandmemory.graph.querymethodsIngestDocParamsanddoc_ingest()follow existing crate conventions;GraphRelationtype is self-documentingImpact
core_rpc_relay; no mobile/web impactMemoryWorkspacebehavior preserved via fallback pathRelated
memoryDocIngestfrom the workspace🤖 Generated with Claude Code