Frontmatter
| id | 9922 |
| title | [Epic] Two-Pillar Hybrid RAG: ChromaDB Re-integration & Topological Re-ranking |
| state | Closed |
| labels | epicaiarchitecture |
| assignees | tobiu |
| createdAt | Apr 12, 2026, 4:09 PM |
| updatedAt | Apr 12, 2026, 6:59 PM |
| githubUrl | https://github.com/neomjs/neo/issues/9922 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | 9923 [Sub-Task] Configuration & Lifecycle Re-alignment for Two-Pillar RAG 9924 [Sub-Task] Database Service & Health Diagnostics Migration 9925 [Sub-Task] Re-Ranker Middleware Construction (Hybrid RAG Pipeline) 9929 Stabilize AI Test Suite environment dependencies 9931 Refactor DreamService to Finalize Two-Pillar Hybrid RAG |
| subIssuesCompleted | 5 |
| subIssuesTotal | 5 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Apr 12, 2026, 6:03 PM |
[Epic] Two-Pillar Hybrid RAG: ChromaDB Re-integration & Topological Re-ranking
tobiu cross-referenced by #9923 on Apr 12, 2026, 4:15 PM
tobiu cross-referenced by #9925 on Apr 12, 2026, 4:15 PM
tobiu cross-referenced by #9924 on Apr 12, 2026, 4:15 PM
tobiu added sub-issue #9923 on Apr 12, 2026, 4:15 PM
tobiu added sub-issue #9924 on Apr 12, 2026, 4:15 PM
tobiu added sub-issue #9925 on Apr 12, 2026, 4:15 PM
tobiu cross-referenced by PR #9926 on Apr 12, 2026, 4:23 PM
tobiu closed this issue on Apr 12, 2026, 5:36 PM
tobiu reopened this issue on Apr 12, 2026, 5:42 PM
tobiu cross-referenced by PR #9927 on Apr 12, 2026, 5:48 PM
tobiu cross-referenced by PR #9928 on Apr 12, 2026, 5:59 PM
tobiu closed this issue on Apr 12, 2026, 6:03 PM
tobiu cross-referenced by #9929 on Apr 12, 2026, 6:23 PM
tobiu added sub-issue #9929 on Apr 12, 2026, 6:23 PM
tobiu cross-referenced by PR #9930 on Apr 12, 2026, 6:24 PM
tobiu cross-referenced by #9931 on Apr 12, 2026, 6:34 PM
tobiu added sub-issue #9931 on Apr 12, 2026, 6:34 PM
tobiu assigned to @tobiu on Apr 12, 2026, 6:59 PM
tobiu cross-referenced by PR #10122 on Apr 20, 2026, 1:47 PM
tobiu cross-referenced by #10125 on Apr 20, 2026, 3:53 PM
tobiu cross-referenced by #10129 on Apr 20, 2026, 5:04 PM
tobiu cross-referenced by PR #10131 on Apr 20, 2026, 8:26 PM
Architectural Bottleneck
Currently, Swarm Episodic Memory (
memory-core) utilizessqlite-vecto manage embeddings. Extensive analysis verified thatsqlite-vecexecutes brute-force exact nearest neighbor (KNN) via full table scans $O(N)$ and does not construct a $O(\log N)$ Hierarchical Navigable Small World (HNSW) indexing graph. Furthermore, attempting to bridge this gap by mathematically layering an explicit HNSW topology inside the V8 engine over standardai/graphSQLite edges fails severely on execution latency and GC constraints when operating on dense 4096-Dimensional embedding geometries.The Objective
We must decisively separate the Hybrid RAG components to utilize the exact engines explicitly built for their mathematical constraints:
hnswlibinternally via C++/Rust to handle billion-scale MMAP logic and geometric spatial bounds efficiently, resolving the Swarm memory context limits flawlessly.The Strategy
ChromaManager.mjsas the default high-scale embedding driver within thememory-coreserver configuration, phasing outSQLiteVectorManager.mjs.StorageRouter.mjsto execute true hybrid RAG:Frontier, shared sequence topologies).Rationale & Avoided Pitfalls
SessionServiceisolated SQLite Vector tables from SQLite Graph tables without continuous systemic crossover rendering. This Two-Pillar re-ranker enforces intersection at the absolute base of the architecture.