Standard RAG examines 3.4% of your knowledge graph. PGS examines 100% — and reports every absence, every cross-domain connection, and every convergent pattern it discovers.
This is a real research brain. PGS partitioned it into 11 communities in 0.03s. Drag to explore.
const { PGSEngine } = require('pgs-engine');
const engine = new PGSEngine({ sweepProvider, synthesisProvider });
const result = await engine.execute('What are we missing?', graph);
// result.answer includes cross-domain connections and explicit absences
Retrieves top-20 from a 586-node graph. The other 566 nodes? Never examined. You don't know what you're missing.
Can't report "I searched for X and it's not here." Silence is indistinguishable from not looking.
Each query retrieves from one region of embedding space. Connections between distant clusters are invisible.
Louvain community detection splits graph into topological communities
Cosine similarity ranks partitions by relevance to query
Parallel full-fidelity LLM passes per partition
Cross-domain synthesis over all sweep outputs
Every partition sweep returns a structured report — including what it did not find.
What this partition covers relative to the query
Key discoveries with Node ID citations
Specific connections to other partitions
What was searched for and NOT found
Standard: 37s | PGS: 81s | Layered: 110s
Run a standard top-K query first. It establishes what's already known. Then PGS sweeps every partition with that context — finding what standard retrieval missed.
Top-K retrieval, fast context
Standard results become prior knowledge
Full sweep finds what's missing
| Feature | Standard RAG | GraphRAG | Mem0 | PGS |
|---|---|---|---|---|
| Coverage awareness | × | Partial | × | ✓ with % |
| Absence reporting | × | × | × | ✓ |
| Cross-domain discovery | × | Via summaries | × | Outbound flags |
| Convergence detection | × | × | × | ✓ |
| Session continuity | × | × | ✓ | ✓ |
| Works with any LLM | Via framework | OpenAI only | Via framework | ✓ |
| Zero dependencies | × | × | × | ✓ |
What do we know about X? What's contradictory? What's missing?
What's surprising or unexpected in this knowledge base?
When 4 of 6 partitions report no findings on X, that's a high-confidence gap.
Session tracking tells you exactly what % was examined. Continue until 100%.
Outbound flags in sweeps find connections that span partition boundaries.
Zero runtime dependencies. PGS works with any provider through a simple generate() interface.
PGS is open source, MIT licensed, and ready to use.