LearnNewsExamplesServices
Frontmatter
id9931
titleRefactor DreamService to Finalize Two-Pillar Hybrid RAG
stateClosed
labels
enhancementai
assigneestobiu
createdAtApr 12, 2026, 6:34 PM
updatedAtApr 12, 2026, 9:03 PM
githubUrlhttps://github.com/neomjs/neo/issues/9931
authortobiu
commentsCount0
parentIssue9922
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtApr 12, 2026, 7:02 PM

Refactor DreamService to Finalize Two-Pillar Hybrid RAG

tobiu
tobiu commented on Apr 12, 2026, 6:34 PM

Architectural Context

During Epic #9922, the monolithic SQLiteVectorManager was deprecated in favor of a Two-Pillar Hybrid RAG architecture using ChromaDB for semantic storage and SQLite for pure graphical structural topologies via StorageRouter.

However, the offline GraphRAG daemon (DreamService.mjs) was not fully refactored, causing DreamService and its respective Playwright test specs to crash when attempting to dynamically resolve the deleted module.

Core Objectives

  1. Eliminate all dynamic and static imports coupling DreamService to SQLiteVectorManager.
  2. Refactor synthesizeGoldenPath() to decouple the raw SQL JOIN that mapped structural and semantic spaces. The daemon must now fetch k semantic nodes natively from ChromaDB via StorageRouter, securely project those IDs into a bounded SQLite query to evaluate struct_score, and merge the hybrid priority cleanly in JavaScript.
  3. Update DreamService test mocks to accurately emulate the Two-Pillar architecture.
tobiu cross-referenced by PR #9932 on Apr 12, 2026, 6:54 PM