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
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 added the enhancement label on Apr 12, 2026, 6:34 PM
tobiu added the ai label on Apr 12, 2026, 6:34 PM
tobiu added parent issue #9922 on Apr 12, 2026, 6:34 PM
tobiu referenced in commit cb74810 - "docs: Anchor & Echo mapping logic for EdgeGraph topology (#9931)" on Apr 12, 2026, 6:54 PM
tobiu cross-referenced by PR #9932 on Apr 12, 2026, 6:54 PM
tobiu referenced in commit ff9c4f6 - "docs: Anchor & Echo mapping logic for EdgeGraph topology (#9931) (#9932)" on Apr 12, 2026, 7:02 PM
tobiu closed this issue on Apr 12, 2026, 7:02 PM
tobiu assigned to @tobiu on Apr 12, 2026, 9:03 PM