LearnNewsExamplesServices
Frontmatter
id9925
title[Sub-Task] Re-Ranker Middleware Construction (Hybrid RAG Pipeline)
stateClosed
labels
enhancementaiarchitecture
assigneestobiu
createdAtApr 12, 2026, 4:15 PM
updatedAtApr 12, 2026, 7:00 PM
githubUrlhttps://github.com/neomjs/neo/issues/9925
authortobiu
commentsCount0
parentIssue9922
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 12, 2026, 5:36 PM

[Sub-Task] Re-Ranker Middleware Construction (Hybrid RAG Pipeline)

Closed v13.0.0/archive-v13-0-0-chunk-4 enhancementaiarchitecture
tobiu
tobiu commented on Apr 12, 2026, 4:15 PM

Origin Session ID: af26000d-914a-4eb0-8d28-2c09e9cb4cb5 Parent Epic: #9922

Context

This is the core functional engine of the Two-Pillar Hybrid RAG implementation. We must replace the legacy $O(N)$ execution inside SQLiteVectorManager.mjs with an intelligent, dual-pass GraphQL-style Re-Ranker.

Technical Requirements

  1. Vector Deprecation: Formally disable or extract SQLiteVectorManager.mjs from actively returning distance geometry. Set ChromaManager.mjs as the binding agent for AbstractVectorManager.
  2. The Re-Ranker (StorageRouter.mjs): Implement the Phase 1 / Phase 2 query pipeline constraint:
    • Pass 1: Execute HNSW similarity search via Chroma DB returning Top K broad matches.
    • Pass 2: Filter those returned Chroma IDs structurally through the Native Edge Graph (SQLite). Score candidates based on edge proximity, sequence continuity, and explicit SIMILAR_TO links.
  3. Weighting Logic: Develop the basic math function to combine the mathematical distance from Chroma with the topological edge depth from SQLite to provide a unified relevanceScore array to the LLM agent.

Definitions of Done

  • StorageRouter.getMemoryCollection() cleanly routes Semantic lookups to Chroma.
  • Queries explicitly enforce the two-pass pipeline, validating the Node JS / C++ hybrid execution speed.
tobiu added the enhancement label on Apr 12, 2026, 4:15 PM
tobiu added the ai label on Apr 12, 2026, 4:15 PM
tobiu added the architecture label on Apr 12, 2026, 4:15 PM
tobiu added parent issue #9922 on Apr 12, 2026, 4:15 PM
tobiu referenced in commit 52c3b89 - "feat(memory-core): Implement Dual-Pass Re-Ranking Middleware and Extricate SQLiteVectorManager (#9925)" on Apr 12, 2026, 4:23 PM
tobiu cross-referenced by PR #9926 on Apr 12, 2026, 4:23 PM
tobiu referenced in commit 66569e6 - "feat: Two-Pillar Hybrid RAG Architecture (#9922) (#9926) on Apr 12, 2026, 5:36 PM
tobiu closed this issue on Apr 12, 2026, 5:36 PM
tobiu assigned to @tobiu on Apr 12, 2026, 7:00 PM