RAGed

Vision

raged is a multi-agent memory hub: a shared retrieval-augmented generation (RAG) layer with enrichment and knowledge graph capabilities.

Why

AI agents work best with relevant context, but stuffing entire knowledge bases into a model’s context window is wasteful and expensive. raged keeps the heavy retrieval work outside the model loop: ingest once, query many times, return only what’s relevant.

Vector search alone finds semantically similar content. But real knowledge has structure — docs reference code, emails discuss designs, repos depend on libraries. The knowledge graph captures these relationships, enabling retrieval that follows connections, not just similarity. The combination is more powerful than either alone:

Query type Vector DB + Graph DB
“Find code about auth” Semantic match Same
“What docs reference this function?” Can’t Follow edges
“Show the email thread behind this design” Can’t Traverse relationships
“What depends on this library?” Can’t Dependency graph
“Find auth code AND everything connected to it” Partial Hybrid: similarity + graph neighbors

Architecture Overview

graph TD
    A1[AI Agent 1<br/>Claude Code] -->|query| CLI[raged CLI]
    A2[AI Agent 2<br/>OpenClaw] -->|query| CLI
    A3[AI Agent N] -->|HTTP| API
    CLI -->|HTTP| API[RAG API<br/>Fastify]
    API -->|embed| OL[Ollama<br/>nomic-embed-text]
    API -->|similarity search| PG[Postgres + pgvector]
    API -->|entity traversal| PG
    API -->|enqueue task| PG
    WK[Enrichment Worker] -->|extract entities| PG
    WK -->|process tasks| PG
    WK -->|update chunks| PG
    CLI -->|ingest| API

    style API fill:#e1f5fe
    style PG fill:#f3e5f5
    style OL fill:#e8f5e9
    style WK fill:#e0f2f1

Roadmap

v0.5 — MVP (completed)

What exists:

v1.0 — Enrichment & Knowledge Graph ✅ (completed)

Metadata extraction pipeline:

Knowledge graph:

API endpoints:

CLI enhancements:

Infrastructure:

v2.0 — Production Hardening + Multi-Agent Hub (planned)

Production hardening:

Multi-agent hub:

Principles