Back to blog
AIApril 20262 min read

Multi-Hop RAG at the Edge: Running 8 Agents Over a Local Knowledge Graph

The architecture behind Serpaix's multi-agent system: how Research, Graph, and Temporal agents collaborate over a shared memory store without hallucinating connections.

The Problem with Single-Pass RAG

Standard RAG does one retrieval, one generation. But complex questions — "What did I learn about transformers last month and how does it relate to my current project?" — require multiple reasoning hops across different parts of your knowledge base.

The Multi-Agent Architecture

Serpaix runs 8 specialized agents that collaborate over a shared memory store:

AgentRole
ResearchFinds relevant notes across your knowledge base
GraphTraverses the knowledge graph for 1-hop and 2-hop connections
TemporalOrders results chronologically and identifies time-bound patterns
ContradictionDetects conflicting information across sources
SummarizerCondenses retrieved context into digestible form
VerifierCross-checks citations against source notes
PlannerDecomposes complex questions into sub-queries
WriterProduces the final grounded answer

Orchestration Flow

  • Planner decomposes the question into sub-queries
  • Research + Graph agents retrieve context in parallel
  • Temporal agent orders results chronologically
  • Contradiction agent flags any conflicts
  • Writer produces the answer with citations
  • Verifier confirms each citation matches the source
  • Preventing Hallucination

    The key insight: by separating retrieval, verification, and generation into distinct agents, each with a specific narrow role, we dramatically reduce the risk of hallucination. The Writer can only use context provided by Research — it cannot invent facts. The Verifier independently checks every citation.

    This architecture runs entirely at the edge - all agents execute within a 4-second budget, making it feasible for real-time chat. The same memory is exposed to external agents over the local MCP server, and the connections the Graph agent traverses come from the auto-built knowledge graph.

    Published April 2026